Re: Locating a MIDI device file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Anthony Green wrote:
> On Tue, 2006-07-04 at 09:12 -0500, Clark Williams wrote:
>> I'm working on a function called find_midi_device() that returns the
>> path to a midi device file and was wondering if anyone has done this
>> and had any pointers for using HAL/D-Bus?
>
> Hey Clark -
>
> If you're going to use C, then I recommend using the ALSA APIs instead.
>
> But I know how much you love java :-)  so I recommend using the
> javax.sound.midi package provided in libgcj.  It provides a API for
> querying installed MIDI devices and sending messages back and forth.

Anthony, you know me too well :)

I looked at a *lot* of MIDI code and all of it was overkill for what I
wanted. I'm not interested in sequencing MIDI messages; all I want to
do is to be able to save/restore/adjust parameters in the drum module
and all the modules I have access too (Roland, Yamaha, and Alesis) use
sysex messages to do that.  I ended up writing some C++ code to manage
sysex messages and to manage device specifics.

How do the ALSA libraries locate devices? Do they just look for the
existence of specific device files, or poke around in /proc?

> I will be super easy.
>

I think I'll leave this one alone. NOT! (I suspect a Freudian slip here)

> There's lots of sample code here:
> http://www.jsresources.org/examples/midi_io.html
>
> I wrote the MIDI code in libgcj, so just bug me if you have questions.
>
Thanks, I will (when have I not?).

Clark

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEqyg4Hyuj/+TTEp0RAhsVAJ9aQMS7jX1EA5Ebl26iMecIkC7ggACdFEHm
k3zY0eRs3pgzUVj/LhZHs5Y=
=KMT7
-----END PGP SIGNATURE-----

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux