<div dir="ltr"><div><div><div>Hi Julien,<br><br></div>as far as I know the best thing to do should be to set the period buffer to 3, at this point you could easily decrease the buffer size both on Jack and ChucK (you can find more info on Linux audio website or just googling). in my setup at the moment I have the buffer size on Jack = 256 and on ChucK = 512 and it works fine. I&#39;ve got an average Asus machine, i5 (5th or 6th generation) with 8gb of RAM. but unfortunately MIDI on ALSA driver is not as accurate as CoreAudio is. let&#39;s say it&#39;s well known to introduce jitter. so I suspect the problem lies there.<br><br></div>cheers,<br></div>Mario <br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-19 16:03 GMT+00:00 Julien Saint-Martin <span dir="ltr">&lt;<a href="mailto:julien.saintmartin@googlemail.com" target="_blank">julien.saintmartin@googlemail.com</a>&gt;</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>Hi Mario,<br><br></div>In qjackctl my config is (my parameters names are in French so maybe my translation is not the exactly same) :<br></div>Samples/Period: 4096<br></div>Sample rate: 44100<br></div>Period/Buffer: 2<br><br></div>Midi Driver: None<br><br></div><div>I call ChucK (Jack version) with parameter --bufsize8192<br></div><div><br></div>What is the specific setup your are talking about ?<br><br></div>Thanks!<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Julien<br><div><div><br><br></div></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-03-19 15:16 GMT+01:00 Mario Buoninfante <span dir="ltr">&lt;<a href="mailto:mario.buoninfante@gmail.com" target="_blank">mario.buoninfante@gmail.com</a>&gt;</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>Hi Julien,<br><br></div>I work on Linux as well, using Jack as audio core. there&#39;s a specific setup I&#39;ve got that uses ChucK as slave (an external hardware sends MIDI clock to it and Pure Data). I have to say I&#39;ve never experienced  anything like this, but honestly this specific ChucK script I&#39;m using is in sync with everything, but doesn&#39;t need to be super accurate. So I&#39;ve never measured if performance in this situation. could you provide some info more about your settings? how are you setting latency? buffer size on Jack, ChucK?<br><br></div>cheers,<br></div>Mario<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-6327710131719885674h5">2018-03-19 11:11 GMT+00:00 Julien Saint-Martin <span dir="ltr">&lt;<a href="mailto:julien.saintmartin@googlemail.com" target="_blank">julien.saintmartin@googlemail<wbr>.com</a>&gt;</span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-6327710131719885674h5"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi there,<br><br></div>I am trying to synchronize my ChucK Loops and Synth with a friend.<br></div>We use midi messages and I am Slave.<br></div><div>I use Linux with Jack server.<br></div><div><br></div>To ensure ChucK processing without glitches I play with latency (usually 186 ms).<br></div>But I noticed that perdiodic midi messages are randomly delayed (kind of jitter of about 80ms) when received in ChucK.<br></div>I also noticed that the jitter decrease when I reduce Latency.<br><br></div>Latency is not a problem for me, and it is needed for Chuck to compute without glitches (XRun in Jack server).<br><br></div>Do you know where the Jitter comes from (Linux, Jack, ChucK) ?<br></div>Is  there a solution to reduce it keeping some latency ?<br><br></div>Happy Chucking,<br><br></div>Julien<br></div>
<br></div></div>______________________________<wbr>_________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton<wbr>.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu<wbr>/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton<wbr>.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu<wbr>/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.<wbr>princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.<wbr>edu/mailman/listinfo/chuck-<wbr>users</a><br>
<br></blockquote></div><br></div>