<div dir="ltr"><div><div><div><div>I seem to be getting closer<br></div>[255 81 3 $1 $2 $3( seems to do the trick, (the 3 was necessary to designate the 3 following bytes...)<br></div>still not sure why [255 81 3 7 161 32( does not result in 120bpm but "120qpm" and 80bpm...<br></div>gr,<br></div>Tim<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-10 19:18 GMT+01:00 tim vets <span dir="ltr"><<a href="mailto:timvets@gmail.com" target="_blank">timvets@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hello,<br></div>I've been looking into writing out midi using mrpeach's [midifile].<br></div>Now I'm trying to write a tempo change message into the midi file.<br></div>So far I figured out that the message format should be "FF 51 tt tt tt".<br></div>(e.g. as described here <a href="http://www.deluge.co/?q=midi-tempo-bpm" target="_blank">http://www.deluge.co/?q=midi-<wbr>tempo-bpm</a> )<br></div>I'm not sure though, how to translate that into a message that [midifile] can accept to correctly write the tempo change into the file.<br></div>I tried a few variations, like [255 81 500000( (for 120bpm)<br></div>or by first changing the 500000 into three hexadecimal bytes, and then turn those into 3 floats<br>[255 81 7 51 0(<br></div>but all I get is extremely low tempi when I import that midifile into a DAW (I seem to get the most informative results with Rosegarden)<br></div>Any ideas?<br></div>thanks!<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Tim<br><br></font></span></div>
</blockquote></div><br></div>