470,643 Members | 1,348 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,643 developers. It's quick & easy.

midipy.py on linux

Hi
Ive been using midipy in my blender3d python scripts on windowsXP, now
im trying to run them from ubuntu and i cant find the midipy.py module
compiled for linux anywhere.
Is it possible to complie it under linux and how would i go about doing
it --or--
Is there another module which does the same thing available for linux[ie
i can get raw midi data in as a list] and thats why no-ones bothered to
compile midipy under linux?

Thanks
Will

Apr 27 '06 #1
1 1539
Will Hurt wrote:
Hi
Ive been using midipy in my blender3d python scripts on windowsXP, now
im trying to run them from ubuntu and i cant find the midipy.py module
compiled for linux anywhere.
Is it possible to complie it under linux and how would i go about doing
it --or--
Is there another module which does the same thing available for linux[ie
i can get raw midi data in as a list] and thats why no-ones bothered to
compile midipy under linux?

Thanks
Will


The MIDI IO module I use pyPortMidi, supposedly supports Linux, but I
have only ever used it on Windows.

The links in the Python Cheese Shop seem broken, so here's the site address:

http://alumni.media.mit.edu/~harrison/code.html

The C library it is based on is here:

http://www.cs.cmu.edu/~music/portmusic/

There doesn't seem to be any documentation for pyPortMidi, so you will
need to read the comments in the portmidi.h from the original C library
and the test.py file included in the distribution.

http://www.cs.cmu.edu/~music/portmus...idi/portmidi.h

The Read() method of the input stream object returns a list of events,
each event consists of 4 bytes of data and a timestamp. Each event
contains a single MIDI message (not all of the 4 bytes will be used for
most messages). Sysex commands are broken up into 4 byte pieces and
returned as multiple events, one for each 4 bytes.

Format is like this:

[[[byte0,byte1,byte2,byte3],time],...]

Not sure if it uses lists or tuples, since I use it mainly for output
and I don't have MIDI input on this machine to test it...

Hope this helps.

--
Jesse Hager
email = "wr********@tznvy.pbz".decode("rot13")
Apr 27 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jhuola Hoptire | last post: by
5 posts views Thread by cranium.2003 | last post: by
1 post views Thread by rada.lambretha | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.