feat: added an option to let user choose the vertical resolution of the spectrogram, also fixed a bug that peak of pitch in the spectrogram has been mapped to the start of the note bin instead of the center

This commit is contained in:
Xiaohan-Tian
2026-05-04 20:14:04 -07:00
parent d089456676
commit 8a6e904ab4
12 changed files with 302 additions and 41 deletions
+4 -2
View File
@@ -71,6 +71,7 @@ interface AppConfig {
};
editor: {
playhead_update_frequency: number;
spectrogram_height_resolution: 1 | 3 | 5;
};
chatbox: {
default_open: boolean;
@@ -243,7 +244,8 @@ export class ConfigManager {
},
},
editor: {
playhead_update_frequency: 10
playhead_update_frequency: 10,
spectrogram_height_resolution: 3
},
chatbox: {
default_open: true
@@ -607,4 +609,4 @@ export class ConfigManager {
console.error('Error disposing ConfigManager:', error);
}
}
}
}