<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Sync (in ms) between 2 audio signals]]></title><description><![CDATA[<p>Hi PD community!</p>
<p>I have this &quot;simple&quot; idea (in quote yes) that it would be &quot;easy&quot; (in quote also) to compare 2 metronome audio signal (similar but not identical) in pd: 1 source ADC1 and another metronome on ADC2. I need to get the latency between the 2, or the syncness (if this term exist in english) between source 1 and source 2. So maybe they are 20ms apart (+ or - would be fantastic but would be happy with just + for now).</p>
<p>It's not for testing my soundcard round-trip latency (for that I am using the excellent patch from <a href="http://pdpatchrepo.info/patches/patch/92" rel="nofollow">Katja</a>). I want to jam with someone and we are using <a href="https://github.com/libpd/abl_link" rel="nofollow">ableton link pd external</a> - we can manage the offset by ear, but would like to have the exact MS.</p>
<p>Found this <a href="https://github.com/google/audio-sync-kit" rel="nofollow">python library</a>, but it works with a specific sound signal, I have in mind a more relax metronome signal (ie coming from a midi drum machine (snare, hihat x3)).</p>
<p>I have a feeling that a patch like that is already coded...<br />
Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 07:23:14 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13739.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Dec 2021 21:15:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sync (in ms) between 2 audio signals on Sun, 05 Dec 2021 21:31:14 GMT]]></title><description><![CDATA[<p>Hi PD community!</p>
<p>I have this &quot;simple&quot; idea (in quote yes) that it would be &quot;easy&quot; (in quote also) to compare 2 metronome audio signal (similar but not identical) in pd: 1 source ADC1 and another metronome on ADC2. I need to get the latency between the 2, or the syncness (if this term exist in english) between source 1 and source 2. So maybe they are 20ms apart (+ or - would be fantastic but would be happy with just + for now).</p>
<p>It's not for testing my soundcard round-trip latency (for that I am using the excellent patch from <a href="http://pdpatchrepo.info/patches/patch/92" rel="nofollow">Katja</a>). I want to jam with someone and we are using <a href="https://github.com/libpd/abl_link" rel="nofollow">ableton link pd external</a> - we can manage the offset by ear, but would like to have the exact MS.</p>
<p>Found this <a href="https://github.com/google/audio-sync-kit" rel="nofollow">python library</a>, but it works with a specific sound signal, I have in mind a more relax metronome signal (ie coming from a midi drum machine (snare, hihat x3)).</p>
<p>I have a feeling that a patch like that is already coded...<br />
Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals</guid><dc:creator><![CDATA[EEight]]></dc:creator><pubDate>Sun, 05 Dec 2021 21:31:14 GMT</pubDate></item><item><title><![CDATA[Reply to Sync (in ms) between 2 audio signals on Sun, 05 Dec 2021 22:02:36 GMT]]></title><description><![CDATA[<p>I don't have a great answer but it made me wonder if you've seen William Brent's new project OUTPUT? <a href="https://github.com/wbrent/OUTPUT" rel="nofollow">https://github.com/wbrent/OUTPUT</a></p>
<p>I believe he's using JackTrip to jam online.<br />
<a href="https://github.com/jacktrip/jacktrip/releases/tag/v1.4.0-rc.5" rel="nofollow">https://github.com/jacktrip/jacktrip/releases/tag/v1.4.0-rc.5</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/2</guid><dc:creator><![CDATA[ricky]]></dc:creator><pubDate>Sun, 05 Dec 2021 22:02:36 GMT</pubDate></item><item><title><![CDATA[Reply to Sync (in ms) between 2 audio signals on Mon, 06 Dec 2021 05:56:35 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/eeight">@EEight</a> There is more info from Miller about solutions (and possible problems) using Jacktrip ........ <a href="http://msp.ucsd.edu/tools/quacktrip/doc.htm" rel="nofollow">http://msp.ucsd.edu/tools/quacktrip/doc.htm</a> in Pd, although it is for jamming over the web/network.......<br />
Not sure where these came from, and they are for windows I think, but the patches and readme give some indications......<br />
<a href="/uploads/files/1638770018670-quack-and-netty-0.92-patches.zip">quack-and-netty-0.92-patches.zip</a><br />
<a href="/uploads/files/1638770184579-quacktrip-pc-vst3-0.92.zip">Quacktrip-pc-vst3-0.92.zip</a><br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/3</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Mon, 06 Dec 2021 05:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to Sync (in ms) between 2 audio signals on Tue, 07 Dec 2021 03:00:21 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/eeight">@EEight</a> Just curious--suppose the metronomes are at 120 BPM, i.e. 500 mS between clicks.  If a patch were to see a 5 mS offset, how would it know it's not really 505 mS, or 495 mS?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/4</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Tue, 07 Dec 2021 03:00:21 GMT</pubDate></item><item><title><![CDATA[Reply to Sync (in ms) between 2 audio signals on Tue, 07 Dec 2021 03:14:10 GMT]]></title><description><![CDATA[<p>Really basic implementation, just as a POC. I will test soon.<br />
<img src="/uploads/files/1638846212560-f3c910a9-1cd4-41c3-9ad2-66659ed93969.jpeg" alt="f3c910a9-1cd4-41c3-9ad2-66659ed93969.jpeg" class="img-responsive img-markdown" /></p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> In my mind, adc~ 1 is the master metronome (for example, an old drum machine that you cannot offset the clock). adc~ 2 is another metronome but this one you can offset the clock (ie: ableton link~, midi clock with offset).</p>
<p>So if adc~ 2 metronome click is before adc~ 1, I will get a huge offset in ms (ie 455), but if adc~ 2 click is just after adc~ 1 click (by ear), then I will know but how much I need to adjust the offset (ie: 20ms). That's the theory.</p>
<p>I need to have a look at jacktrip / quacktrip, but without fiber, the latency is simply too high ~50ms. I know that some people said that with 5G it would be possible, well... time will tell. For now, I am using ninjam (not realtime, offset).</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/5</guid><dc:creator><![CDATA[EEight]]></dc:creator><pubDate>Tue, 07 Dec 2021 03:14:10 GMT</pubDate></item><item><title><![CDATA[Reply to Sync (in ms) between 2 audio signals on Tue, 07 Dec 2021 18:02:31 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/eeight">@EEight</a> OK, this is probably insane overkill:  <a href="/uploads/files/1638899985450-metronome-timer.pd">metronome timer.pd</a><br />
<img src="/uploads/files/1638883172455-screenshot-2021-12-07-081702.png" alt="Screenshot 2021-12-07 081702.png" class="img-responsive img-markdown" /><br />
I only fed it one metronome @ 120 BPM into both channels, so that's why the high side time is 35 seconds.  But my untested theory is that you will get both the lag and lead times.</p>
<p>Update:  Made a few changes and tested it with 2 physical metronomes @ 130 BPM close mic'd with omnis in my noisy apartment.  I had to futz with it a while to get clean rectangular pulses in array2.  Note that the lead and lag times add up to the period of 130 BPM as hoped.  It's probably still insane overkill though.  <a href="/uploads/files/1638899985450-metronome-timer.pd">metronome timer.pd</a><br />
<img src="/uploads/files/1638900018730-screenshot-2021-12-07-125343.png" alt="Screenshot 2021-12-07 125343.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/6</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Tue, 07 Dec 2021 18:02:31 GMT</pubDate></item><item><title><![CDATA[Reply to Sync (in ms) between 2 audio signals on Wed, 08 Dec 2021 14:08:05 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> Thank you so much!! I will test your solution soon. Overkill? I don't think so, well implemented (and vanilla) for the win. Cheers~</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/7</guid><dc:creator><![CDATA[EEight]]></dc:creator><pubDate>Wed, 08 Dec 2021 14:08:05 GMT</pubDate></item><item><title><![CDATA[Reply to Sync (in ms) between 2 audio signals on Wed, 08 Dec 2021 18:32:36 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/eeight">@EEight</a> Oh good!  Well when you test it, you might want to fix the cutoff freq on the right, plus add a metro bang to update the arrays.  The latter really helps when you're adjusting level and threshold in order to get a clean rectangular pulse out of novelty metronomes (e.g. my phone app has a duck sound).<br />
<img src="/uploads/files/1638988166675-screenshot-2021-12-08-132609.png" alt="Screenshot 2021-12-08 132609.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13739/sync-in-ms-between-2-audio-signals/8</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Wed, 08 Dec 2021 18:32:36 GMT</pubDate></item></channel></rss>