Csound Csound-dev Csound-tekno Search About

[Csnd] Reactivision -> OSC -> Csound

Date2009-11-30 09:24
From"vallste@libero.it"
Subject[Csnd] Reactivision -> OSC -> Csound
Attachmentsosctuio.py  TUIO_CS_test.csd  
Hello list,
I'm doing some experiments with Reactivision and trying to make it 
communicate via OSC (TUIO protocol) with Csound. I've understood that the OSC 
messages sent are bundles on the same address (example: /tuio/2Dcur) with a 
string denoting the type of message (see here: http://www.tuio.org/?
specification ).

Since I've no knowledge on strings variables in Csound (my fault) I was not 
able to read the messages with the OSC because they differ in the format and 
content, for example:

List of active objects 
/tuio/2Dcur alive [list of active sessionIDs]
a list with "siiii..." format, how many "i" depends on how many objects are 
active from nothing to infinity

Variation on one object
/tuio/2Dcur set s x y X Y m
a list with "sifffff" format

I've created a simple python program (uses the simple osc library) to read 
port 3333 message bundles from reactivision, create the messages I need, send 
them to port 5775 on different addresses depending on the type of message (to 
be easily read by csound  - see files attached).

It seems to work but can someone tell me if there is a way to make everything 
in csound without the additional (in this case python) programs?

Stefano
Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-11-30 10:23
FromVictor Lazzarini
Subject[Csnd] Re: Reactivision -> OSC -> Csound
I think what you have done is probably the best way around. The thing  
is that
this seems to be an extension to OSC, rather than 'pure' OSC. From  
what I can see, it does not use the address scheme of OSC to select  
different types of messages, so in effect it creates its own  
subprotocol, which needs further processing (done by your program).

I don't think Csound's OSC implementation allows for open-ended  
message types ("iii..."), but I might be wrong.

Victor


On 30 Nov 2009, at 09:24, vallste@libero.it wrote:

> Hello list,
> I'm doing some experiments with Reactivision and trying to make it
> communicate via OSC (TUIO protocol) with Csound. I've understood  
> that the OSC
> messages sent are bundles on the same address (example: /tuio/2Dcur)  
> with a
> string denoting the type of message (see here: http://www.tuio.org/?
> specification ).
>
> Since I've no knowledge on strings variables in Csound (my fault) I  
> was not
> able to read the messages with the OSC because they differ in the  
> format and
> content, for example:
>
> List of active objects
> /tuio/2Dcur alive [list of active sessionIDs]
> a list with "siiii..." format, how many "i" depends on how many  
> objects are
> active from nothing to infinity
>
> Variation on one object
> /tuio/2Dcur set s x y X Y m
> a list with "sifffff" format
>
> I've created a simple python program (uses the simple osc library)  
> to read
> port 3333 message bundles from reactivision, create the messages I  
> need, send
> them to port 5775 on different addresses depending on the type of  
> message (to
> be easily read by csound  - see files attached).
>
> It seems to work but can someone tell me if there is a way to make  
> everything
> in csound without the additional (in this case python) programs?
>
> Stefano
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-11-30 12:14
FromRory Walsh
Subject[Csnd] Re: Re: Reactivision -> OSC -> Csound
I'm not sure how you're currently working with reactivision but a
student of mine has just developed a simple framework for the
development of multitouch GUI instrument for Csound. Of course the
user must have some kind of multitouch surface but it works quite well
with a simple webcam DIY mt interface. It uses PyMT which might be
suitable for what you want. The nice thing about PyMT is that provides
an interface to the TUIO protocol. In the end all we had to do was
call some really simple Csound API methods to pass the data into
Csound using python. PyMT can be found here:http://pymt.txzone.net/

Rory.


2009/11/30 Victor Lazzarini :
> I think what you have done is probably the best way around. The thing is
> that
> this seems to be an extension to OSC, rather than 'pure' OSC. From what I
> can see, it does not use the address scheme of OSC to select different types
> of messages, so in effect it creates its own subprotocol, which needs
> further processing (done by your program).
>
> I don't think Csound's OSC implementation allows for open-ended message
> types ("iii..."), but I might be wrong.
>
> Victor
>
>
> On 30 Nov 2009, at 09:24, vallste@libero.it wrote:
>
>> Hello list,
>> I'm doing some experiments with Reactivision and trying to make it
>> communicate via OSC (TUIO protocol) with Csound. I've understood that the
>> OSC
>> messages sent are bundles on the same address (example: /tuio/2Dcur) with
>> a
>> string denoting the type of message (see here: http://www.tuio.org/?
>> specification ).
>>
>> Since I've no knowledge on strings variables in Csound (my fault) I was
>> not
>> able to read the messages with the OSC because they differ in the format
>> and
>> content, for example:
>>
>> List of active objects
>> /tuio/2Dcur alive [list of active sessionIDs]
>> a list with "siiii..." format, how many "i" depends on how many objects
>> are
>> active from nothing to infinity
>>
>> Variation on one object
>> /tuio/2Dcur set s x y X Y m
>> a list with "sifffff" format
>>
>> I've created a simple python program (uses the simple osc library) to read
>> port 3333 message bundles from reactivision, create the messages I need,
>> send
>> them to port 5775 on different addresses depending on the type of message
>> (to
>> be easily read by csound  - see files attached).
>>
>> It seems to work but can someone tell me if there is a way to make
>> everything
>> in csound without the additional (in this case python) programs?
>>
>> Stefano
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"