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
641 stars 111 forks source link

add stopAfter? #1082

Open yaxu opened 5 months ago

yaxu commented 5 months ago
const stopAfter = register('stopAfter', function(x, pat) {
  x = Fraction(x);
  return pat.mask(signal((t) => x.gt(t)));
});
yaxu commented 4 months ago

As used in this https://strudel.cc/?G99R16eCPAiy