Better export UI

This commit is contained in:
Nikita 2025-10-20 20:19:52 +03:00
parent 418bca79b2
commit ff83994733
8 changed files with 195 additions and 109 deletions

View file

@ -268,9 +268,9 @@ export class StrudelMirror {
this.flash();
await this.repl.evaluate(this.code);
}
async exportAudio(begin, end) {
async exportAudio(begin, end, sampleRate, downloadName = undefined) {
await this.repl.evaluate(this.code, false)
await this.repl.exportAudio(begin, end);
await this.repl.exportAudio(begin, end, sampleRate, downloadName);
this.repl.scheduler.stop();
}