Skip to content

Instantly share code, notes, and snippets.

@furenku
Created October 27, 2015 05:10
Show Gist options
  • Save furenku/35e9e4d00ef836ee4121 to your computer and use it in GitHub Desktop.
Save furenku/35e9e4d00ef836ee4121 to your computer and use it in GitHub Desktop.
init for kernspaltung lc
"Init MandelSpace".postln;
x=m.space;
// inicializar proxyspace:
"Init ProxySpace".postln;
p = ProxySpace.push( s );
(
k = [\test_1, \test_2];
"Create and map control proxies".postln;
k.collect{|key|
// create controlproxy in proxyspace
("set " ++ key.asString ).postln;
p[key] = {|val| val };
x[key].addDependant({|o,w,v|
p[key].set(\val, v.value());
});
};
)
~smallLfo = { SinOsc.kr((1/16),1/5,0.07,0.05) };
~x ={ ( ( RLPF.ar( WhiteNoise.ar, 20*~test_1.kr, ~smallLfo.kr ) ! 2 ) * 30 ).tanh / 10 };
~y ={ ( ( RLPF.ar( WhiteNoise.ar, 80*p[\test_2].kr, ~smallLfo.kr ) ! 2 ) * 30 ).tanh / 10 };
~out = ~x + ~y;
m.chat("hola")
x[\test_1]=200;
x[\test_2]=1/2;
~test_1 = {|val| val };
~test_1 = {|val| Stepper.kr( Impulse.kr(0.3*val),0,0.5,8.2 )};
~test_2 = {|val| val };
~test_2 = {|val| Stepper.kr( Impulse.kr(val),0,0.5,18.2 )};
~out.play;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment