Fix incorrect duration calculation
This commit is contained in:
parent
fe70a2df43
commit
ca936aada7
2 changed files with 5 additions and 4 deletions
|
|
@ -68,7 +68,7 @@ export async function renderPatternAudio(
|
||||||
await superdough(
|
await superdough(
|
||||||
hap2value(hap),
|
hap2value(hap),
|
||||||
hap.whole.begin.valueOf() / cps,
|
hap.whole.begin.valueOf() / cps,
|
||||||
hap.duration,
|
hap.duration / cps,
|
||||||
cps,
|
cps,
|
||||||
hap.whole?.begin.valueOf(),
|
hap.whole?.begin.valueOf(),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -211,12 +211,13 @@ export default function ExportModal(Props) {
|
||||||
maxPolyphony,
|
maxPolyphony,
|
||||||
multiChannelOrbits,
|
multiChannelOrbits,
|
||||||
downloadName,
|
downloadName,
|
||||||
).finally(() => {
|
).then(() => {
|
||||||
setExporting(false);
|
|
||||||
const modal = document.getElementById('exportModal');
|
const modal = document.getElementById('exportModal');
|
||||||
|
modal.close();
|
||||||
|
}).finally(() => {
|
||||||
|
setExporting(false);
|
||||||
setProgress(0);
|
setProgress(0);
|
||||||
setLength(1);
|
setLength(1);
|
||||||
modal.close();
|
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue