[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame.midi



Hi!

Yes, I also discovered it's using portmidi. I'll check it and the python bindings
for more info, thanks!

/Peter

On 2009-05-01 (Fri) 08:08, René Dudfield wrote:
> Hello,
> 
> it uses portmidi, so best to look at that for capabilities.  Also to
> ask on that mailing list for advanced usage.
> 
> 1(not sure of capability detection), 3 ,4 I know of to be true.  Not
> sure of 2, or 5.
> 
> You can download either the source, and build that.  Or you can
> download prebuilt win/mac versions.  You should be able to take just
> the pypm.pyd or pypm.so, and the midi.py... the midi.py might have
> some dependencies on other parts of pygame.  Consider the pypm
> private, and an implementation detail... it might dissapear to be
> replaced by a different one later.
> 
> There's an examples/midi.py with example listing, input and output.
> The documentation hasn't quite been finished yet, but is mostly done
> as docstrings in lib/midi.py
> 
> It's still unfinished, so maybe it will have a few issues and the API
> may change slightly, but expected to stabalise after the pygame 1.9
> release due in approximately 6 weeks.
> 
> Any bug reports, and patches welcome!
> 
> 
> cu,
> 
> 
> On Fri, May 1, 2009 at 12:51 AM, Peter Gebauer
> <peter.gebauer@xxxxxxxxxxxxxxxxxxxxx> wrote:
> > Hello!
> >
> > I recently wrote an application for configuration of Akai's USB EWI
> > and I used PyAlsa's (Python extension of Alsa) sequencer API.
> > After tracking down and fixing at least three bugs (most of which
> > concerning segfaults tediously tracked down in gdb) and mailing
> > back and forth the maintainer I realized it would take a lot of
> > time and energy since I have no easy access to apply patches.
> > I also realized porting would be an issue. Enter pygame.
> >
> > So, enough background, here are some questions: I'm sending
> > NRPN's and Sysex's, does the following functionality work
> > in pygame.midi?
> >
> > 1) List connected MIDI devices (if possible with capabilities)
> > 2) Connect duplex (read/write)
> > 3) Send events
> > 4) Read events
> > 5) List active port connections
> > 6) What other dependencies will be added to Linux, OSX and Windows
> >
> > Is it possible to download just the midi module somewhere and build
> > it to work with my current version of pygame (1.8.1-3)?
> >
> > Anybody else interrested in EWI's who might want to add support for
> > their device, maybe we can work it in with my Akai project.
> >
> > /Peter
> >