Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Csound and reacTIVision

Date2007-12-14 20:41
Fromvictor
Subject[Csnd] Re: Csound and reacTIVision
I have used OSC without any problems. Perhaps you can post
a simple CSD for us to check.

Victor

----- Original Message ----- 
From: "Arda Eden" 
To: 
Sent: Friday, December 14, 2007 7:02 PM
Subject: [Csnd] Csound and reacTIVision


>
> I've been working on using  http://mtg.upf.es/reactable/?software
> reacTIVIsion  with csound for some time. I can create OSC messages by 
> using
> reactivision or TUIO simulators but i can't listen them using OSC opcodes.
> OSCinit opens a port and listens to it but i can't read any values by
> OSClisten. Any one working on this ?
>
> -----
> Arda Eden
> Cumhuriyet University
> Faculty of Fine Arts
> Department of Music Technology
> Sivas / TURKEY
> -- 
> View this message in context: 
> http://www.nabble.com/Csound-and-reacTIVision-tp14269300p14269300.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2007-12-14 23:32
From"Arda Eden"
Subject[Csnd] Re: Re: Csound and reacTIVision
AttachmentsNone  None  

Date2007-12-15 14:58
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Csound and reacTIVision
Hi Arda,

I haven't checked the reactivision OSC namespaces, but they probably
don't transmit anything on /foo/bar =). Apart from the namespace route,
you must also know the type of information coming. For example "ff"
means two floats are expected. I haven't checked, but I think csound
shows nothing if the messages does not conform exactly to what is
expected.

Cheers,
Andrés

El sáb, 15-12-2007 a las 01:32 +0200, Arda Eden escribió:
> A TUIO simulator creates a message like this:
> 
> set obj 0 27 0.425 0.78 3.1415927 0.16233395910432108 0.16233395910432108 0.0 -4.908136E-4 0.0
> 
> This happens on localhost(
> 127.0.0.1:3333) port 3333 and i can watch it by using a network analyzer. I'm not sure if the first two string
> parameters "set" and "obj" should be handled but at least i'm expecting to handle first two values "0" and "27". If i succeed i'll be able
> 
> to control any instrument parameters. Below there is the data format for the TUIO protocol and an example csd code. I'm working on a linux
> machine.
> 
> TUIO protocol data format
> ------------------------------------------------------
> 
> s 		sessionID, temporary object ID, int32 
> i 		classID, fiducial ID number, int32 
> x, y, z 	position, float32, range 0...1 
> a, b, c 	angle, float32, range 0..2PI 
> X, Y ,Z 	movement vector (motion speed & direction), float32 
> 
> A, B, C 	rotation vector (rotation speed & direction), float32 
> m 		motion acceleration, float32 
> r 		rotation acceleration, float32 
> P 		free parameter, type defined by OSC packet header
> 
> ;OSClisten.csd 
> ;---------------------
> 
> 
> 
> -+rtaudio=alsa -o dac -B4096
> 
> 
> 
>   sr = 44100
>   ksmps = 100
>   nchnls = 1
> 
>   gihandle OSCinit 3333 
> 
>   instr   1
>     kf1 init 0
>     kf2 init 0
> nxtmsg:
>     kk  OSClisten gihandle, "/foo/bar", "ff", kf1, kf2
> if (kk == 0) goto ex
>     printk 0,kf1
>     printk 0,kf2
>     kgoto nxtmsg 
> ex:
>   endin
> 
> 
> 
> i1 0 3600
> e
> 
> 
> 
> By the way, i tried to change the parameter "ff" as "ss", "ii" and the
> "print" statement. But there's no terminal output for "kf1" and "kf2".
> THANKS. 
> 
> 
> Arda EDEN
> Cumhuriyet University
> Faculty of Fine Arts
> Department of Music Technology