mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-19 18:41:58 -04:00
Bug fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user