Fix haps not being sorted by time
This commit is contained in:
parent
8f9967c76d
commit
7d890156f4
1 changed files with 3 additions and 1 deletions
|
|
@ -58,7 +58,9 @@ export async function renderPatternAudio(
|
|||
});
|
||||
logger('[webaudio] preloading');
|
||||
|
||||
let haps = pattern.queryArc(begin, end, { _cps: cps });
|
||||
let haps = pattern
|
||||
.queryArc(begin, end, { _cps: cps })
|
||||
.sort((a, b) => a.whole.begin.valueOf() - b.whole.begin.valueOf());
|
||||
|
||||
for (const hap of haps) {
|
||||
if (hap.hasOnset()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue