Bug fixes
This commit is contained in:
parent
98031676d6
commit
92d3fe496d
3 changed files with 9 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue