[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] OSC Problem





Hello.

I just tried to connect Max/MSP4.5.4 and the latest SuperCollider3 from CVS on MaxOS10.4.2.
I used "Joegendy"  by th for testing. but it doesn't work.
Error messages are "FAILURE /max Command not found".
The server recognize \quit or \dumpOSC message. but it dosen't understand original one.
I could execute all SC3 sources by th without error.

Besides. it prints storange output(I turned on dumpOSC) when I sent a message "/n_set 1002 amp 5" from Max/MSP
Doesn't SuperCollider recognize Max Symbol as a string automatically?

[ "#bundle", 1,
    [ "/n_set", 1002, 1634562048, 5 ]
]

- I have already tried it with two computers with network
- and I used also NetAddr instead of nil for OSCResponder

Any idea?

Thanks

Chikashi Miyama




(
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.