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(
|
||||
hap2value(hap),
|
||||
hap.whole.begin.valueOf() / cps,
|
||||
hap.duration,
|
||||
hap.duration / cps,
|
||||
cps,
|
||||
hap.whole?.begin.valueOf(),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -211,12 +211,13 @@ export default function ExportModal(Props) {
|
|||
maxPolyphony,
|
||||
multiChannelOrbits,
|
||||
downloadName,
|
||||
).finally(() => {
|
||||
setExporting(false);
|
||||
).then(() => {
|
||||
const modal = document.getElementById('exportModal');
|
||||
modal.close();
|
||||
}).finally(() => {
|
||||
setExporting(false);
|
||||
setProgress(0);
|
||||
setLength(1);
|
||||
modal.close();
|
||||
});
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue