[sc-users] [linux] send midi-in to a controlbus
Constantin Popp
constantin.popp at googlemail.com
Sun Oct 7 15:24:50 PDT 2007
greetings,
i'm trying to route an incomming midi-controller-value to an control bus
which is supposed to control the out-volume of an synth. i just don't hear
anything which means the value of the out-volume stays zero.
this is the code:
SynthDef("testBus", { arg bus;
var ovalue;
CCResponder({
arg src, chan, num, value;
Out.kr(bus,value);
}, nil, nil, nil, nil);
}).send(s);
SynthDef("testMidiIn", { arg bus, freqOffset = 200, vol = 0.25;
var sig, volme;
In.kr(bus).scope;
sig = SinOsc.ar(freqOffset, 0, 0.9 * Lag.kr(In.kr(bus),0.25));
Out.ar(0, sig);
}).send(s);
b = Bus.control(s,1);
x = Synth.new("testBus", [\bus, b.index]);
y = Synth.after(x, "testMidiIn",[\bus, b.index])
thanx for you help.
constantin popp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-users/attachments/20071007/44f5b09e/attachment-0001.htm
More information about the sc-users
mailing list