mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-03 22:08:50 -04:00
logger works now outside of react
+ dynamic sample loading logs + remove old sampler code
This commit is contained in:
@@ -63,6 +63,13 @@ function useStrudel({
|
||||
}
|
||||
}, [activateCode, evalOnMount, code]);
|
||||
|
||||
// this will stop the scheduler when hot reloading in development
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
scheduler.stop();
|
||||
};
|
||||
}, [scheduler]);
|
||||
|
||||
const togglePlay = async () => {
|
||||
if (started) {
|
||||
scheduler.pause();
|
||||
|
||||
Reference in New Issue
Block a user