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

Re: [sc-users] SendTrig in 2 or more SynthDefs



hi daniel,

first thank you for the reply!
i managed it with one
OSCFunc and a "central" SynthDef for audio input.
dont know why i tried two functions :D

the func:

~responder = OSCFunc({ arg msg, time;

        if(
            msg.at(2)==1,
            {("Buffer Number"+msg.at(3)).postln;}, //stuff
            {nil}
        );

        if(msg.at(2)==2,
            {
                msg.at(3).postln; //stuff
                ~msgTones=msg.at(3);
            },
            {nil}
        );

    },'/tr', s.addr);

the synthdef just uses two SendTrigs now with id 1 and id2.
sorry for bad style :D im a musician....


one question:

why is stop no trigger? when i set it to 1 with:

Synth(\rec,[\stop,1]); //or smth.

shouldnt that trigger the output of

SendTrig.kr(stop,1,1);

inside my synth?


flo.





On 15.12.2014 20:55, Daniel Mayer wrote:
In your SynthDef 'stop' is no trigger.
You can define an id arg.
Maybe you dont need separate OSCFuncs.
You can also use SendReply which is, due to
cmdName arg and value array, more flexible.

Greetings

Daniel
-----------------------------
www.daniel-mayer.at
-----------------------------


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/