redfrik
YaBB Newbies
Offline
Posts: 8
Re: SuperCollider and Processing Example Code
Reply #5 - Dec 5th , 2005, 8:46pm
hi marius, works fine here on osx. may i suggest to first try out the synth from within sc itself. select and evaluate (ctrl+ret) these lines one at a time (er, after the code sojamo posted that prepares/boots the server and sends the synthdef of course)... a= Synth("rand_osc4", [\trig, 1]) //start synth b= Synth("rand_osc4", [\trig, 1]) c= Synth("rand_osc4", [\trig, 1]) a.free //remove synth b.free c.free this should make some sound and produce no errors. yes/no? if you get "FAILURE /s_new SynthDef not found" then the synthdef didn't get sent to the server. if that all works then run this... s.dumpOSC(1) //start posting incoming osc and start the processing code. playing with the circle and sc should spit out something like below. else you've got problems with osc. [ "/status", ] [ "/status", ] [ "/status", ] [ "/status", ] [ "/status", ] [ "/s_new", "rand_osc4", 4000, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4001, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4002, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4003, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4004, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4005, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4006, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4007, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4008, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4009, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4010, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4011, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4012, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4013, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4014, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4015, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4016, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4017, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4018, 0, 1, "pick", 1 ] [ "/s_new", "rand_osc4", 4019, 0, 1, "pick", 1 ] [ "/status", ] [ "/status", ] [ "/status", ] [ "/status", ] [ "/status", ] [ "/n_set", 4001, "trig", 0 ] [ "/n_set", 4001, "trig", 1 ] [ "/n_set", 4002, "trig", 0 ] [ "/n_set", 4002, "trig", 1 ] [ "/n_set", 4003, "trig", 0 ] [ "/n_set", 4003, "trig", 1 ] [ "/n_set", 4004, "trig", 0 ] [ "/n_set", 4004, "trig", 1 ] [ "/n_set", 4005, "trig", 0 ] [ "/n_set", 4005, "trig", 1 ] [ "/n_set", 4006, "trig", 0 ] [ "/n_set", 4006, "trig", 1 ] [ "/n_set", 4007, "trig", 0 ] [ "/n_set", 4007, "trig", 1 ]