Format
This commit is contained in:
parent
ca936aada7
commit
9cbeaef88d
1 changed files with 10 additions and 15 deletions
|
|
@ -204,21 +204,16 @@ export default function ExportModal(Props) {
|
||||||
setStrudelMaxPolyphony(maxPolyphony);
|
setStrudelMaxPolyphony(maxPolyphony);
|
||||||
setStrudelMultiChannelOrbits(multiChannelOrbits);
|
setStrudelMultiChannelOrbits(multiChannelOrbits);
|
||||||
setTimeout(refreshProgress, 1000);
|
setTimeout(refreshProgress, 1000);
|
||||||
await handleExport(
|
await handleExport(startCycle, endCycle, sampleRate, maxPolyphony, multiChannelOrbits, downloadName)
|
||||||
startCycle,
|
.then(() => {
|
||||||
endCycle,
|
const modal = document.getElementById('exportModal');
|
||||||
sampleRate,
|
modal.close();
|
||||||
maxPolyphony,
|
})
|
||||||
multiChannelOrbits,
|
.finally(() => {
|
||||||
downloadName,
|
setExporting(false);
|
||||||
).then(() => {
|
setProgress(0);
|
||||||
const modal = document.getElementById('exportModal');
|
setLength(1);
|
||||||
modal.close();
|
});
|
||||||
}).finally(() => {
|
|
||||||
setExporting(false);
|
|
||||||
setProgress(0);
|
|
||||||
setLength(1);
|
|
||||||
});
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span className="text-foreground">{exporting ? 'Exporting...' : 'Export to WAV'}</span>
|
<span className="text-foreground">{exporting ? 'Exporting...' : 'Export to WAV'}</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue