logger works now outside of react
+ dynamic sample loading logs + remove old sampler code
This commit is contained in:
parent
23e059a065
commit
0b9d59bf0e
7 changed files with 430 additions and 470 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue