Created
June 21, 2022 06:52
-
-
Save thormagnusson/47ddd403626151fc5810d21767d58639 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s.boot | |
Event | |
a = EventStream.new(()) | |
SynthDef(\click, {arg freq=50; Out.ar(0, Ringz.ar(Impulse.ar(0.1), [freq, freq+1], 0.1) * Line.ar(1,0,0.1,1,0,2))}).add | |
a = ().asEventStream | |
a.start | |
a.addEvent(().put(\dur, 0.2)) | |
a.addEvent(().put(\instrument,\click)) | |
a.addEvent(().put(\note, Pseq([1,2,3],inf))) | |
a.addEvent(().put(\note, Pseq([11,22,33],inf))) | |
b = ().asEventStream | |
b.start | |
b.stop | |
b.addEvent(().put(\dur, 0.2)) | |
b.addEvent(().put(\instrument,\click)) | |
b.addEvent(().put(\note, Pseq([1,2,3]*8,inf))) | |
a.addEvent(().put(\note, Pseq([11,22,33],inf))) | |
{100.do({100.rand.postln; 0.1.wait})}. | |
{ | |
100.do({ | |
Synth(\click, [\freq, 2199]); | |
0.4.wait; | |
}); | |
}.fork(TempoClock.default, 2) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment