473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Python MIDI in 2008

For the last couple of days, I've been looking for a Python midi
library. I'm generally interested in sending MIDI events via ALSA. It
seems like everything out there is pretty old; packages are from 2003
or 2005. Some packages don't seem to be really used, for instance
portmidi doesn't even support installing it system-wide; you can
compile it and... no make install for you.

What I've found so far:
- http://wiki.python.org/moin/PythonInMusic mostly point to non-
existing or very old software packages
- http://www.mxm.dk/products/public/pythonmidi/ -- no realtime support

Promising packages:
- http://trac2.assembla.com/pkaudio/browser/pyrtmidi -- something
realtime, but I couldn't get the actual Subversion repository address
- http://alumni.media.mit.edu/~harrison/code.html -- seems promising,
but I haven't got it running. You can't (system-wide) install
portmidi, and pyportmidi seems to want portmidi installed.

Is there any other package that allows sending MIDI events in real
time? Did anyone recently got any of the above packages to work?

Maciej
Jun 27 '08 #1
6 2733
On May 6, 6:01 pm, Maciej Bliziński <maciej.blizin...@gmail.com>
wrote:
Is there any other package that allows sending MIDI events in real
time? Did anyone recently got any of the above packages to work?
There's MidiKinesis (http://www.sci.ccny.cuny.edu/~brinkman/software/
midikinesis/) which allows for midi events to be bound to X-Windows
events. It looks like it achieves this using ctypes to wrap around
the ALSA libs, which may be another approach to consider. The
MidiKineses codebase would be a good place to start if you wanted to
give that a try.

I'm sorry I can't be of much more help but please keep us posted on
what you find!

- alex23
Jun 27 '08 #2
Maciej Blizin'ski skrev:
For the last couple of days, I've been looking for a Python midi
library. I'm generally interested in sending MIDI events via ALSA. It
seems like everything out there is pretty old; packages are from 2003
or 2005.
existing or very old software packages
- http://www.mxm.dk/products/public/pythonmidi/ -- no realtime support

This is old in the sense that it has been a while since I wrote it. But
it is virtually bug free, so nothing much is happening.

The midi standard does not change so there is no real reason to
change/upgrade it.

It is currently being used by the very popular "frets on fire"

http://fretsonfire.sourceforge.net/d...tation/source/
It does not have real time support even though I did write it with that
support in mind. I just never got around to write it as I did not need
it myself.
I also developed it on Windows and I found it to be a bore to get real
time midi working.

It would probably be easier now that I am on Linux.
Well I just thought I would mention that it is not dead. Merely middle aged.
--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Jun 27 '08 #3
Maciej BliziƄski wrote:
For the last couple of days, I've been looking for a Python midi
library. I'm generally interested in sending MIDI events via ALSA. It
seems like everything out there is pretty old; packages are from 2003
or 2005. Some packages don't seem to be really used, for instance
portmidi doesn't even support installing it system-wide; you can
compile it and... no make install for you.
I haven't used the PortMidi bindings that are in the Cheeseshop at
http://pypi.python.org/pypi/pyPortMidi/0.0.3

but I've used PortMidi extensively from C++ code and have had excellent
results with it.
Jun 27 '08 #4
In article <ma**************************************@python.o rg>,
Max M <ma**@mxm.dkwrote:
>
Well I just thought I would mention that it is not dead. Merely middle aged.
"'E's just resting!"
--
Aahz (aa**@pythoncraft.com) <* http://www.pythoncraft.com/

Help a hearing-impaired person: http://rule6.info/hearing.html
Jun 27 '08 #5
On May 6, 7:43 pm, Max M <m...@mxm.dkwrote:
This is old in the sense that it has been a while since I wrote it. But
it is virtually bug free, so nothing much is happening.

The midi standard does not change so there is no real reason to
change/upgrade it.
Maybe you should add a method somehwere that does nothing much,
increment the version number and give it a 2008 date? ;)
Jun 27 '08 #6
On 6 Mai, 11:43, Max M <m...@mxm.dkwrote:
>
[Python Midi]
It does not have real time support even though I did write it with that
support in mind. I just never got around to write it as I did not need
it myself.

I also developed it on Windows and I found it to be a bore to get real
time midi working.

It would probably be easier now that I am on Linux.
I was previously quite interested in getting MIDI output working for a
game I wrote, and I suppose that the Python Midi package would have
been of interest (with pygame probably handling the interface to the
hardware), but given the bizarre kernel module gymnastics required to
support real-time output (and I still don't know if my sound hardware
actually supports MIDI directly or not), I decided in the end to use
timidity to generate normal audio files and to send those through the
sound system instead. Of course, that more or less eliminates any real-
time aspects.

Paul
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ton K. | last post by:
Folks, I'm planning to build MIDI sysex tools in Python on Windows 98SE. I need a simple read/write to MIDI interface, preferably with a read callback integrated with the Tkinter event loop. I...
0
by: Max M | last post by:
If anybody is interrested in Midi, but are not on the Python Midi list, I will just notify that I have released the first version of a high level midi package for Python. It is fully functional....
23
by: Spiffy | last post by:
hello, i'm fairly new to python programming and programming in general, but i have written a python prog that creates a MIDI file (.mid) and I want to be able to play it from another prog which is...
52
by: Dick Moores | last post by:
I need to figure out how to compute pi to base 12, to as many digits as possible. I found this reference, <http://mathworld.wolfram.com/Base.html>, but I really don't understand it well enough....
5
by: Francois De Serres | last post by:
Hiho, could somebody please enlighten me about the mechanics of C callbacks to Python? My domain is more specifically callbacks from the win32 API, but I'm not sure that's where the problem...
1
by: tim | last post by:
Someone using Python Midi Package from http://www.mxm.dk/products/public/ lately? I want to do the following : write some note events in a midi file then after doing that, put some controllers...
4
by: sreekant | last post by:
Hi folks I hope someone here might be able to help. I scavenged some info and even code from the net and am trying to write a module that reads a text file and spits out a midi file. So far I...
25
by: Eric | last post by:
Hello, after reading some of the book Programming Python it seems that python is something I would like to delve deeper into. The only thing is, I have no idea what I should try and write. So I was...
7
by: Protocol | last post by:
Hello all Is Python suitable for building a multi-track midi sequencer (with a gui), that would run on windows / mac ? I fail to find sufficient information on this, being a newbie and all....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.