(
SynthDef(\gendy1, {arg pan=0, ampdist=1, durdist=1, adparam=1,
ddparam=1, minfreq=30, maxfreq=100,
ampscale=0.3, durscale=0.05, initCPs=5,
knum=12, mul=1.0, add=0;
var gendy, pansignal;
gendy = Gendy1.ar(ampdist, durdist, adparam, ddparam, minfreq,
maxfreq, ampscale, durscale, initCPs);
pansignal = Pan2.ar(gendy, pan);
Out.ar(0, pansignal); // our output to the soundcard
}).load(s)
)
Synth(\gendy1) // try it! -- and kill it again with "apple + ."
(
// Now you need to listen to Max using OSC.
// We create an OSCresponder:
o = OSCresponder(nil, '/max', { arg time, resp, msg;
[time, msg].postln; // comment this line out when
performing - you see this in the post window
q.set(msg[1], msg[2]) // here we set the parameters of the
synth
}).add;
// Let's instantiate our synth:
q = Synth(\gendy1) // we put it into a variable "q" so we can
)
On 6 Jul 2005, at 11:31, Ricardo Guerreiro wrote:
Hello all
I'm trying to use OSC with SC in order to send and receive control
data to/from Max/Msp running in another computer. Is it possible?
Where can I read about how to do it? I don't even know how to do
it in the same machine...
There is a little example file here:
http://www.ixi-software.net/content/backyard.html
under the Code section called joeGendy
which explains Max -> SuperCollider communication.
have a look at that.