[chuck-users] multiple osc addresses

Mario Buoninfante mario.buoninfante at gmail.com
Wed Jul 8 15:16:37 EDT 2020


Yup. Basically addresses are strings, so you can check them the way you check strings.

Cheers,
Mario

-- 
electronic musician, sound artist, creative coder, QA engineer
https://vimeo.com/creativecodingsalerno http://mbuoninfante.tumblr.com https://github.com/mariobuoninfante https://bitbucket.org/mariobuoninfanteOn 8 Jul 2020 20:12, Forrest Curo <treegestalt at gmail.com> wrote:
>
> So you could have:
> if (message.address == "/thisstuff") {
>               [put the content into these variables]};
> else {
> //        message.address would instead be "/thatstuff"
>                [put it into those other variables];
> }
> ?
>
> On Wed, Jul 8, 2020 at 11:58 AM Mario Buoninfante <mario.buoninfante at gmail.com> wrote:
>>
>> Hi,
>>
>> You can have a look at this example
>>
>> https://github.com/ccrma/chuck/blob/6217b3b08c3b8bb561730fb112d1b3a204cd1834/examples/osc/osc_dump.ck
>>
>> Cheers,
>> Mario
>>
>> -- 
>> electronic musician, sound artist, creative coder, QA engineer
>> https://vimeo.com/creativecodingsalerno http://mbuoninfante.tumblr.com https://github.com/mariobuoninfante https://bitbucket.org/mariobuoninfante
>>
>> On 8 Jul 2020 19:52, Forrest Curo <treegestalt at gmail.com> wrote:
>>>
>>> Is chuck limited to one osc address per port?
>>>
>>> If not, how to distinguish messages received at one address from those received at another?
>>>
>>> Forrest Curo
>>> San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20200708/7dd1185a/attachment-0001.html>


More information about the chuck-users mailing list