[Gambas-user] Developing MIDI app with Gambas

Jean-Francois Perreault cmcpero at ...142...
Fri Apr 22 07:37:09 CEST 2005


Juan Jose Costello Levien wrote:

> Hi,
>
> I want to receive MIDI signals on a MIDI port connected to a MIDI 
> device, and process them as I need. Is there a way to do that? 
> Something related to SDL?

Hi,

well you could use one of the many midi processing libs

http://libtimidity.sourceforge.net/
of
http://jmusic.ci.qut.edu.au/
the
http://www.hypercore.co.jp/opensource/libmidixx/
many
http://perso.wanadoo.es/antlarr/libkmid.html
midi
http://jedi.ks.uiuc.edu/~johns/projects/midid/
processing
http://www.jdkoftinoff.com/main/Free_Projects/C++_MIDI_Library/
libs , that are available out there but unfortunately you can't do 
direct call to external libs' functions with gambas (for now anyway)

you can wait for someone to make an interpreter-to-lib interface 
component (that probably won't give you access to everything the lib can 
do, and the interface will be completely different than the lib's API 
(of which only a subset of would be accessible to you anyway)) , but 
that's not happening anytime soon  since gtk and sdl have much high 
priority than midi unfortunately

you could use the alsa or oss character device and build something from 
scratch (it's probably not -that- hard to get at least some base 
functionallity), and gambas -is- fast enough for it if you are careful 
(that means use native variable types wherever speed counts and you're 
good, unfortunately since the class array types are resizable and work 
in most cases the native type never got a way to resize them (even 
destructively) so that could get in the way , but it's not fatal) , the 
real problem is that you don't have a ioctl function and that means you 
won't be playing midi anytime soon (you could just call ioctl in libc or 
whatever , but no external lib calls means you can't)

so do what we do and use SHELL and just make a frontend to a couple C 
apps , but while your there , why not just SHELL EXEC  one of the 
ready-made midi suites

http://timidity.sourceforge.net/
of
http://www.rosegardenmusic.com/
the
http://anthem.sourceforge.net/
the
http://muse-sequencer.org/
ready-made
http://freshmeat.net/redir/cmt/40762/url_homepage/cmtman.ps
midi
http://www.filter24.org/seq24/
suites
http://www.reduz.com.ar/cheesetronic/
that
http://www.manyetas.com/creed/
probably
http://nosuch.com/keykit/
already
http://gmorgan.sourceforge.net/
do
http://hometown.aol.com/knudsenmj/myhomepage/umuselx.htm
everything
http://www.tml.hut.fi/~tilmonen/mustajuuri/index.html
you
http://www.musickit.org/
need
http://thinksynth.org/
anyway
http://brahms.sourceforge.net/
this one looks good
http://bloodshed.net/wired/
this one too
http://www.hydrogen-music.org/
this one too
http://www.arts-project.org/
looks like moog modular
http://www.pawfal.org/Software/SSM/
who uses a postscript file as home page !
http://www-2.cs.cmu.edu/afs/cs.cmu.edu/project/music/web/cmt/cmtman.ps

well , and that's about it

--
Jean-Francois Perreault




More information about the User mailing list