Align brass live voice with instrument preview
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// Maintainer-controlled web client version.
|
// Maintainer-controlled web client version.
|
||||||
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
// 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.
|
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
||||||
window.CHGRID_TIME_ZONE = "America/Detroit";
|
window.CHGRID_TIME_ZONE = "America/Detroit";
|
||||||
|
|||||||
@@ -991,7 +991,7 @@ function getPianoParams(item: WorldItem): {
|
|||||||
|
|
||||||
/** Returns default voice mode for a given piano instrument. */
|
/** Returns default voice mode for a given piano instrument. */
|
||||||
function defaultsVoiceModeForInstrument(instrument: PianoInstrumentId): 'mono' | 'poly' {
|
function defaultsVoiceModeForInstrument(instrument: PianoInstrumentId): 'mono' | 'poly' {
|
||||||
if (instrument === 'bass' || instrument === 'violin' || instrument === 'brass') return 'mono';
|
if (instrument === 'bass' || instrument === 'violin') return 'mono';
|
||||||
return 'poly';
|
return 'poly';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1243,7 +1243,7 @@ async function previewPianoSettingChange(
|
|||||||
'preview',
|
'preview',
|
||||||
Math.max(0, Math.min(127, 60 + octave * 12)),
|
Math.max(0, Math.min(127, 60 + octave * 12)),
|
||||||
instrument,
|
instrument,
|
||||||
'poly',
|
current.voiceMode,
|
||||||
attack,
|
attack,
|
||||||
decay,
|
decay,
|
||||||
release,
|
release,
|
||||||
|
|||||||
Reference in New Issue
Block a user