Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Stockmarket Sonification
name
code content
( SynthDef(\dollar, { |out, freq = 440, amp = 0.1, pan = 0, sustain = 1.0| var env = EnvGen.kr(Env([amp, amp, 0], [sustain, 0.01]), doneAction: 2); var decay = freq ** -0.5 * 100; var string = CombL.ar(Decay2.ar(Impulse.ar(0), 0.0001, 0.001), 1/freq, 1/freq, decay); var damped = string; //LPF.ar(string, Line.kr(11000, 3000, decay)); OffsetOut.ar(out, Pan2.ar(damped * env, pan)); }).add; ); ( SynthDef(\euro, { |out, freq = 440, amp = 0.1, pan = 0, sustain = 1.0| var env = EnvGen.kr(Env.perc(0.001, sustain), doneAction: 2); var decay = freq ** -0.5 * 100; var thing; freq = freq * (1..7).nthPrime; thing = SinOsc.ar(freq , 0, amp * AmpComp.kr(freq)).mean; OffsetOut.ar(out, Pan2.ar(thing * env, pan)); }).add; ); ( Pdef(\stock, { |note = 0, sustain = 1| Pbind( \instrument, [\dollar, \euro].choose, \note, note.value + Pseq((12..0).curdle(0.1).scramble.flat * 3), \dur, sustain.value / 12 ) }) ); ( Pdef(\ett, Pbind( \type, \phrase, \instrument, \stock, \dur, 4, \legato, Prand((1..5), inf), \note, Prand((0..12), inf) + Prand([[0, 2], [0, 6], [0, 7], 0, 0], inf) ) ).play )
code description
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change