<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - Questions regarding measured latency]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=6854</link>
		<description><![CDATA[The most recent posts in Questions regarding measured latency.]]></description>
		<lastBuildDate>Wed, 30 Oct 2019 17:00:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Questions regarding measured latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=963171#p963171</link>
			<description><![CDATA[<div class="quotebox"><cite>JD wrote:</cite><blockquote><p>Do notes with low velocity sound later than notes with high velocity?</p></blockquote></div><p>If the notes are triggered by MIDI keyboard: yes.</p><p>Contemporary keyboards usually have a minimum of two contacts per key. The pressed key reaches one after the other and the velocity is computed when the second contact closes.</p><p>The faster the key moves, the earlier the second contact is reached and&nbsp; the corresponding velocity is computed.</p><p>If you like, you can determine it by recording the acoustic noise from your fingernail on the key and the following acoustic sound from the speaker with a microphone. Every built-in mic in a notebook will do. In a waveeditor like audacity you can see the time difference/latency between those two signals.</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Wed, 30 Oct 2019 17:00:11 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=963171#p963171</guid>
		</item>
		<item>
			<title><![CDATA[Re: Questions regarding measured latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=963152#p963152</link>
			<description><![CDATA[<div class="quotebox"><cite>scherbakov.al wrote:</cite><blockquote><p>It is interesting that in the piano, the time span between reaching the bottom of the key and hitting the hammer on the string reaches a range from -15 to +25 ms .. depends on the dynamics and the preliminary state of the hammer (at rest or on the fenger ... or on a double rehearsal spring ..or in the air ..)</p></blockquote></div><p>Thank you! I have been wondering about the time for the hammer to reach the strings.</p><p>I feel that my Korg keybed is quite slow and heavy and includes some of this time, but I don&#039;t know of any way to determine how much.</p><p>(Maybe this time is even included in the Pianoteq model. Do notes with low velocity sound later than notes with high velocity? It all seems a bit difficult, because it depends on the controller. The software should probably do one thing if you are playing a common semi-weighted keyboard, and do something else quite different if you are playing a VPC-1...)</p>]]></description>
			<author><![CDATA[null@example.com (JD)]]></author>
			<pubDate>Tue, 29 Oct 2019 23:26:46 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=963152#p963152</guid>
		</item>
		<item>
			<title><![CDATA[Re: Questions regarding measured latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=963150#p963150</link>
			<description><![CDATA[<p>It is interesting that in the piano, the time span between reaching the bottom of the key and hitting the hammer on the string reaches a range from -15 to +25 ms .. depends on the dynamics and the preliminary state of the hammer (at rest or on the fenger ... or on a double rehearsal spring ..or in the air ..)</p>]]></description>
			<author><![CDATA[null@example.com (scherbakov.al)]]></author>
			<pubDate>Tue, 29 Oct 2019 21:11:19 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=963150#p963150</guid>
		</item>
		<item>
			<title><![CDATA[Re: Questions regarding measured latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=963144#p963144</link>
			<description><![CDATA[<div class="quotebox"><cite>Viridis wrote:</cite><blockquote><p>With 192 samples (4 ms) I have a total latency of 20 ms; 16 ms come from elsewhere (the exact start of the sound signal is not very distinguishable)<br />With 384 samples (8,0 ms) I have a total latency of 72 ms; 64 ms come from elsewhere</p></blockquote></div><p>Yesterday I made some similar measurements.&nbsp; My measurement setup actually involves seven pieces of equipment: a Korg LP-380 piano, a Roland MIDI router, a hardware synth, the Linux computer running Pianoteq, one of two audio interfaces (Scarlett or Notepad8-FX), and a hardware multitrack recorder. </p><p>The synth connected over MIDI responds to a MIDI note from the piano before the piano makes a sound, and reveals that the latency of Korg&#039;s sample player inside the piano is about 2 ms, or at least in the range of 1-3. (This calculation factors in about .7 ms for a 3-byte note-on message from the piano to reach the synth at 38,500 bps).</p><p>At 192 samples, my measurement of total latency for Pianoteq is very comparable to yours: about 23 ms. Modartt says to expect 3x the buffer size, but 20ms is about 4x or 5x the buffer size.</p><p>But then your result at 384 samples really sticks out, because it has jumped to 9x the buffer size! I wonder what could be happening there.</p>]]></description>
			<author><![CDATA[null@example.com (JD)]]></author>
			<pubDate>Tue, 29 Oct 2019 16:04:59 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=963144#p963144</guid>
		</item>
		<item>
			<title><![CDATA[Re: Questions regarding measured latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=962683#p962683</link>
			<description><![CDATA[<div class="quotebox"><cite>Viridis wrote:</cite><blockquote><p>(the exact start of the sound signal is not very distinguishable)</p></blockquote></div><p>To make the start of the keystroke and sound from the speaker clear distinguishable in the waveeditor, I used a higher note (c5) in recent tests. You can try that.</p><p>Method? Did you make a one-channel-recording of both sounds? (separate channels for both signals are error-prone).<br />Did you play the test-note mf, f, ff? (the slower the key movement, the longer the key travel from contact 1 to 2, the bigger the latency)</p><p>Did you read the Pianoteq&#039;s README_LINUX.txt? (... the latency is 3 times the buffer size ...)</p><p>Each MIDI-keyboard has an individual MIDI-latency (known/unknown?)</p><p>What is the latency of your Yamaha CP33 <strong>internal sound</strong> determined under the same conditions? How much better/worse compared with your Pianoteq?</p><p>Connections have individual latencies (USB 1, USB 2, MIDI-Serial (5-pin), Bluetooth LE)</p><p>Most questions were already discussed in this forum, maybe you can find a few answers by reading.</p><p>Cheers</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Sun, 06 Oct 2019 17:18:32 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=962683#p962683</guid>
		</item>
		<item>
			<title><![CDATA[Questions regarding measured latency]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=962681#p962681</link>
			<description><![CDATA[<p>Hi piano lovers.</p><p>I&#039;ve done some measurements regarding latency.</p><p>With 192 samples (4 ms) I have a total latency of 20 ms; 16 ms come from elsewhere (the exact start of the sound signal is not very distinguishable)<br />With 384 samples (8,0 ms) I have a total latency of 72 ms; 64 ms come from elsewhere<br />With 576 samples (12,0 ms) I have a total latency of 105 ms; 93 ms come from elsewhere<br />With 960 samples (20,0 ms) I have a total latency of 106 ms; 86 ms come from elsewhere<br />With 1920 samples (40,0 ms) I have a total latency of 168 ms; 128 ms come from elsewhere<br />With 3840 samples (80,0 ms) I have a total latency of 286 ms; 206 ms come from elsewhere</p><p>It is clear to see, that with increasing samples, not only the audio buffer size-latency (in ms) increases, but there is an additional increase in latency (except for 20,0 ms, where it lowers).</p><p>Has anybody ideas where total latency consists of?<br />Are my results comparable to what others measure?</p><br /><p>Most of the time, I use 256 samples (5,3 ms) to avoid cracks (with 4 ms I occasionally hear cracks).</p><p>My system: cpu: 4xAMD Phenom II X4 (running at 3,4 GHz: governor: performance).<br />OS: Linux 64 Bit (Kubuntu 18.04, normal kernel)<br />My piano: Yamaha cp33. MIDI over USB (cable length about 1,5 m)<br />My sound card: Focusrite scarlett 2i2 (2nd gen.)<br />My loudspeakers: Yamaha HS7<br />I have tested with Zoom H2n sound recorder and Audacity</p>]]></description>
			<author><![CDATA[null@example.com (Viridis)]]></author>
			<pubDate>Sun, 06 Oct 2019 16:13:50 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=962681#p962681</guid>
		</item>
	</channel>
</rss>
