{
   "description" : "Utilizing some Ar's, Kr's, and Pbinds, we can find ourselves in a counter of the fourth mind.",
   "ancestor_list" : [],
   "name" : "Close in Counters of the Fourth Mind",
   "author" : "melliott",
   "is_private" : null,
   "id" : "1-53b",
   "code" : "(\r\nSynthDef(\\closeN, { |out=0, freq=440, gate=1|\r\n    var son = BPF.ar(in: WhiteNoise.ar(20!2),\r\n        freq: freq,\r\n        rq: 0.005,\r\n        mul: 1,\r\n    );\r\n    var env = EnvGen.ar(\r\n        Env.linen(0.1, 0.5, 0.55, 0.8, \\welch),\r\n        doneAction:2\r\n    );\r\n\tson = FreeVerb2.ar(son, son, mix: 0.7, room: 1.0, damp: 0.3);\r\n    Out.ar(out, son * env);\r\n\r\n\r\n}).add;\r\n)\r\n\r\n\r\n(\r\na = {\r\n\tvar saw, bpf;\r\n\tsaw = Saw.ar(\r\n\t\tfreq: [200, 250],\r\n\t\tmul: LFPulse.kr(\r\n\t\t\tfreq: [2, 3],\r\n\t\t\twidth: 0.15));\r\n\tbpf = LPF.ar(in: saw, freq: SinOsc.kr(1/5).range(200, 4000));\r\n\tbpf = FreeVerb2.ar(bpf, bpf, mix: 0.4, room: 0.7);\r\n\tOut.ar(0, bpf);\r\n};\r\ns = {\r\n\tvar saw, bpf;\r\n\tsaw = Saw.ar(\r\n\t\tfreq: [100, 150],\r\n\t\tmul: LFPulse.kr(\r\n\t\t\tfreq: [1, 1.5],\r\n\t\t\twidth: 0.15));\r\n\tbpf = LPF.ar(in: saw, freq: SinOsc.kr(1/5).range(200, 4000));\r\n\tbpf = FreeVerb2.ar(bpf, bpf, mix: 0.4, room: 0.7);\r\n\tOut.ar(0, bpf);\r\n};\r\nd = {\r\n\tvar saw, bpf;\r\n\tsaw = Pulse.ar(\r\n\t\tfreq: [800, 1000],\r\n\t\tmul: LFPulse.kr(\r\n\t\t\tfreq: [1, 1.5],\r\n\t\t\twidth: 0.15).range(0.0,0.7));\r\n\tbpf = LPF.ar(in: saw, freq: SinOsc.kr(1/5).range(200, 4000));\r\n\tbpf = FreeVerb2.ar(bpf, bpf, mix: 0.4, room: 0.7);\r\n\tOut.ar(0, bpf);\r\n};\r\nf = Pbind(\r\n\t\\instrument, \\closeN,\r\n\t\\freq, Pseq([800, 1000, 900, 400, 600], inf),\r\n\t\\dur,  Pseq([1, 1, 1, 1, 4], inf),\r\n\t\\amp, 1);\r\ng = Pbind(\r\n\t\\instrument, \\closeN,\r\n\t\\freq, Pseq([1000, 1150, 1200, 1500, 1200], inf),\r\n\t\\dur,  Pseq([1, 1, 1, 1, 4], inf),\r\n\t\\amp, 0.5);\r\n{\r\n\ta.play;\r\n\t3.75.wait;\r\n\tf.play();\r\n\t4.25.wait;\r\n\ts.play;\r\n\t8.wait;\r\n\td.play;\r\n\t3.75.wait;\r\n\tg.play;\r\n}.fork;\r\n)",
   "labels" : []
}
