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

Re: [sc-users] OSCdef for more osc messages



see prior discussion here: https://www.listarc.bham.ac.uk/lists/sc-users/search/

tldr: this is intended behavior, although other people have found workarounds.

brian

On Sat, Dec 21, 2019, 05:23 <mlang@xxxxxxxxxx> wrote:
mlang@xxxxxxxxxx writes:

> marcello.lussana@xxxxxxxxxxxx writes:
>
>> hi all,
>>
>> I would like to handle more osc messages in one OSCdef function, is that
>> possible?
>> Are there any other way to do that?
>>
>> Let's assume I have the following list of OSC messages:
>> var myOSCList = ["/osc1", "/osc2", "/osc3"]
>>
>> How can I catch all of them in one receiver?
>
> Is is supposed to work with the newMatching class method of OSCFunc and
> OSCdef.
>
> OSCdef(\match, {|...args| args.postln}, '/osc[1-3]')

Ooops, of course I ment to write:

OSCdef.newMatching(\match, {|...args| args.postln}, '/osc[1-3]')

--
CYa,
  ⡍⠁⠗⠊⠕

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/