<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed"
 style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">(...I
sent this one a second time, waited for 60 minutes, it didn't appear,
sorry if it's a double...)<br>
<br>
Someone using Python Midi Package from <a class="moz-txt-link-freetext"
 href="http://www.mxm.dk/products/public/">http://www.mxm.dk/products/public/</a>
lately?
<br>
<br>
I want to do the following :
<br>
write some note events in a midi file
<br>
then after doing that, put some controllers at the beginning of the
midifile
<br>
(because I want to be able to make those dependant on what notes were
just written)
<br>
<br>
def midctrls():
<br>
   global roffset, melchan, roffset, gmt, timedisplay, out_file, midi,
usednotes, n
<br>
   midi.reset_time()      #seems to do nothing
<br>
   for cha in range(16):
<br>
       if cha==1:
<br>
           midi.abs_time=0   #seems to do nothing
<br>
           midi._relative_time = 0   #seems to do nothing, but I can
imagine why
<br>
           midi._absolute_time = 0   #seems to do nothing
<br>
           midi.update_time(new_time=0, relative=0)  #although I give
the variable relative=0 it seems to be relative ?
<br>
           midi.continuous_controller(cha, 0, 122)
<br>
(snip)
<br>
<br>
With this code I want a controller number 0 with value 122 to be
written at the beginning of my midifile.
<br>
It is written at the end, how I move the writing position to the
beginning?
<br>
<br>
thanks for any help!
<br>
<br>
<br>
</div>
</body>
</html>