Align brass live voice with instrument preview

This commit is contained in:
Jage9
2026-02-23 02:01:52 -05:00
parent ccbe41e618
commit 3e77f4edce
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
// Maintainer-controlled web client version.
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
window.CHGRID_WEB_VERSION = "2026.02.23 R220";
window.CHGRID_WEB_VERSION = "2026.02.23 R221";
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
window.CHGRID_TIME_ZONE = "America/Detroit";

View File

@@ -991,7 +991,7 @@ function getPianoParams(item: WorldItem): {
/** Returns default voice mode for a given piano instrument. */
function defaultsVoiceModeForInstrument(instrument: PianoInstrumentId): 'mono' | 'poly' {
if (instrument === 'bass' || instrument === 'violin' || instrument === 'brass') return 'mono';
if (instrument === 'bass' || instrument === 'violin') return 'mono';
return 'poly';
}
@@ -1243,7 +1243,7 @@ async function previewPianoSettingChange(
'preview',
Math.max(0, Math.min(127, 60 + octave * 12)),
instrument,
'poly',
current.voiceMode,
attack,
decay,
release,