tentando obter playlist real do projeto mmp
This commit is contained in:
1 parent
3380b642b3
commit
7b569c1bde
4 files changed
+203
-223
No files matched your search
@@ -38,12 +38,14 @@ const globalState = {
|
||||
lastRulerClickTime: 0,
|
||||
justReset: false,
|
||||
syncMode: "global",
|
||||
focusedBasslineId: null,
|
||||
};
|
||||
|
||||
export let appState = {
|
||||
global: globalState,
|
||||
pattern: patternState,
|
||||
audio: audioState, // compartilhado com módulo de áudio
|
||||
focusedBasslineId: null,
|
||||
};
|
||||
|
||||
window.appState = appState;
|
||||
@@ -141,12 +143,14 @@ export function resetProjectState() {
|
||||
lastRulerClickTime: 0,
|
||||
justReset: false,
|
||||
syncMode: appState.global.syncMode ?? "global",
|
||||
focusedBasslineId: null,
|
||||
});
|
||||
|
||||
Object.assign(appState.pattern, {
|
||||
tracks: [],
|
||||
activeTrackId: null,
|
||||
activePatternIndex: 0,
|
||||
focusedBasslineId: null,
|
||||
});
|
||||
|
||||
initializeAudioState();
|
||||
|
||||
Reference in new issue
Block a user