Heyy guys! Some of you asked me how I did the visuals for my previous weekly assignment. Here is the code:
src(o0).modulateHue(src(o0).scale(1.01),1).layer(osc(10,.1,2).mask(osc(200).modulate(noise(3)).thresh(1,0.1))).out()
The above code I used to transition from my previous visual. And the below one is the one connected to midi:
osc(10,.1,2).mask(osc(200).modulate(noise(()=>cc[0]*3+1)).thresh(()=>(cc[0]),0.1)).rotate().out()
Altering the thresh values and noise level made interesting patterns!
Also, I wondered what the difference was between layer and mask. While coming up with the above, I discovered that layer and mask can be used interchangeably in the following way:
// the following 2 codes are same osc(10,.1,2).layer(osc(200).luma(0.5,0.8).color(0,0,0,1)).out() osc(10,.1,2).mask(osc(200)).out()
The above 2 lines of code produce the same output. Hope this was helpful! 🙂