[Fluxus] help
Eduardo Obieta
eduardobieta at gmail.com
Wed Feb 23 04:33:13 PST 2011
MIDI and OSC help.
Hello, i'm so new in programing and I have been working with fluxus the last
months.
Now I'm programming some functions with MIDI and OSC inside FLUXUS, sending
midi message from other machine through a MOTU interface and OSC message
from an iphone, with the OSCemote application, via Wi-Fi.
The problems are the next:
- *MIDI*
The message that it sends via (midi-note), is this:
*(note-on 0 73 **100**)*
I want to know how can I select only the value of the velocity "*100*" in
this case, for a transform like a rotate
*(clear)*
*(midi-init 0)*
*(define (something)*
* (rotate (vector 0 0 **(* 0.5 ("**100**")) **))*
* (draw-cube))*
**
*(every-frame (something))*
- *OSC*
On the other hand, something similar happens to the OSC from iphone , where
the messages from OSCemote says: "
/tuio/2Dcur set {touch_id} {x} {y} {velocity_x} {velocity_y} {acceleration}
in FLUXUS
(cond
((osc-msg "tuio/2Dcur")
(display (osc 1))(newline))) ;looks like that:
*OSC 0 OSC 1 OSC 2*
/tuio/2Dcur source OSCemote at 0a839fc215c31e13c14cf48933a327cb60e93138
#<void>
/tuio/2Dcur set 1 0.41875 0.6691 0 0 0
/tuio/2Dcur alive 1
/tuio/2Dcur fseq 0
/tuio/2Dcur source OSCemote at 0a839fc215c31e13c14cf48933a327cb60e93138
/tuio/2Dcur set 1 0.390625 0.63747 -0.439142 -0.493872 10.3189
/tuio/2Dcur alive 1
/tuio/2Dcur fseq 1
/tuio/2Dcur source OSCemote at 0a839fc215c31e13c14cf48933a327cb60e93138
/tuio/2Dcur set 1 0.396875 0.610706 0.409134 -1.75201 99.3308
/tuio/2Dcur alive 1
/tuio/2Dcur fseq 2
...
Then... when sends " #<void> " the console tells me expects type <number>
..., and I given #<void>
Appologies if it is seem confused, but I don't understand how I can say to
FLUXUS not to multiply for a void message, or how select some parto of the
message.
Hope can help me.
Best Regards.
Eduardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20110223/fb24833f/attachment-0002.htm>
More information about the Fluxus
mailing list