mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-19 10:36:42 -04:00
Fix maxPolyphony and multiChannelOrbits not applying to export
This commit is contained in:
@@ -204,7 +204,7 @@ export default function ExportModal(Props) {
|
||||
setStrudelMaxPolyphony(maxPolyphony);
|
||||
setStrudelMultiChannelOrbits(multiChannelOrbits);
|
||||
setTimeout(refreshProgress, 1000);
|
||||
await handleExport(startCycle, endCycle, sampleRate, downloadName).finally(() => {
|
||||
await handleExport(startCycle, endCycle, sampleRate, maxPolyphony, multiChannelOrbits, downloadName).finally(() => {
|
||||
setExporting(false);
|
||||
const modal = document.getElementById('exportModal');
|
||||
setProgress(0);
|
||||
|
||||
@@ -205,7 +205,7 @@ export function useReplContext() {
|
||||
editorRef.current.evaluate();
|
||||
};
|
||||
|
||||
const handleExport = async (begin, end, sampleRate, downloadName = undefined) => {
|
||||
const handleExport = async (begin, end, sampleRate, maxPolyphony, multiChannelOrbits, downloadName = undefined) => {
|
||||
await editorRef.current.evaluate(false);
|
||||
editorRef.current.repl.scheduler.stop();
|
||||
await renderPatternAudio(
|
||||
@@ -214,6 +214,8 @@ export function useReplContext() {
|
||||
begin,
|
||||
end,
|
||||
sampleRate,
|
||||
maxPolyphony,
|
||||
multiChannelOrbits,
|
||||
downloadName,
|
||||
).finally(() => {
|
||||
editorRef.current.repl.scheduler.stop();
|
||||
|
||||
Reference in New Issue
Block a user