Bug fixes

This commit is contained in:
Nikita
2025-10-21 21:00:30 +03:00
parent 98031676d6
commit 92d3fe496d
3 changed files with 9 additions and 7 deletions
+5 -3
View File
@@ -206,7 +206,8 @@ export function useReplContext() {
};
const handleExport = async (begin, end, sampleRate, downloadName = undefined) => {
await editorRef.current.evaluate();
await editorRef.current.evaluate(true);
editorRef.current.repl.scheduler.stop();
await renderPatternAudio(
editorRef.current.repl.state.pattern,
editorRef.current.repl.scheduler.cps,
@@ -214,8 +215,9 @@ export function useReplContext() {
end,
sampleRate,
downloadName,
);
editorRef.current.repl.scheduler.stop();
).finally(() => {
editorRef.current.repl.scheduler.stop();
});
};
const handleShuffle = async () => {
const patternData = await getRandomTune();