<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - non-additive latency]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=5854</link>
		<description><![CDATA[The most recent posts in non-additive latency.]]></description>
		<lastBuildDate>Mon, 13 Aug 2018 14:28:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955782#p955782</link>
			<description><![CDATA[<p>Thank you, julien!</p><p>Maybe it could be an option in later PTQ-versions to select between 2 or 3 periods in ALSA output for those, who are manic and squeeze every millisecond from given hardware.</p><p>cheers</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Mon, 13 Aug 2018 14:28:19 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955782#p955782</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955780#p955780</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>@modartt<br />Does the change from &quot;2 times&quot; to &quot;3 times&quot; in your newer README_LINUX.txt mean, that PTQ feeds ALSA with 3 periods of 64 samples in this scenario since v6.x, while JACK can feed ALSA with a minimum of 2 periods in synchronous mode?</p></blockquote></div><p>Yes, that&#039;s correct.</p>]]></description>
			<author><![CDATA[null@example.com (julien)]]></author>
			<pubDate>Mon, 13 Aug 2018 13:47:34 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955780#p955780</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955776#p955776</link>
			<description><![CDATA[<div class="quotebox"><cite>music_guy wrote:</cite><blockquote><p>Are you saying that the latency on your ES3-PianoTeq has fallen from 22ms to 7-8ms? </p><p>For clarity, is that 7-8ms from finger triggering a key to sound output of say a headphone?</p></blockquote></div><p>No, the internal sound at the line-out of my Kawai is just a reference point. My notebook with PTQ v6.2.2 has always a lag / delay compared to that (both sound-engines are triggered by the same midi-event from the Kawai). All the times are just relative.</p><p>For the concept see my 12th post:<br /><a href="https://www.forum-pianoteq.com/viewtopic.php?pid=955473#p955473">https://www.forum-pianoteq.com/viewtopi...73#p955473</a></p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Mon, 13 Aug 2018 05:36:33 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955776#p955776</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955775#p955775</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>Really? See above:</p><p>gabe: ~ 20 ms, Kawai CA58<br />groovy: 22 ms, Kawai ES3<br />music_guy: 5 (?) ms, Kawai ES100</p></blockquote></div><div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>But using JACK in synchronous mode with Pianoteq I have won <strong>4 - 5 ms</strong> now. In other words, compared with my Kawai ES3 the 1st gen had 12 ms lag, while 2nd gen (and JACK) has a lag of just 7 - 8 ms now.</p><p>That is practically the same lag I had with the on-board Codec (7 ms). Fine.</p></blockquote></div><p>Are you saying that the latency on your ES3-PianoTeq has fallen from 22ms to 7-8ms? </p><p>For clarity, is that 7-8ms from finger triggering a key to sound output of say a headphone? </p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (music_guy)]]></author>
			<pubDate>Mon, 13 Aug 2018 02:34:46 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955775#p955775</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955773#p955773</link>
			<description><![CDATA[<p>In comparison my new 2i2 2nd gen (B-Stock) has better latency, than 1st gen.</p><p>I installed JACK Audio Connection Kit and jack_iodelay to determine the Round-Trip-latency. Output and input are looped with a patch-cable. Settings in jackd 44100 Hz, 64 samples, 2 periods.</p><p>Two examples:</p><p>2i2 1st:<br />&nbsp; &nbsp;520.655 frames&nbsp; &nbsp; &nbsp;11.806 ms total roundtrip latency<br />&nbsp; &nbsp; &nbsp; &nbsp; extra loopback latency: 328 frames<br />&nbsp; &nbsp; &nbsp; &nbsp; use 164 for the backend arguments -I and -O</p><p>2i2 2nd:<br />&nbsp; &nbsp;359.706 frames&nbsp; &nbsp; &nbsp; 8.157 ms total roundtrip latency<br />&nbsp; &nbsp; &nbsp; &nbsp; extra loopback latency: 167 frames<br />&nbsp; &nbsp; &nbsp; &nbsp; use 83 for the backend arguments -I and -O</p><p>But that was in JACK&#039;s default asynchronous mode, which means one extra period is used (2 + 1 = 3). With jackd -S prefix the daemon is started in synchronous mode and really 2 periods are effective. Result is a slightly better RT-latency, example:</p><p>2i2 1st:<br />&nbsp; &nbsp;468.655 frames&nbsp; &nbsp; &nbsp;10.627 ms total roundtrip latency<br />&nbsp; &nbsp; &nbsp; &nbsp; extra loopback latency: 340 frames<br />&nbsp; &nbsp; &nbsp; &nbsp; use 170 for the backend arguments -I and -O</p><p>2i2 2nd:<br />&nbsp; &nbsp;307.706 frames&nbsp; &nbsp; &nbsp; 6.977 ms total roundtrip latency<br />&nbsp; &nbsp; &nbsp; &nbsp; extra loopback latency: 179 frames<br />&nbsp; &nbsp; &nbsp; &nbsp; use 89 for the backend arguments -I and -O</p><br /><p><strong>Without JACK</strong> and just ALSA directly in PTQ the new hardware although was just 1 ms better than the 1st gen Scarlett, not really significant.</p><p>But using JACK in synchronous mode with Pianoteq I have won <strong>4 - 5 ms</strong> now. In other words, compared with my Kawai ES3 the 1st gen had 12 ms lag, while 2nd gen (and JACK) has a lag of just 7 - 8 ms now.</p><p>That is practically the same lag I had with the on-board Codec (7 ms). Fine.</p><p>For the next time I will play PTQ with the 2i2 2nd gen.</p><p>@modartt<br />Does the change from &quot;2 times&quot; to &quot;3 times&quot; in your newer README_LINUX.txt mean, that PTQ feeds ALSA with 3 periods of 64 samples in this scenario since v6.x, while JACK can feed ALSA with a minimum of 2 periods in synchronous mode?</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Sun, 12 Aug 2018 21:25:24 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955773#p955773</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955582#p955582</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>I found a nice PDF with the title <a href="http://www.epsglobal.com/downloads/XMOS/Why-do-you-need-USB-Audio-Class-2.pdf">Why do you need USB Audio Class 2?</a></p></blockquote></div><p>Interesting info. Thanks!</p>]]></description>
			<author><![CDATA[null@example.com (gabe)]]></author>
			<pubDate>Fri, 03 Aug 2018 06:02:43 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955582#p955582</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955576#p955576</link>
			<description><![CDATA[<p>Why not ask to Focusrite directly? Their after sales service is good.</p>]]></description>
			<author><![CDATA[null@example.com (stamkorg)]]></author>
			<pubDate>Thu, 02 Aug 2018 13:27:33 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955576#p955576</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955573#p955573</link>
			<description><![CDATA[<p>BTW I have a new hypothesis, why the Scarlett 2i2 1st Gen could have more latency, than the newer 2nd Gen.</p><p>The max. samplerate of 1st Gen is 96 kHz. So it only can be compliant to USB Audio Class 1 (UAC1).</p><p>The 2nd Gen is specified with 192 kHz samplerate, which means it could be USB Audio Class 2 (UAC2).</p><p>I found a nice PDF with the title <a href="http://www.epsglobal.com/downloads/XMOS/Why-do-you-need-USB-Audio-Class-2.pdf">Why do you need USB Audio Class 2?</a></p><p>Interesting are the Streaming differences (Table 6):</p><p>UAC&nbsp; &nbsp;Streaming latency<br />-----------------------<br />UAC1&nbsp; 4ms<br />UAC2&nbsp; 500μs</p><p>That reminds me of the&nbsp; 3.9 ms static lag of my 2i2 (1st Gen) compared with onboard PCI-Audio. Could be the amount for UAC1.</p><p>On the other hand the Linux-kernel is supporting UAC2 for years now, so chances are good, that the Focusrite Scarlett 2i2 <strong>2nd Gen</strong> will have lower latencies with generic alsa-driver (should 2nd Gen really be UAC2 compliant).</p><p>PS: And it would fit in the picture, that I found the same latencies (@64 samples) with two other UAC1-Audiointerfaces, Behringer UCA-222 and Esi Maya22.</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Thu, 02 Aug 2018 12:07:45 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955573#p955573</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955556#p955556</link>
			<description><![CDATA[<p>Thank you!</p><p>EDIT:<br />Scarlett is using Cirrus Logic too.<br />Interesting document about latency of 2i2 1st and 2nd gen here:<br /><a href="http://caulixtla.com/JP-08/2i2.html">http://caulixtla.com/JP-08/2i2.html</a></p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Tue, 31 Jul 2018 14:13:22 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955556#p955556</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955555#p955555</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p># aplay -l</p></blockquote></div><p>Aha, I see. Following your example, it turns our this macbook has the Cirrus Logic cs4206.</p>]]></description>
			<author><![CDATA[null@example.com (gabe)]]></author>
			<pubDate>Tue, 31 Jul 2018 14:03:45 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955555#p955555</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955554#p955554</link>
			<description><![CDATA[<div class="quotebox"><cite>gabe wrote:</cite><blockquote><p> 7 Series/C210 Series Chipset Family High Definition Audio Controller, by Intel.</p></blockquote></div><p>Sorry, but thanks for your efforts!</p><p>That is just the controller at the PCI-bus, often shortnamed &quot;Intel HDA&quot; type.</p><p>Analog to the output of a (Samsung-)notebook for example:</p><p># lspci | grep Audio<br />00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)</p><p>The audiocodec behind that controller is an Realtek ALC269V in this example: </p><p># aplay -l<br />**** List of PLAYBACK Hardware Devices ****<br />card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]<br />&nbsp; Subdevices: 1/1<br />&nbsp; Subdevice #0: subdevice #0<br />card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]<br />&nbsp; Subdevices: 1/1<br />&nbsp; Subdevice #0: subdevice #0</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Tue, 31 Jul 2018 13:53:44 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955554#p955554</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955551#p955551</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>Just for curiosity <i class="far fa-smile smiley"></i> - which vendor/chipset is the onboard codec on that macbook?</p></blockquote></div><p>I have a hard time finding this in Mac OS, which I hardly use. It is a work laptop that I use for presentations mostly. If I boot the machine in Linux, I find that the audio device is: 7 Series/C210 Series Chipset Family High Definition Audio Controller, by Intel.</p><p>The old mac seems to do better than my relatively new (1.5 years) Windows 10 laptop (LENOVO YOGA 510-14ISK) which I specifically bought for the piano....</p>]]></description>
			<author><![CDATA[null@example.com (gabe)]]></author>
			<pubDate>Tue, 31 Jul 2018 11:55:40 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955551#p955551</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955550#p955550</link>
			<description><![CDATA[<div class="quotebox"><cite>gabe wrote:</cite><blockquote><p>macbook air i5 onboard</p></blockquote></div><p>Just for curiosity <i class="far fa-smile smiley"></i> - which vendor/chipset is the onboard codec on that macbook?</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Tue, 31 Jul 2018 11:01:50 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955550#p955550</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955546#p955546</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>But I don&#039;t know, if Focusrite is to blame. The Scarlett 2i2 (1st gen) is USB Class Compliant and works fine on Linux, just the latency for realtime is not the best on (at least) my Linux-Kernel.</p></blockquote></div><p>The plot thickens... I should stop doing these measurements and play the piano, but to satisfy my curiosity I did the same type of measurement on an old (~6 years) Macbook Air (i5). Same piano, CA58. Surprisingly the 2i2 does not scale with a factor 4, but it is much better now:</p><p>buffer size / latency PTEQ -&gt; lag</p><p>2i2:</p><p>64&nbsp; &nbsp; 1.5 ms&nbsp; -&gt;&nbsp; 5 ms<br />128&nbsp; &nbsp;2.9 ms&nbsp; -&gt;&nbsp; 8 ms<br />256&nbsp; &nbsp;5.8 ms&nbsp; -&gt; 14 ms<br />512&nbsp; &nbsp;11.6 ms -&gt; 25 ms<br />1024&nbsp; 23.2 ms -&gt; 48 ms</p><p>macbook air i5 onboard:</p><p>64&nbsp; &nbsp; 1.5 ms&nbsp; -&gt;&nbsp; 7 ms<br />128&nbsp; &nbsp;2.9 ms&nbsp; -&gt; 10 ms<br />256&nbsp; &nbsp;5.8 ms&nbsp; -&gt; 16 ms<br />512&nbsp; &nbsp;11.6 ms -&gt; 27 ms<br />1024&nbsp; 23.2 ms -&gt; 50 ms</p><p>The both scale with ~ factor 2. And the latencies are good. And it plays well:&nbsp; at the shortest latencies no noticeable artifacts. The i2i is 2 ms better than the mac hardware, in terms of latency.</p><p>I should add that I noticed that the pianoteq sound starts with a very low amplitude oscillation that I did not include in all measurements reported, because I wasn&#039;t sure what it was. It looks as part of the sound, though.If it is included that would shave off 1 ms from all latencies.</p>]]></description>
			<author><![CDATA[null@example.com (gabe)]]></author>
			<pubDate>Tue, 31 Jul 2018 09:41:19 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955546#p955546</guid>
		</item>
		<item>
			<title><![CDATA[Re: non-additive latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=955542#p955542</link>
			<description><![CDATA[<div class="quotebox"><cite>gabe wrote:</cite><blockquote><p>Despite differences in the specific latency function parameters with differing hardware and OS, it seems that the steeper slope of the 2i2 is a consequence of the fact that it is a USB device. I would guess that focusrite&#039;s Windows drivers are highly optimized and while they do not even support Linux, the slope on both platforms is the same: 4.</p></blockquote></div><p>I agree with you.</p><p>But I don&#039;t know, if Focusrite is to blame. The Scarlett 2i2 (1st gen) is USB Class Compliant and works fine on Linux, just the latency for realtime is not the best on (at least) my Linux-Kernel.</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Tue, 31 Jul 2018 06:05:08 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=955542#p955542</guid>
		</item>
	</channel>
</rss>
