Reapply realtimeOptions after export

This commit is contained in:
Nikita
2025-10-24 14:07:57 +03:00
parent 9cbeaef88d
commit ff370cf86f
4 changed files with 16 additions and 13 deletions
@@ -4,8 +4,6 @@ import NumberInput from './NumberInput';
import { useEffect, useState } from 'react';
import { Textbox } from './textbox/Textbox';
import {
setMultiChannelOrbits as setStrudelMultiChannelOrbits,
setMaxPolyphony as setStrudelMaxPolyphony,
getAudioContext,
} from '@strudel/webaudio';
import XMarkIcon from '@heroicons/react/24/outline/XMarkIcon';
@@ -201,8 +199,6 @@ export default function ExportModal(Props) {
disabled={exporting}
onClick={async () => {
setExporting(true);
setStrudelMaxPolyphony(maxPolyphony);
setStrudelMultiChannelOrbits(multiChannelOrbits);
setTimeout(refreshProgress, 1000);
await handleExport(startCycle, endCycle, sampleRate, maxPolyphony, multiChannelOrbits, downloadName)
.then(() => {