<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi guys,<br>
<br></blockquote><div><br></div><div>Hey Go!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I've added MIDI sync to fluxus. I've defined a new function, (midi-position), which returns a vector #(bar beat clock)<br>
bar is, well, the bar number (0 to infinite)<br></blockquote><div><br></div><div>Sounds lovely!</div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

If you're OK, Ted will add this to git. Suggestions of improvement are welcome.<br>
<br></blockquote><div><br></div><div>One thing I'd be interested in is using this to sync Fluxa's "(seq )" to other musicians. For that kind of thing we might also need something like a timestamp of when the actual message was received and probably a "latency offset" that we could set on a per-system basis in .fluxus.scm</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I've also found what I think is a bug in RtMidi :<br>
<br>
        else if ( status == 0xF8 ) {<br>
          size = 1;<br>
          if ( data->ignoreFlags & 0x02 ) {<br>
            // A MIDI timing tick message and we're ignoring it.<br>
            size = 0;<br>
            iByte += 3;<br>
          }<br>
<br>
I think it should be "iByte += 1;"...<br>
<br>
I've contacted Gary P. Scavone but got no reply from him... Should this fix also be commited to git?<br><br></blockquote><div><br></div><div>Not sure how long ago you send this. In my experience Gary does reply to such issues but sometimes it takes a bit.</div>
<div><br></div><div>I do find this a bit of a odd error to make by mistake. Couldn't it be that rtMidi was assuming all messages are three bytes? I'm asking because I know that ChucK also uses rtMidi and does that. Sending 1 byte messages is possible there (not receiving) but you have to use two padding bytes. That might, of course, be a ChucK issue, not a rtMidi one. I commented on that several times and proposed some possible solutions but didn't get a clear reply.</div>
<div><br></div><div>At any rate; good job!</div><div><br></div><div>Yours,</div><div>Kas.</div></div>