tidalcycles / strudel

Web-based environment for live coding algorithmic patterns, incorporating a faithful port of TidalCycles to JavaScript
https://strudel.cc/
GNU Affero General Public License v3.0
643 stars 111 forks source link

flok: first evaluation will error when setcps is used #942

Closed felixroos closed 6 months ago

felixroos commented 8 months ago

probably because evalScope isn't finished when eval runs. the call of evalScope in injectPatternMethods needs to be returned + injectPatternMethods() in evaluate needs to be awaited. this doesn't happen in the main repl for some reason (maybe some other thing is awaited that shadows this issue)