Adjust piano octave/instrument shortcut feedback
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 R222";
|
window.CHGRID_WEB_VERSION = "2026.02.23 R223";
|
||||||
// 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";
|
||||||
|
|||||||
@@ -2702,13 +2702,7 @@ function handlePianoUseModeInput(code: string): void {
|
|||||||
const next = Math.max(-2, Math.min(2, current + (code === 'Equal' ? 1 : -1)));
|
const next = Math.max(-2, Math.min(2, current + (code === 'Equal' ? 1 : -1)));
|
||||||
item.params.octave = next;
|
item.params.octave = next;
|
||||||
signaling.send({ type: 'item_update', itemId, params: { octave: next } });
|
signaling.send({ type: 'item_update', itemId, params: { octave: next } });
|
||||||
void previewPianoSettingChange(item, { octave: next });
|
|
||||||
updateStatus(`octave ${next}.`);
|
updateStatus(`octave ${next}.`);
|
||||||
if (next === current) {
|
|
||||||
audio.sfxUiCancel();
|
|
||||||
} else {
|
|
||||||
audio.sfxUiBlip();
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (code.startsWith('Digit')) {
|
if (code.startsWith('Digit')) {
|
||||||
@@ -2743,7 +2737,6 @@ function handlePianoUseModeInput(code: string): void {
|
|||||||
brightness: defaults.brightness,
|
brightness: defaults.brightness,
|
||||||
});
|
});
|
||||||
updateStatus(`Instrument ${instrument}.`);
|
updateStatus(`Instrument ${instrument}.`);
|
||||||
audio.sfxUiBlip();
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user