<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Modartt user forum - Questions regarding measured latency]]></title>
	<link rel="self" href="https://forum.modartt.com/extern.php?action=feed&amp;tid=6854&amp;type=atom"/>
	<updated>2019-10-30T17:00:11Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.modartt.com/viewtopic.php?id=6854</id>
		<entry>
			<title type="html"><![CDATA[Re: Questions regarding measured latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=963171#p963171"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[groovy]]></name>
				<uri>https://forum.modartt.com/profile.php?id=1021</uri>
			</author>
			<updated>2019-10-30T17:00:11Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=963171#p963171</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions regarding measured latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=963152#p963152"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[JD]]></name>
				<uri>https://forum.modartt.com/profile.php?id=5790</uri>
			</author>
			<updated>2019-10-29T23:26:46Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=963152#p963152</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions regarding measured latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=963150#p963150"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[scherbakov.al]]></name>
				<uri>https://forum.modartt.com/profile.php?id=4547</uri>
			</author>
			<updated>2019-10-29T21:11:19Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=963150#p963150</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions regarding measured latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=963144#p963144"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[JD]]></name>
				<uri>https://forum.modartt.com/profile.php?id=5790</uri>
			</author>
			<updated>2019-10-29T16:04:59Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=963144#p963144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Questions regarding measured latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=962683#p962683"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[groovy]]></name>
				<uri>https://forum.modartt.com/profile.php?id=1021</uri>
			</author>
			<updated>2019-10-06T17:18:32Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=962683#p962683</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Questions regarding measured latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=962681#p962681"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Viridis]]></name>
				<uri>https://forum.modartt.com/profile.php?id=6430</uri>
			</author>
			<updated>2019-10-06T16:13:50Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=962681#p962681</id>
		</entry>
</feed>
