WIP non-realtime exporting

This commit is contained in:
Nikita
2025-10-19 14:35:23 +03:00
parent 6e58c973af
commit 0fbde61b2d
12 changed files with 217 additions and 31 deletions
+7 -3
View File
@@ -42,9 +42,9 @@ const extensions = {
isMultiCursorEnabled: (on) =>
on
? [
EditorState.allowMultipleSelections.of(true),
EditorView.clickAddsSelectionRange.of((ev) => ev.metaKey || ev.ctrlKey),
]
EditorState.allowMultipleSelections.of(true),
EditorView.clickAddsSelectionRange.of((ev) => ev.metaKey || ev.ctrlKey),
]
: [],
};
const compartments = Object.fromEntries(Object.keys(extensions).map((key) => [key, new Compartment()]));
@@ -268,6 +268,10 @@ export class StrudelMirror {
this.flash();
await this.repl.evaluate(this.code);
}
async exportAudio(begin, end) {
// await this.repl.evaluate(this.code, false)
this.repl.exportAudio(begin, end);
}
async stop() {
this.repl.scheduler.stop();
}