<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Consolas",serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=FR-CA link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>Thanks for your nice support here..<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>To answer some of your questions:<o:p></o:p></span></p><p class=MsoNormal><b><i><span lang=EN-CA style='font-size:12.0pt'>>> </span></i></b><b><i><span lang=EN-CA>Do the hesitations happen in the same way each time when you start playback?  <o:p></o:p></span></i></b></p><p class=MsoNormal><span lang=EN-CA>Yes. Same way, same places. The lags are recorded on the MIDI track.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><b><i><span lang=EN-CA>>> I don't know what number of samples that translates to because the sample rate is not specified.<o:p></o:p></span></i></b></p><p class=MsoNormal><b><i><span lang=EN-CA>>> At 44.1kHz SR, that's 2800 samples which seems like plenty for playback.<o:p></o:p></span></i></b></p><p class=MsoNormal><span lang=EN-CA>44.1Khz<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA>>> I'd watch the Performance tab to see that your disk and/or CPU is not maxxing out.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA>I have a Intel Core Ultra 7 265K running with 32gb of RAM<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA>So there are no maxing out here..<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>The thing remains:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>Why the Yamaha module behaves correctly on reading the stream<br>while Sonar recording sometimes fails ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>Hmmm..<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=FR style='mso-ligatures:none;mso-fareast-language:FR-CA'>De :</span></b><span lang=FR style='mso-ligatures:none;mso-fareast-language:FR-CA'> John Speth <johnspeth@yahoo.com> <br><b>Envoyé :</b> 29 octobre 2025 15:07<br><b>À :</b> jpdesroc@oricom.ca<br><b>Objet :</b> [Polluriel détecté] Re: [sdiy] Reliable MIDI recording app for PC.. Or my Sonar X3 Pro DAW is not set correctly..<br><b>Importance :</b> Faible<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Yep, that's a weird one. I use the new free Sonar so I'm familiar with your sequencer (pretty much the same, I think).<span style='font-size:12.0pt;mso-ligatures:none;mso-fareast-language:FR-CA'><o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>It looks like you're filtering MIDI well. It appears like Sonar is somehow loading up your MIDI output stream with useless output data or perhaps the MIDI data is triggering some sort of errant behavior (everybody who uses Cakewalk/Sonar a lot should be accustomed to the occasional failure due to bugs). I can't imagine what could be happening in that regard. If it was me, I'd be eager to see the MIDI data.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You could change your MIDI block size. Large blocks lead to smoother playback but higher latency. Small blocks lead to stuttering playback but lower latency. For debug purposes, use a larger block size. It looks like your block size is configured for 64 msec. I don't know what number of samples that translates to because the sample rate is not specified. At 44.1kHz SR, that's 2800 samples which seems like plenty for playback. I would turn off "Always Echo Current MIDI Track" during playback for testing to eliminate one variable.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Do the hesitations happen in the same way each time when you start playback?  If so, take a look at the event list view of your output tracks. You might see built-in gaps. I'd take a look at the event list regardless of when the hesitations happen. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>If that doesn't reveal anything, try this proposal: Send output to a MIDI monitor, and take a look at the time stamps. You will need to compare the timing you desire (exactly what you see in your event list) with the time stamps your MIDI monitor tells you. I can't advise on which MIDI monitor you should use as I rarely use them. I use one I wrote myself. They are simple to create if you have the right skills and tools.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Also, take a look at loopMIDI by Tobias Erichsen. LoopMIDI is a virtual MIDI port to which you can send MIDI output and then also supply the loopMIDI virtual input port to your MIDI monitor.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I wonder: Does anybody know if there is a good MIDI Spy program that can monitor a MIDI stream without breaking/inserting MIDI connection during normal use?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>If everything looks good at this stage, I'd watch the Performance tab to see that your disk and/or CPU is not maxxing out.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Beyond that, I dunno.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Good luck.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>JJS<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>On 10/29/2025 9:37 AM, Jean-Pierre Desrochers via Synth-diy wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>Hi lists,</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>A while ago I built a MIDI piano roll player<br>that can read old piano rolls and play them through its dedicated MIDI out.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>The unit has 2 parallel MIDI outputs. </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>The first MIDI output is wired to a small Yamaha P50m MIDI piano module with speakers.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>The second MIDI output is sending the same signal<br>to my Sonar X3 Pro DAW to record all the played MIDI notes<br>so I can save the song in a .MID file. Fine.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>Here is my problem:</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>When I listen and look at a fast playing piano roll<br>I can see all the notes on the paper roll are correctly playing<br>on the Yamaha module with no lags.<br>That means that my player CPU is doing its job correctly<br>and the MIDI output is reliable.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>But after recording a roll in my DAW and playing it back<br>using a piano plugin and noticed intermittent lags<br>recorded in the MIDI track.<br>I use a Focusrite Scarlett 2i4 USB audio device with MIDI.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>It’s connected in a USB3 connector on my PC.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>And the settings in my Sonar X3 Pro are set to ASIO USB.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt;mso-ligatures:none'><img width=733 height=644 style='width:7.6354in;height:6.7083in' id="_x0000_i1027" src="cid:image001.png@01DC48E7.A8C880F0"></span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt;mso-ligatures:none'><img width=733 height=643 style='width:7.6354in;height:6.6979in' id="Image_x0020_2" src="cid:image002.png@01DC48E7.A8C880F0"></span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>I thought this could be caused by some kind of timing precision<br>or ‘Snap’ option selected that should not be..</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>The set timing was at ¼ in my last MIDI recordings</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>And maybe should be much higher (like 1/32 Triplet) ?</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt;mso-ligatures:none'><img width=452 height=589 style='width:4.7083in;height:6.1354in' id="Image_x0020_1" src="cid:image003.png@01DC48E7.A8C880F0"></span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>I don’t know what to do with this issue..</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-CA style='font-size:12.0pt'>I was thinking of using a separate app that would be easy and reliable<br>outside my Sonar.. But I think it’s not the way I should take.<br><br><br></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Aptos",sans-serif;mso-ligatures:none;mso-fareast-language:FR-CA'><br><br><o:p></o:p></span></p><pre>________________________________________________________<o:p></o:p></pre><pre>This is the Synth-diy mailing list<o:p></o:p></pre><pre>Submit email to: <a href="mailto:Synth-diy@synth-diy.org">Synth-diy@synth-diy.org</a><o:p></o:p></pre><pre>View archive at: <a href="https://synth-diy.org/pipermail/synth-diy/">https://synth-diy.org/pipermail/synth-diy/</a><o:p></o:p></pre><pre>Check your settings at: <a href="https://synth-diy.org/mailman/listinfo/synth-diy">https://synth-diy.org/mailman/listinfo/synth-diy</a><o:p></o:p></pre><pre>Selling or trading? Use <a href="mailto:marketplace@synth-diy.org">marketplace@synth-diy.org</a><o:p></o:p></pre></blockquote><p><o:p> </o:p></p></div></body></html>