Hi Gabor, <div><br></div><div>Thanks for answer.</div><div><br></div><div>I solve some issues whit the explain you give me, now I have the following code:</div><div><br></div><div>//</div><div><br></div><div>(define (mid)</div>
<div>     (define note (midi-note))</div><div>     (define vel (vector-ref note 3))</div><div>(display vel) (newline))</div><div><br></div><div>(every-frame (mid))</div><div><br></div><div>//</div><div>in the REPL appears the numbers I receive from the midi device.... </div>
<div><br></div><div>I can take those values of "vel" to scale some objects (for example), but in some time it sends me an error in task, because expects type <vector> and given " #f ", or in other examples expects procedure and given the same " #f "; this #f value appears when no midi message it's sending from the device. </div>
<meta charset="utf-8"><div><br></div><div>I'd been trying to turn the not number value " #f  " to  "1" but can't yet, </div><div><br></div><div>How do you think I can to ignore this error?</div>
<div><br></div><div>Thanks</div><div><br></div><div>Eduardo.</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">2011/2/23  <span dir="ltr"><<a href="mailto:fluxus-request@lists.pawfal.org">fluxus-request@lists.pawfal.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send Fluxus mailing list submissions to<br>
        <a href="mailto:fluxus@lists.pawfal.org">fluxus@lists.pawfal.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.pawfal.org/listinfo.cgi/fluxus-pawfal.org" target="_blank">http://lists.pawfal.org/listinfo.cgi/fluxus-pawfal.org</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:fluxus-request@lists.pawfal.org">fluxus-request@lists.pawfal.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:fluxus-owner@lists.pawfal.org">fluxus-owner@lists.pawfal.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Fluxus digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Luis Navarro invited you to Dropbox (Dropbox)<br>
   2. help (Eduardo Obieta)<br>
   3. Re: help (gabor papp)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 23 Feb 2011 05:40:08 +0000<br>
From: Dropbox <<a href="mailto:no-reply@dropboxmail.com">no-reply@dropboxmail.com</a>><br>
To: <a href="mailto:fluxus@lists.pawfal.org">fluxus@lists.pawfal.org</a><br>
Subject: [Fluxus] Luis Navarro invited you to Dropbox<br>
Message-ID: <<a href="mailto:20110223054008.198E4476985@mailman-2.dropboxmail.com">20110223054008.198E4476985@mailman-2.dropboxmail.com</a>><br>
Content-Type: text/plain; charset="utf8"<br>
<br>
Luis Navarro wants you to use Dropbox to sync and share files online and across computers.<br>
<br>
Get started here: <a href="http://www.dropbox.com/link/20.NYKd022cgp/NjY5OTc5NzQwNw?src=referrals_bulk9" target="_blank">http://www.dropbox.com/link/20.NYKd022cgp/NjY5OTc5NzQwNw?src=referrals_bulk9</a><br>
<br>
- The Dropbox Team<br>
<br>
____________________________________________________<br>
To stop receiving invites from Dropbox, please go to <a href="http://www.dropbox.com/bl/c3af490f2c76/fluxus%40lists.pawfal.org" target="_blank">http://www.dropbox.com/bl/c3af490f2c76/fluxus%40lists.pawfal.org</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20110223/ebbcc4b6/attachment.html" target="_blank">http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20110223/ebbcc4b6/attachment.html</a>><br>

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

<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 23 Feb 2011 13:59:40 +0100<br>
From: gabor papp <<a href="mailto:gabor.lists@mndl.hu">gabor.lists@mndl.hu</a>><br>
To: <a href="mailto:fluxus@lists.pawfal.org">fluxus@lists.pawfal.org</a><br>
Subject: Re: [Fluxus] help<br>
Message-ID: <<a href="mailto:4D6504BC.7020808@mndl.hu">4D6504BC.7020808@mndl.hu</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
hi Eduardo,<br>
<br>
> The message that it sends via (midi-note), is this:<br>
><br>
> *(note-on 0 73 **100**)*<br>
(define note (midi-note))<br>
(define velocity (vector-ref note 3))<br>
<br>
<br>
>   - *OSC*<br>
><br>
> On the other hand, something similar happens to the OSC from iphone , where<br>
> the messages from OSCemote says: "<br>
><br>
> /tuio/2Dcur set {touch_id} {x} {y} {velocity_x} {velocity_y} {acceleration}<br>
it seems you are using tuio, there's a scheme tuio library you can try,<br>
so you don't need to process the messages by hand.<br>
<a href="http://code.google.com/p/scheme-tuio/" target="_blank">http://code.google.com/p/scheme-tuio/</a><br>
<br>
<br>
> Then... when sends " #<void>  " the console tells me expects type<number><br>
> ..., and I given #<void><br>
><br>
> Appologies if it is seem confused, but I don't understand how I can say to<br>
> FLUXUS not to multiply for a void message, or how select some parto of the<br>
> message.<br>
there are type checkers in scheme, for example void? or number?.<br>
<br>
best,<br>
gabor<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Fluxus mailing list<br>
<a href="mailto:Fluxus@lists.pawfal.org">Fluxus@lists.pawfal.org</a><br>
<a href="http://lists.pawfal.org/listinfo.cgi/fluxus-pawfal.org" target="_blank">http://lists.pawfal.org/listinfo.cgi/fluxus-pawfal.org</a><br>
<br>
<br>
End of Fluxus Digest, Vol 70, Issue 13<br>
**************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>Arq. Eduardo H. Obieta<br><br><a href="mailto:arquitectura@laad.com.mx">arquitectura@laad.com.mx</a><br><a href="http://www.laad.com.mx">www.laad.com.mx</a><br>cel. 55 40387218<br>

</div>