[Fluxus] Fluxus Digest, Vol 70, Issue 13

Arq. Eduardo H. Obieta arquitectura at laad.com.mx
Sun Feb 27 01:52:55 PST 2011


Hi Gabor,

Thanks for answer.

I solve some issues whit the explain you give me, now I have the following
code:

//

(define (mid)
     (define note (midi-note))
     (define vel (vector-ref note 3))
(display vel) (newline))

(every-frame (mid))

//
in the REPL appears the numbers I receive from the midi device....

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.

I'd been trying to turn the not number value " #f  " to  "1" but can't yet,

How do you think I can to ignore this error?

Thanks

Eduardo.




2011/2/23 <fluxus-request at lists.pawfal.org>

> Send Fluxus mailing list submissions to
>        fluxus at lists.pawfal.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.pawfal.org/listinfo.cgi/fluxus-pawfal.org
> or, via email, send a message with subject or body 'help' to
>        fluxus-request at lists.pawfal.org
>
> You can reach the person managing the list at
>        fluxus-owner at lists.pawfal.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Fluxus digest..."
>
>
> Today's Topics:
>
>   1. Luis Navarro invited you to Dropbox (Dropbox)
>   2. help (Eduardo Obieta)
>   3. Re: help (gabor papp)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 23 Feb 2011 05:40:08 +0000
> From: Dropbox <no-reply at dropboxmail.com>
> To: fluxus at lists.pawfal.org
> Subject: [Fluxus] Luis Navarro invited you to Dropbox
> Message-ID: <20110223054008.198E4476985 at mailman-2.dropboxmail.com>
> Content-Type: text/plain; charset="utf8"
>
> Luis Navarro wants you to use Dropbox to sync and share files online and
> across computers.
>
> Get started here:
> http://www.dropbox.com/link/20.NYKd022cgp/NjY5OTc5NzQwNw?src=referrals_bulk9
>
> - The Dropbox Team
>
> ____________________________________________________
> To stop receiving invites from Dropbox, please go to
> http://www.dropbox.com/bl/c3af490f2c76/fluxus%40lists.pawfal.org
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20110223/ebbcc4b6/attachment.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 23 Feb 2011 06:33:13 -0600
> From: Eduardo Obieta <eduardobieta at gmail.com>
> To: fluxus at lists.pawfal.org
> Subject: [Fluxus] help
> Message-ID:
>        <AANLkTim_Ws+ezqNZL3HxCZ0R+yMYWsF9Zpe4u6P9M0er at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 23 Feb 2011 13:59:40 +0100
> From: gabor papp <gabor.lists at mndl.hu>
> To: fluxus at lists.pawfal.org
> Subject: Re: [Fluxus] help
> Message-ID: <4D6504BC.7020808 at mndl.hu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> hi Eduardo,
>
> > The message that it sends via (midi-note), is this:
> >
> > *(note-on 0 73 **100**)*
> (define note (midi-note))
> (define velocity (vector-ref note 3))
>
>
> >   - *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}
> it seems you are using tuio, there's a scheme tuio library you can try,
> so you don't need to process the messages by hand.
> http://code.google.com/p/scheme-tuio/
>
>
> > 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.
> there are type checkers in scheme, for example void? or number?.
>
> best,
> gabor
>
>
> ------------------------------
>
> _______________________________________________
> Fluxus mailing list
> Fluxus at lists.pawfal.org
> http://lists.pawfal.org/listinfo.cgi/fluxus-pawfal.org
>
>
> End of Fluxus Digest, Vol 70, Issue 13
> **************************************
>



-- 
Arq. Eduardo H. Obieta

arquitectura at laad.com.mx
www.laad.com.mx
cel. 55 40387218
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20110227/3b396854/attachment-0001.htm>


More information about the Fluxus mailing list