From 3e77f4edce4a3ed442b239c48c47e981eab3c511 Mon Sep 17 00:00:00 2001 From: Jage9 Date: Mon, 23 Feb 2026 02:01:52 -0500 Subject: [PATCH] Align brass live voice with instrument preview --- client/public/version.js | 2 +- client/src/main.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/public/version.js b/client/public/version.js index fd3ee13..9d73a1a 100644 --- a/client/public/version.js +++ b/client/public/version.js @@ -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"; diff --git a/client/src/main.ts b/client/src/main.ts index 5c9b076..165fb3d 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -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,