Tweet-sized: "a11wlk01.wav ambient"

I wanted to tweet something using the classic a11wlk01.wav sample.

(play({tanh(ar(Splay,ar(LeakDC,ar(FreeVerb,ar(Warp1,1,read(Buffer,s,Platform.resourceDir+/+"sounds/a11wlk01.wav"),(r={abs(ar(LFDNoise3,1/86))})!9,midiratio([-36,-9,-14,0,-19,-5,3,-2,-24,-7]),8*r!9+8/86,-1,12,1/4*r!9,4,r!9),r!9,0.5+r!9,r!9)),2/4))},s,\fade,12))
10 Likes

Really nice texture in 140 characters, well done:)

1 Like

Wow! It is great!

\fade, 12 in {}.play()is new to me. I always use fadeTime: 12.
How does sclang accept it? I could not find any information on this.

While understanding your code, I have discovered that your code’s length is 4-character shorter after rewriting your code as follows:

{Splay.ar(LeakDC.ar(FreeVerb.ar(Warp1.ar(1,Buffer.read(s,Platform.resourceDir+/+"sounds/a11wlk01.wav"),(r={LFDNoise3.ar(1/86).abs})!9,[-36,-9,-14,0,-19,-5,3,-2,-24,-7].midiratio,8*r!9+8/86,-1,12,1/4*r!9,4,r!9),r!9,0.5+r!9,r!9)),2/4).tanh}.play(s,\fade,12)

I appreciate you sharing your code with us. It gives me big inspiration and things to rethink!

1 Like

Thank You.

@Thor_Madsen, oh, how i wish i could compete in the #sc140 league. (: I think Twitter is allowing 240 characters now. Half the battle is to avoid having twitter mangle up the code you paste. Hence all the backwards stuff ar(SinOsc, 440) things. Sometimes when tweeting SC code you get away with more, that tweet is 261 bytes.

@prko, No, thank you, Normally i am satisfied when Twitter lets me post something without reformatting the code and move on but thanks to you cutting 4 characters i had tinker further on it. It is now down from 261 characters to 248.

play({c=[3,0]++[2,9,14,19,36,24,7,5].neg;e=86;ar(Splay,ar(LeakDC,ar(FreeVerb,ar(Warp1,1,read(Buffer,s,Platform.resourceDir+/+"sounds/a11wlk01.wav"),r={ar(LFDNoise3,1/e).abs}!9,c.midiratio,8*r+8/e,-1,12,1/4*r,4,r),r,0.5+r,r)),2/4).tanh},s,\fade,12)

I can’t remember when or where the \play thing came into my vocabulary. Sometimes when short on characters to use it comes in handy.

Lukiss.

1 Like