By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,225 Members | 2,223 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,225 IT Pros & Developers. It's quick & easy.

Real Time Midi File Playback - Reading and Writing midi at the sametime

P: n/a
Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
want to be able to begin playing the midi file before I finish writing
it, and continue writing as it plays.

I would really appreciate any help possible on this matter.

Thanks!!
Jun 27 '08 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On Sun, May 4, 2008 at 7:11 PM, Gilly <gi*********@gmail.comwrote:
Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
want to be able to begin playing the midi file before I finish writing
it, and continue writing as it plays.
Have you tried the MIDI libraries listed on this page?

http://wiki.python.org/moin/PythonInMusic

David.
Jun 27 '08 #2

P: n/a
On May 4, 9:14 pm, David <wizza...@gmail.comwrote:
On Sun, May 4, 2008 at 7:11 PM, Gilly <gilly.de...@gmail.comwrote:
Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
want to be able to begin playing the midi file before I finish writing
it, and continue writing as it plays.

Have you tried the MIDI libraries listed on this page?

http://wiki.python.org/moin/PythonInMusic

David.
Yes. I haven't found anything that would help me out...
Jun 27 '08 #3

P: n/a
Gilly schrieb:
On May 4, 9:14 pm, David <wizza...@gmail.comwrote:
>On Sun, May 4, 2008 at 7:11 PM, Gilly <gilly.de...@gmail.comwrote:
>>Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
want to be able to begin playing the midi file before I finish writing
it, and continue writing as it plays.
Have you tried the MIDI libraries listed on this page?

http://wiki.python.org/moin/PythonInMusic

David.

Yes. I haven't found anything that would help me out...
You didn't provide enough information. who is consuming the midi-files
for example.

Diez
Jun 27 '08 #4

P: n/a
Gilly skrev:
Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
want to be able to begin playing the midi file before I finish writing
it, and continue writing as it plays.

Perhaps csound can help with this. It has a lot of midi, realtime and
python stuff.
--

hilsen/regards Max M, Denmark

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

Jun 27 '08 #5

P: n/a
Threading was recommended to me as a way to time things:
http://docs.python.org/lib/timer-objects.html
Dunno if that helps you.
-Chuckk

On Sun, May 4, 2008 at 8:11 PM, Gilly <gi*********@gmail.comwrote:
Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
want to be able to begin playing the midi file before I finish writing
it, and continue writing as it plays.

I would really appreciate any help possible on this matter.

Thanks!!
--
http://mail.python.org/mailman/listinfo/python-list


--
http://www.badmuthahubbard.com
Jun 27 '08 #6

P: n/a
Gilly wrote:
Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
want to be able to begin playing the midi file before I finish writing
it, and continue writing as it plays.

I would really appreciate any help possible on this matter.

Thanks!!
Not python, but have you come across XMidi (http://www.palserv.com/XMidi/) ?

It is used in the Apache Cocoon project, which has a
Midi 'block'.
This allows you to go from an XML file, or other
source, to XMidi (an XML version of MIDI), and then
to Quicktime, which you can listen to in your browser.

I'm afraid I don't know whether the source can be
streaming XML or whether you have to reach the end
of the XML before it starts to play.

If you can use streaming XML, you should be able to
generate it from python. Foursuite has a streaming
XML class, for example.

********************************************

A quick synopsis on the cocoon site says:

What is the MIDI block?

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.
Jun 27 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.