mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
Fix incorrect duration calculation
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user