fix: update default master volume to 1.0

This commit is contained in:
Xiaohan-Tian
2026-05-23 23:39:52 -07:00
parent 7d275802c9
commit 7ee4a7458e
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ export const KEY_SIGNATURE_MAP = {
// }; // };
export const AUDIO_INTERFACE_CONSTANTS = { export const AUDIO_INTERFACE_CONSTANTS = {
DEFAULT_MASTER_VOLUME: 0.8, DEFAULT_MASTER_VOLUME: 1.0,
DEFAULT_TRACK_VOLUME: 0, // 0 dB (unity gain) DEFAULT_TRACK_VOLUME: 0, // 0 dB (unity gain)
MIN_TRACK_VOLUME_DB: -60, // practical floor; displayed as −∞ MIN_TRACK_VOLUME_DB: -60, // practical floor; displayed as −∞
MAX_TRACK_VOLUME_DB: 12, MAX_TRACK_VOLUME_DB: 12,
+1 -1
View File
@@ -120,7 +120,7 @@ export const createMockMidiTrack = (overrides: Partial<{
name: 'Test Track', name: 'Test Track',
id: 0, id: 0,
instrument: 'acoustic_grand_piano' as const, instrument: 'acoustic_grand_piano' as const,
volume: 0.8, volume: 0,
...overrides ...overrides
}; };
+2 -2
View File
@@ -81,7 +81,7 @@ export const createMockTrack = (name = 'Test Track') => {
id: `track-${Date.now()}`, id: `track-${Date.now()}`,
name, name,
instrument: 'acoustic_grand_piano', instrument: 'acoustic_grand_piano',
volume: 0.8, volume: 0,
regions: [], regions: [],
}; };
}; };
@@ -104,4 +104,4 @@ export const createMockNote = (pitch = 60, startBeat = 0, endBeat = 1) => {
endBeat, endBeat,
velocity: 100, velocity: 100,
}; };
}; };