add dough function for raw dsp

This commit is contained in:
Felix Roos 2023-09-25 22:34:31 +02:00
parent 9e27c0fe2c
commit 6e26f39751
3 changed files with 87 additions and 1 deletions

View file

@ -149,7 +149,12 @@ export function Repl({ embedded = false }) {
onEvalError: (err) => {
setPending(false);
},
onToggle: (play) => !play && cleanupDraw(false),
onToggle: (play) => {
if (!play) {
cleanupDraw(false);
window.postMessage('strudel-stop');
}
},
drawContext,
// drawTime: [0, 6],
paintOptions,