473,624 Members | 2,612 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
6 2182
On Sun, May 4, 2008 at 7:11 PM, Gilly <gi*********@gm ail.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
On May 4, 9:14 pm, David <wizza...@gmail .comwrote:
On Sun, May 4, 2008 at 7:11 PM, Gilly <gilly.de...@gm ail.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
Gilly schrieb:
On May 4, 9:14 pm, David <wizza...@gmail .comwrote:
>On Sun, May 4, 2008 at 7:11 PM, Gilly <gilly.de...@gm ail.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
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
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*********@gm ail.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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2701
by: Anton Vredegoor | last post by:
Recently there has been a lot of progress concerning the integration of midi into python. A midipy.cpp for Python20 is found and various compiling efforts having been undertaken to compile it for Python23. See the other threads about midipy.cpp for more info. However, seeing that the resulting midipy.pyd is only 48 kilobyte long and seeing that midipy.cpp exports only 14 functions, most of which are inside winmm.dll (for W98 and W2000 at...
11
2734
by: Kuba Araszkiewicz | last post by:
Hello! I have to write a program, which would convert midi files to notes, notes to midi files and which would make one MIDI file from two different. I'm totally lame in C (and any other programming language), but my whole college education depends on this project. Maybe someone has simillar program or could give me some hints how to do it. best regards - borat
4
9311
by: _BNC | last post by:
..NET/C# doesn't seem to have much support for MIDI interface and music playback in general. Are there any good references on it?
0
1738
by: tom | last post by:
Hallo, I need help on MIDI file, and precisely about retrieving few note values (mainly the "Velocity" value, corrisponding to the intensity of a played note) while the MIDI is playing.
1
2097
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 at the beginning of the midifile (because I want to be able to make those dependant on what notes were just written)
2
2621
by: tony.held | last post by:
Hi all, I would like to develop software that displays guitar sheet music and play it via midi. I plan on using visual studio .net 2005 (probably VB but maybe C#). I was thinking about having the stanza illuminate notes as they are played and allow the user to adjust the playback speed for learning purposes. I think I can put together the midi part, but I'm having trouble deciding the best way to implement the interface. I was hoping...
0
1679
by: dugfresh36 | last post by:
I am trying to control the playback of a tutorial I am building in Flash 8 Basic. I want the user to be able to go through the tutorial in two ways: 1) by manually clicking forward and back buttons; and, 2) by clicking a "PLAY" button and having the tutorial drive itself. It's this second method that is killing me. Here's what I'm trying to do: Each step, or page, of the tutorial is set up on a different frame. I want the automatic...
7
2417
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. Furthermore, i found references on Python not being really able of multi-threading, that further adds to the confusion. Please assist.
6
4927
by: Massi | last post by:
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.
0
8246
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8631
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8490
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7174
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4184
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.