|
|
|
@ -388,3 +388,39 @@
|
|
|
|
|
y.set(\direct, 0);
|
|
|
|
|
z.set(\direct, 0);
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
b = Bus.control(s, 1);
|
|
|
|
|
b.set(880);
|
|
|
|
|
|
|
|
|
|
c = Bus.control(s, 1);
|
|
|
|
|
c.set(884);
|
|
|
|
|
|
|
|
|
|
x = SynthDef(
|
|
|
|
|
"tutorial-map",
|
|
|
|
|
{
|
|
|
|
|
|freq1 = 440, freq2 = 440|
|
|
|
|
|
Out.ar(0, SinOsc.ar([freq1, freq2], 0, 0.2));
|
|
|
|
|
}
|
|
|
|
|
).play(s);
|
|
|
|
|
|
|
|
|
|
// x.map(\freq1, b, \freq2, c);
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
y = {
|
|
|
|
|
Out.kr(b, SinOsc.kr(1, 0, 50, 880));
|
|
|
|
|
}.play(addAction: \addToHead);
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// y.free;
|
|
|
|
|
|
|
|
|
|
// b.get({ |val| val.postln; f = val; });
|
|
|
|
|
|
|
|
|
|
// x.set(\freq2, f / 2);
|
|
|
|
|
|
|
|
|
|
// c.set(200);
|
|
|
|
|
|
|
|
|
|
// x.free;
|
|
|
|
|
// b.free;
|
|
|
|
|
// c.free;
|
|
|
|
|
)
|
|
|
|
|