Midi manipulation

M

Massi

Hi everyone, I'm searching for "something" which allows me to write
scripts which handle midi files. I'm totally a newbie in audio
manipulation, therefore any suggestion or link related to this field
is welcome. Thanks in advance.
 
T

Tim Roberts

Massi said:
Hi everyone, I'm searching for "something" which allows me to write
scripts which handle midi files. I'm totally a newbie in audio
manipulation, therefore any suggestion or link related to this field
is welcome. Thanks in advance.

Google is much faster than this newsgroup. Search for "python midi
library" and the first page gives you a number of good hits.

However, there's a lot to manipulating MIDI. What kinds of things are you
hoping to accomplish? MIDI, for example, is not a particularly good way to
store music for composition.
 
M

Massi

Google is much faster than this newsgroup. Search for "python midi
library" and the first page gives you a number of good hits.

However, there's a lot to manipulating MIDI. What kinds of things are you
hoping to accomplish? MIDI, for example, is not a particularly good way to
store music for composition.

I'm writing a script for didactic musical purpose. As first step I
need something as simple as possible, for example a library of
functions which are able to play a certain note, with a given
instrument and a given length. I thought midi was good for this aim,
am I wrong?
 
K

Ken Starks

Massi said:
I'm writing a script for didactic musical purpose. As first step I
need something as simple as possible, for example a library of
functions which are able to play a certain note, with a given
instrument and a given length. I thought midi was good for this aim,
am I wrong?

Oh dear, I'm going to point you away from Python ... but I am not
intending to start a flame war...

The Apache Cocoon project (NOT the latest version 2.2 though) might
appeal to you:

http://cocoon.zones.apache.org/demos/release/samples/blocks/midi/

quote:
The MIDI block currently gives you an XMidiGenerator to generate an XML
representation of any MIDI file (called XMidi by its author Peter Loeb).
There is also the XMidiSerializer to render XMidi back as a MIDI file. I
have used XSLT to provide some basic musical manipulations such as
transposition, and inversion. Retrograde is harder, but I shall see what
I can come up with. Hopefully I shall also add some transformers to
generate SVG visualisations of the XMidi, starting with normal western
musical notation.
MIDI Documentation - Documentation available on the Cocoon Wiki.
 
K

Ken Starks

Ken said:
Oh dear, I'm going to point you away from Python ... but I am not
intending to start a flame war...

The Apache Cocoon project (NOT the latest version 2.2 though) might
appeal to you:

http://cocoon.zones.apache.org/demos/release/samples/blocks/midi/

quote:
The MIDI block currently gives you an XMidiGenerator to generate an XML
representation of any MIDI file (called XMidi by its author Peter Loeb).
There is also the XMidiSerializer to render XMidi back as a MIDI file. I
have used XSLT to provide some basic musical manipulations such as
transposition, and inversion. Retrograde is harder, but I shall see what
I can come up with. Hopefully I shall also add some transformers to
generate SVG visualisations of the XMidi, starting with normal western
musical notation.
MIDI Documentation - Documentation available on the Cocoon Wiki.
The link to the wiki was dead when I tried it, so i expect it is dead.

Try instead:
http://wiki.apache.org/cocoon/MIDI
 
T

Tim Roberts

Massi said:
I'm writing a script for didactic musical purpose. As first step I
need something as simple as possible, for example a library of
functions which are able to play a certain note, with a given
instrument and a given length. I thought midi was good for this aim,
am I wrong?

No, you are correct. I was misled by your talk about "manipulating MIDI
files". What you're talking about is more working with live MIDI. Alia's
links should be very useful for you. Especially, I think, this one:

http://turcanator.tangentcode.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top