Bug fixes

This commit is contained in:
Nikita 2025-10-21 21:00:30 +03:00
parent 98031676d6
commit 92d3fe496d
3 changed files with 9 additions and 7 deletions

View file

@ -264,9 +264,9 @@ export class StrudelMirror {
console.warn('first frame could not be painted');
}
}
async evaluate() {
async evaluate(autoplay = true) {
this.flash();
await this.repl.evaluate(this.code);
await this.repl.evaluate(this.code, autoplay);
}
async stop() {
this.repl.scheduler.stop();

View file

@ -52,11 +52,11 @@ export async function renderPatternAudio(pattern, cps, begin, end, sampleRate, d
setSuperdoughAudioController(new SuperdoughAudioController(audioContext));
setMaxPolyphony(1024);
setMultiChannelOrbits(true);
await loadWorklets();
await initAudio();
logger('[webaudio] start rendering');
let haps = pattern.queryArc(begin, end, { _cps: cps });
Promise.all(
await Promise.all(
haps.map(async (h) => {
let s;
if (h.value.s) {