play sync now accurate

This commit is contained in:
Jade Rowland
2023-09-29 01:01:01 -04:00
parent 6719c6127b
commit 6eda7af14b
4 changed files with 73 additions and 154 deletions
+16 -16
View File
@@ -128,24 +128,24 @@ function useStrudel({
}
};
listen('abelink-event', async (e) => {
const payload = e?.payload;
if (payload == null) {
return;
}
const { play, bpm, timestamp } = payload;
// listen('abelink-event', async (e) => {
// const payload = e?.payload;
// if (payload == null) {
// return;
// }
// const { play, bpm, timestamp } = payload;
if (started !== play && play != null) {
if (play) {
// activateCode();
start();
} else {
stop();
}
}
// if (started !== play && play != null) {
// if (play) {
// // activateCode();
// start();
// } else {
// stop();
// }
// }
const { message, message_type } = e.payload;
});
// const { message, message_type } = e.payload;
// });
const error = schedulerError || evalError;