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);
|
||||
setStrudelMultiChannelOrbits(multiChannelOrbits);
|
||||
setTimeout(refreshProgress, 1000);
|
||||
await handleExport(
|
||||
startCycle,
|
||||
endCycle,
|
||||
sampleRate,
|
||||
maxPolyphony,
|
||||
multiChannelOrbits,
|
||||
downloadName,
|
||||
).then(() => {
|
||||
const modal = document.getElementById('exportModal');
|
||||
modal.close();
|
||||
}).finally(() => {
|
||||
setExporting(false);
|
||||
setProgress(0);
|
||||
setLength(1);
|
||||
});
|
||||
await handleExport(startCycle, endCycle, sampleRate, maxPolyphony, multiChannelOrbits, downloadName)
|
||||
.then(() => {
|
||||
const modal = document.getElementById('exportModal');
|
||||
modal.close();
|
||||
})
|
||||
.finally(() => {
|
||||
setExporting(false);
|
||||
setProgress(0);
|
||||
setLength(1);
|
||||
});
|
||||
}}
|
||||
>
|
||||
<span className="text-foreground">{exporting ? 'Exporting...' : 'Export to WAV'}</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue