Well,

I have 3 way for obtain by Gambas Midi data:
(explained in (italian language): 
http://www.gambas-it.org/wiki/index.php/Gestione_del_MIDI_con_ALSA )

1) receiving data FROM ALSA by an ALSA function and using a loop with "Timer" 
function (but I would not to use Timer because its inexorable latency);

2) via: OPEN "/dev/snd/midiC2D0" for Watch  ...watching file-device created 
there, when I connect an external Midi-Keyboard. But this is a "extra ALSA" 
metod ! Because, so, I intercept Midi-data from virtual port of my external 
Midi-keyboard, not fron ALSA functions.... instead I will to receive FROM ALSA;

3) receiving FROM ALSA, by using an modified program in C. This program in C 
receives the data and then it sends them to stdout; with gambas-program I read 
those data.
(look example code at: 
http://www.gambas-it.org/wiki/index.php/Alsa_e_Gambas:_Ricezione_con_un_programma_esterno_di_supporto
 )



Bye
Paolo





--- Dom 18/9/11, Ron <[email protected]> ha scritto:

> Da: Ron <[email protected]>
> Oggetto: Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream....
> A: "mailing list for gambas users" <[email protected]>
> Data: Domenica 18 settembre 2011, 15:41
> Dont you have some c code to look at
> from a similar alsa using prog? Or one
> of its utils?
> Op 18 sep. 2011 13:25 schreef "Ian Haywood" <[email protected]>
> het
> volgende:
> > On Sun, Sep 18, 2011 at 8:56 PM, Ru Vuott <[email protected]>
> wrote:
> >> Hello,
> >>
> >> thank you for your statement.
> >
> >>   hfile = OPEN "/proc/self/fd/num"
> for Read Watch
> >>
> >> Where " num " is a number. Well, I tried the
> little program changing the
> number "num":
> >> first with zero, then with 1, then with 2, and so
> on... until
> approximately 60.
> > why wouldn't you use the fd number returned from the
> ALSA library:
> > isn't that the whole point?
> >
> > Ian
> >
> >
> ------------------------------------------------------------------------------
> > BlackBerry&reg; DevCon Americas, Oct. 18-20, San
> Francisco, CA
> > http://p.sf.net/sfu/rim-devcon-copy2
> > _______________________________________________
> > Gambas-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San
> Francisco, CA
> http://p.sf.net/sfu/rim-devcon-copy2
> _______________________________________________
> Gambas-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to