Open felixroos opened 1 month ago
maybe useful: https://strudel.cc/?uk6-NJt-PwEY
Pattern.prototype.hmap = function(fn, pat){ return this.arpWith(haps => stack(...haps.map((h,i) => h.withValue((v) => fn(v,i,haps))))) } let colors = ['cyan','magenta','yellow'] note("c,e,<g a bb a>") .hmap((v,i,h) => ({...v, color: colors[i] })) ._pianoroll()
maybe useful: https://strudel.cc/?uk6-NJt-PwEY