<html><head></head><body>I guess problem in Cubase. In Ardour (in Debian GNU/Linux) midi data records fine at least. I use Chuck version from Github.<br><br><div class="gmail_quote">9 декабря 2016 г. 3:09:01 GMT+03:00, chuck-users-request@lists.cs.princeton.edu пишет:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Send chuck-users mailing list submissions to<br /> chuck-users@lists.cs.princeton.edu<br /><br />To subscribe or unsubscribe via the World Wide Web, visit<br /> <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br />or, via email, send a message with subject or body 'help' to<br /> chuck-users-request@lists.cs.princeton.edu<br /><br />You can reach the person managing the list at<br /> chuck-users-owner@lists.cs.princeton.edu<br /><br />When replying, please edit your Subject line so it is more specific<br />than "Re: Contents of chuck-users digest..."<br /></pre><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail">Today's Topics:<br /><br />   1. Midi time problem (Gonzalo)<br />   2. Re: Midi time problem (Michael Heuer)<br />   3. Re: Midi time problem (Gonzalo)<br />   4. Re: Midi time problem (Gonzalo)<br />   5. Re: !
 Midi
time problem (Eugene Martynec)<br /></pre><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><table style="border: 0"><tbody><tr><th style="text-align: left; vertical-align: top;">От:</th><td>Gonzalo <gonzalo dense13.com="dense13.com"></gonzalo></td></tr><tr><th style="text-align: left; vertical-align: top;">Кому:</th><td>chuck-users <chuck-users lists.cs.princeton.edu="lists.cs.princeton.edu"></chuck-users></td></tr><tr><th style="text-align: left; vertical-align: top;">Отправлено:</th><td>Fri Dec 09 00:52:51 GMT+03:00 2016</td></tr><tr><th style="text-align: left; vertical-align: top;">Тема:</th><td>[chuck-users] Midi time problem</td></tr></tbody></table><pre class="k9mail">Hi,<br /><br />I'm using Bruce Murphy's MIDIsender class <br />(<a href="http://www.rattus.net/~packrat/audio/ChucK/files/midisender.ck">http://www.rattus.net/~packrat/audio/ChucK/files/midisender.ck</a>) to <br />generate MIDI from my Chuck code. I'm
sending this MIDI to various <br />virtual MIDI ports (using OSX's IAC Driver). Then I have various <br />software instruments in Cubase, each one listening to one of the virtual <br />ports. Works well when I run my Chuck program, but if in Cubase I arm <br />the tracks and try to record the incoming MIDI, all the events get <br />'collapsed' at the same time, specifically the moment I click record. <br />They do get recorded, but all starting at the same time.<br /><br />This only happens if I want to record them, if I'm only playing, timing <br />is fine.<br /><br />Using MidiMonitor I see that the time for all the MIDI events generated <br />from Chuck is 0, that seems to be the issue. Any thoughts on how I can <br />change that?<br /><br />Thanks!<br />Gonzalo<br /><br /><br />PS: in case anybody is curious, my project's site is here: <br /><a href="http://www.whole-play.com">http://www.whole-play.com</a><br /><br /></pre><p style="margin-top: 2.5em; margin-bottom: 1em;
border-bottom: 1px solid #000"></p><table style="border: 0"><tbody><tr><th style="text-align: left; vertical-align: top;">От:</th><td>Michael Heuer <heuermh gmail.com="gmail.com"></heuermh></td></tr><tr><th style="text-align: left; vertical-align: top;">Кому:</th><td>ChucK Users Mailing List <chuck-users lists.cs.princeton.edu="lists.cs.princeton.edu"></chuck-users></td></tr><tr><th style="text-align: left; vertical-align: top;">Отправлено:</th><td>Fri Dec 09 01:28:09 GMT+03:00 2016</td></tr><tr><th style="text-align: left; vertical-align: top;">Тема:</th><td>Re: [chuck-users] Midi time problem</td></tr></tbody></table><div dir="ltr">On Thu, Dec 8, 2016 at 3:52 PM, Gonzalo <span dir="ltr">&lt;<a href="mailto:gonzalo@dense13.com" target="_blank">gonzalo@dense13.com</a>&gt;</span> wrote:<br /><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Hi,<br />
<br />
I&#39;m using Bruce Murphy&#39;s MIDIsender class (<a href="http://www.rattus.net/%7Epackrat/audio/ChucK/files/midisender.ck" rel="noreferrer" target="_blank">http://www.rattus.net/~packra<wbr />t/audio/ChucK/files/midisender<wbr />.ck</a>) to generate MIDI from my Chuck code. I&#39;m sending this MIDI to various virtual MIDI ports (using OSX&#39;s IAC Driver). Then I have various software instruments in Cubase, each one listening to one of the virtual ports. Works well when I run my Chuck program, but if in Cubase I arm the tracks and try to record the incoming MIDI, all the events get &#39;collapsed&#39; at the same time, specifically the moment I click record. They do get recorded, but all starting at the same time.<br />
<br />
This only happens if I want to record them, if I&#39;m only playing, timing is fine.<br />
<br />
Using MidiMonitor I see that the time for all the MIDI events generated from Chuck is 0, that seems to be the issue. Any thoughts on how I can change that?<br /></blockquote><div><br /></div><div>MidiMsg is defined as a four byte record<br /><br /><a href="https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.h#L65">https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.h#L65<br /></a><br /></div><div>but ChucK only sets three bytes on send<br /><br /><a href="https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L120">https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L120<br /></a><br /></div><div><a href="http://midisender.ck">midisender.ck</a> does the same.  Is the unset byte supposed to be the time?  Suppose I should go read the spec.<br /></div><div><br />It appears time is written and read from files separately<br /><br /><a
href="https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L823">https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L823<br /></a><a href="https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L837">https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L837<br /></a></div><div><br /></div><div>Not sure that helps,<br /></div><div><br /></div><div>   michael<br /></div></div></div></div>
<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><table style="border: 0"><tbody><tr><th style="text-align: left; vertical-align: top;">От:</th><td>Gonzalo <gonzalo dense13.com="dense13.com"></gonzalo></td></tr><tr><th style="text-align: left; vertical-align: top;">Кому:</th><td>chuck-users@lists.cs.princeton.edu</td></tr><tr><th style="text-align: left; vertical-align: top;">Отправлено:</th><td>Fri Dec 09 02:11:54 GMT+03:00 2016</td></tr><tr><th style="text-align: left; vertical-align: top;">Тема:</th><td>Re: [chuck-users] Midi time problem</td></tr></tbody></table><pre class="k9mail">Thanks Michael,<br /><br />This might be a bit over my head, but I'll look into it. Never checked <br />Chuck's source code before, at the very least it'll be fun. :)<br /><br />Gonzalo<br /><br /><br />On 08/12/16 23:28, Michael Heuer wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729!
 fcf;
padding-left: 1ex;"> On Thu, Dec 8, 2016 at 3:52 PM, Gonzalo &lt;gonzalo@dense13.com<br /> &lt;mailto:gonzalo@dense13.com&gt;&gt; wrote:<br /><br />     Hi,<br /><br />     I'm using Bruce Murphy's MIDIsender class<br />     (<a href="http://www.rattus.net/~packrat/audio/ChucK/files/midisender.ck">http://www.rattus.net/~packrat/audio/ChucK/files/midisender.ck</a><br />     &lt;<a href="http://www.rattus.net/%7Epackrat/audio/ChucK/files/midisender.ck">http://www.rattus.net/%7Epackrat/audio/ChucK/files/midisender.ck</a>&gt;)<br />     to generate MIDI from my Chuck code. I'm sending this MIDI to<br />     various virtual MIDI ports (using OSX's IAC Driver). Then I have<br />     various software instruments in Cubase, each one listening to one of<br />     the virtual ports. Works well when I run my Chuck program, but if in<br />     Cubase I arm the tracks and try to record the incoming MIDI, all the<br />     events get 'collapsed' at the same time, specifically the moment I!
 <br />  
  click record. They do get recorded, but all starting at the same time.<br /><br />     This only happens if I want to record them, if I'm only playing,<br />     timing is fine.<br /><br />     Using MidiMonitor I see that the time for all the MIDI events<br />     generated from Chuck is 0, that seems to be the issue. Any thoughts<br />     on how I can change that?<br /><br /><br /> MidiMsg is defined as a four byte record<br /><br /> <a href="https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.h#L65">https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.h#L65</a><br /><br /> but ChucK only sets three bytes on send<br /><br /> <a href="https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L120">https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L120</a><br /><br /> <a href="http://midisender.ck">midisender.ck</a> &lt;<a href="http://midisender.ck">http://midisender.ck</a>&gt; does the same.  Is the unset byte<br /> supposed to be !
 the
time?  Suppose I should go read the spec.<br /><br /> It appears time is written and read from files separately<br /><br /> <a href="https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L823">https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L823</a><br /> <a href="https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L837">https://github.com/ccrma/chuck/blob/master/src/midiio_rtmidi.cpp#L837</a><br /><br /> Not sure that helps,<br /><br />    michael<br /><br /><br /><hr /><br /> chuck-users mailing list<br /> chuck-users@lists.cs.princeton.edu<br /> <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a></blockquote><br /></pre></blockquote></div><br>
-- <br>
Простите за краткость, создано в K-9 Mail.</body></html>