tweets

clean-up #22:

here are my best-of twitter tweets so far. see twitter.com/redFrik for the rest. with the hard limitation of 140 characters, it is really challenging to write a piece of supercollider code that fits and sounds good _and is interesting to listen to for more than a few seconds.

 

//--tweet0001

r{99.do{|i|x={Pan2.ar(SinOsc.ar(i+1,SinOsc.ar((i%9).div(3)*100+(i%9)+500),0.03),1.0.rand2)}.play;2.wait;x.release(25)}}.play//#SuperCollider

99 sine oscillators played one after the other with a two seconds interval. each oscillator lasts for 27 seconds. so the total duration is 99*2+27= 225 seconds. the oscillators are phase modulated with other sine oscillators with frequencies repeating in the number series: 500, 501, 502, 603, 604, 605, 706, 707, 708. the base frequencies of the 99 carrier oscillators slowly raise by one hertz from 1 to 99. the only random thing is the stereo panning position for each oscillator.

 

//--tweet0006

r{loop{x={GVerb.ar(MoogFF.ar(ClipNoise.ar*0.4,LFPar.kr({0.3.rand}!2,0,600,990)),9,9,1)}.play(s,0,19);3.wait;x.release}}.play//#SuperCollider

a clip noise generator runs through a moog filter and then a reverb. every third second there is a new noise added and each noise lasts for 22 seconds. each moog filter has two unique parabolic lfos that runs at a random rate between 0 and 0.3 hertz - each in one channel. at the most there are 8 number of overlapping noises playing at the same time. as there are so many reverbs playing here at once one needs to allocate more memory to sc server. something like this... Server.local.options.memSize= 32768; and then reboot the localhost server.

 

//--tweet0014

play{a=SinOscFB;sum({|i|a.ar(a.ar(a.ar(a.ar(i+1,1/9,999),1/9,a.ar(1/9,1,1/9)),a.ar(0.1,3),i+2*999),a.ar(1/9,1/9),1/9)}!9)!2}//#SuperCollider

this one is completely deterministic although it is hard to believe when hearing it. a lot of nested feedbacking sine oscillators. nine parallel oscillators are mixed down to 1 and duplicated in left and right channels. each of the nine oscillators is frequency and feedback modulated but have a static amplitude of 1/9. the frequency modulator consist of yet more modulated feedbacking sine oscillators, while the feedback of the outer is only modulated with a single feedbacking sine oscillator running at 0.1 hertz. all in all there are 109 unit generators in total running in this tweet and it peaks at about 9.3% of my computer's cpu.

 

//--tweet0016 - tweet0019
these four all work the same way. they only differ in buffer size and what kind of oscillator is used for reading back samples from the buffer. there is not much progress over longer time but they do have characted and subtle though deterministic variation in the details.

 

play{b=LocalBuf(9e4,2).clear;i=Sweep.ar(BufRd.ar(2,b,Saw.ar(12,3e4,4e4)),9e4);BufWr.ar(Saw.ar([8,9]),b,i);BufRd.ar(2,b,i)/2}//#SuperCollider


 

play{b=LocalBuf(8e4,2).clear;i=Sweep.ar(BufRd.ar(2,b,Saw.ar(3.1,4e4,4e4)),8e4);BufWr.ar(Blip.ar([2,3]),b,i);BufRd.ar(2,b,i)}//#SuperCollider


 

play{b=LocalBuf(5e3,2).clear;i=Sweep.ar(BufRd.ar(2,b,Saw.ar(50,2e3,5e3)),6e4);BufWr.ar(Saw.ar([4,3]),b,i);BufRd.ar(2,b,i)/6}//#SuperCollider


 

play{b=LocalBuf(1e4,2).clear;i=Sweep.ar(BufRd.ar(2,b,Saw.ar(1,2e3,5e3)),5e5);BufWr.ar(Saw.ar([8,50]),b,i);BufRd.ar(2,b,i)/3}//#SuperCollider


 

//--tweet0020

play{a=LFPulse;b=(1..4);Mix(a.ar(a.ar(a.ar(a.ar(b/32)+1/8)+1*b)+(Mix(a.ar(b/64))+a.ar(4/b)*(a.ar(a.ar(b/8))*2+b))*100))/8!2}//#SuperCollider

this tweet is also totally deterministic and without any randomness. here a lot of nested square wave oscillators creates the complexity. basically there are 4 channels/voices mixed down to one and then duplicated in left and right channel. there are three levels deep nesting of frequency modulation with another set of square waves mixed and added.

 

//--tweet0021

r{{|j|a=play{sin(Decay.ar(Duty.ar(1/50,0,Dseq(flat({|i|asBinaryDigits(j+1*i)}!8),4),2),j+1*0.008))/2!2};5.12.wait}!256}.play//#SuperCollider

binary numbers from 0 to 255 form the rhythmic patterns in this tweet. each number first repeats 8 times - each time all the bits are shifted one position to the left. that creates an array of 64 ones and zeros. this array is then repeated four times. this is what makes it sound like a 4 x 4/4 bar theme (i.e. 4 bars per number). the total 64*4*256 binary digits are played in sequence and each digit lasts for 1/50th of a second. the total duration becomes 64*4*256/50= 1310.72 seconds. the sound is generated by the ones and the zeros directly. there is an exponential decay for these flipflop pulses that slowly increases throughout the 256 numbers. it starts with a decay time of 0.008 seconds and ends with 2.04 seconds. in the mp3 below only the numbers 0-31 are played.

 

//--tweet0024

{|j|r{{|i|x=sin(i/5+(j*5));Ndef(i%5+(j*5),{Pan2.ar(LFCub.ar(j*2+x*40+400+i)/15,i%5/2-1)}).play;wait(x.abs+0.5)}!500}.play}!5//#SuperCollider

another tweet without any randomness. there are five paralles routines and all do something 500 times. what they do is to define or redefine a node proxy. there are 25 proxies in total and each one contains a sine shaped oscillator panned to one out of four positions in the stereo field. the frequencies are climbing upwards in a slightly jaggered curve. the exact length is a bit complicated to calculate but it is around 575 seconds. in the end the proxies do not stop to play but just keeps the last assigned frequency and the whole soundscape becomes static.