<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - Pianoteq MIDI recordings are slow]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=11549</link>
		<description><![CDATA[The most recent posts in Pianoteq MIDI recordings are slow.]]></description>
		<lastBuildDate>Tue, 04 Jun 2024 22:20:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997118#p997118</link>
			<description><![CDATA[<div class="quotebox"><cite>brundlefly wrote:</cite><blockquote><div class="quotebox"><cite>levinite wrote:</cite><blockquote><p>I did notice that Pianoteq&#039;s rendering tempo is affected by Pianoteq&#039;s midi &quot;Playback speed&quot; setting (slightly to the left of the midi title). Perhaps, you can use this instead of requiring the tempo modification.</p></blockquote></div><p>That&#039;s a very interesting observation. I&#039;ve never paid any attention to that setting. I just tried setting it to 120/120.096 = .9992. This caused the UI to display 1.00x intead of 1x. And the resulting render was slow/long by the expected amount.</p><p>This made me wonder if that setting might account for the issue in some cases if not this one, but it seems to default back to 1x when you restart Pianoteq.</p><p>But it could still be part of the puzzle if it&#039;s not always being properly re-initialized internally.</p></blockquote></div><p>This is a much better fix than having to export to Sekaiju first. Thank you both!</p><p>EDIT: I can confirm that making changes to Pianoteq&#039;s &quot;Playback speed&quot; <strong>will</strong> change the render speed even if it does show x1.00. For my most recent test, I achieved good sync with x1.00155 for a 10-minute clip. I can also confirm that it does reset to x1 after automatically (tested by rendering without making changes after a restart), no issues there. </p><p>I&#039;m very happy with this solution. Using the 120.096 value I got the other day <em>should</em> have given me 1.0008 but that was from another software on another day so maybe down to user error, or difference in hardware, etc. Anyway, I&#039;m impressed that Pianoteq actually will reliably render the difference between 1.0016 and 1.00155. I did it twice to make sure, it&#039;s spot on.</p>]]></description>
			<author><![CDATA[null@example.com (Khoa)]]></author>
			<pubDate>Tue, 04 Jun 2024 22:20:56 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997118#p997118</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997113#p997113</link>
			<description><![CDATA[<div class="quotebox"><cite>levinite wrote:</cite><blockquote><p>I did notice that Pianoteq&#039;s rendering tempo is affected by Pianoteq&#039;s midi &quot;Playback speed&quot; setting (slightly to the left of the midi title). Perhaps, you can use this instead of requiring the tempo modification.</p></blockquote></div><p>That&#039;s a very interesting observation. I&#039;ve never paid any attention to that setting. I just tried setting it to 120/120.096 = .9992. This caused the UI to display 1.00x intead of 1x. And the resulting render was slow/long by the expected amount.</p><p>This made me wonder if that setting might account for the issue in some cases if not this one, but it seems to default back to 1x when you restart Pianoteq.</p><p>But it could still be part of the puzzle if it&#039;s not always being properly re-initialized internally.</p>]]></description>
			<author><![CDATA[null@example.com (brundlefly)]]></author>
			<pubDate>Tue, 04 Jun 2024 19:30:50 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997113#p997113</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997106#p997106</link>
			<description><![CDATA[<div class="quotebox"><cite>Khoa wrote:</cite><blockquote><div class="quotebox"><cite>brundlefly wrote:</cite><blockquote><div class="quotebox"><cite>Khoa wrote:</cite><blockquote><p>The MIDI will have a tempo of 120.00 if I record it as 120.00 in Pianoteq. Pianoteq will accurately render with whatever tempo the performance set or modified to.</p></blockquote></div><p>So is this confirming that Pianoteq will render with correct timing if you save the performance as MIDI and re-import it vs. rendering it immediately after recording?</p></blockquote></div><p>Unfortunately, no, simply re-importing will not fix the issue. I have to modify the tempo to 120.096 using another program (Sekaiju). But in any case, if your Roland also sends note-off and you&#039;re not seeing the issue then that theory is bust... Oh well, I&#039;m moving on for now. My Roland is 10+ years old now so eventually it&#039;ll have to be replaced. We&#039;ll see then if the issue is still there, lol!</p><div class="quotebox"><cite>levinite wrote:</cite><blockquote><p>Hopefully, this link* can shed light on this issue.<br /><a href="https://majicdesigns.github.io/MD_MIDIFile/page_timing.html">https://majicdesigns.github.io/MD_MIDIF...iming.html</a></p></blockquote></div><p>Thanks for sharing. I&#039;ve considered diving down this rabbit hole to attempt to make my own simple MIDI recorder, but that will take me forever to learn haha... For now I&#039;ve made my peace with it. I thought the issue was happening to everyone, then it would have been easier for Modartt to diagnose. Whereas here it&#039;s only happening to me, and maybe the original poster from a few years ago - so I don&#039;t have super high hopes. I&#039;m still going to test the different sample rates later to see if it makes any difference.</p></blockquote></div><p>From my reading of the older thread, the problem has never been adequately addressed. The relatively few it affects have found their own work-arounds. I wonder how many other setups would render such a long midi correctly, since we know the clock rounding is so critical. Sound cards are virtualized. As Brundlefly has suggested, it may be more an OS issue.&nbsp; I did notice that Pianoteq&#039;s rendering tempo is affected by Pianoteq&#039;s midi &quot;Playback speed&quot; setting (slightly to the left of the midi title). Perhaps, you can use this instead of requiring the tempo modification.</p>]]></description>
			<author><![CDATA[null@example.com (levinite)]]></author>
			<pubDate>Mon, 03 Jun 2024 21:48:11 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997106#p997106</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997101#p997101</link>
			<description><![CDATA[<div class="quotebox"><cite>brundlefly wrote:</cite><blockquote><div class="quotebox"><cite>Khoa wrote:</cite><blockquote><p>The MIDI will have a tempo of 120.00 if I record it as 120.00 in Pianoteq. Pianoteq will accurately render with whatever tempo the performance set or modified to.</p></blockquote></div><p>So is this confirming that Pianoteq will render with correct timing if you save the performance as MIDI and re-import it vs. rendering it immediately after recording?</p></blockquote></div><p>Unfortunately, no, simply re-importing will not fix the issue. I have to modify the tempo to 120.096 using another program (Sekaiju). But in any case, if your Roland also sends note-off and you&#039;re not seeing the issue then that theory is bust... Oh well, I&#039;m moving on for now. My Roland is 10+ years old now so eventually it&#039;ll have to be replaced. We&#039;ll see then if the issue is still there, lol!</p><div class="quotebox"><cite>levinite wrote:</cite><blockquote><p>Hopefully, this link* can shed light on this issue.<br /><a href="https://majicdesigns.github.io/MD_MIDIFile/page_timing.html">https://majicdesigns.github.io/MD_MIDIF...iming.html</a></p></blockquote></div><p>Thanks for sharing. I&#039;ve considered diving down this rabbit hole to attempt to make my own simple MIDI recorder, but that will take me forever to learn haha... For now I&#039;ve made my peace with it. I thought the issue was happening to everyone, then it would have been easier for Modartt to diagnose. Whereas here it&#039;s only happening to me, and maybe the original poster from a few years ago - so I don&#039;t have super high hopes. I&#039;m still going to test the different sample rates later to see if it makes any difference.</p>]]></description>
			<author><![CDATA[null@example.com (Khoa)]]></author>
			<pubDate>Mon, 03 Jun 2024 19:40:14 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997101#p997101</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997095#p997095</link>
			<description><![CDATA[<div class="quotebox"><cite>Khoa wrote:</cite><blockquote><p><strong>So I tried another test:</strong> Using Pianoteq&#039;s virtual keyboard, I recorded a 10 minute clip with a few key presses every other minute or so. <strong>No drift!</strong> So as of now I&#039;m pretty sure the issue is with how Pianoteq records MIDI signal from my specific digital piano (Roland HP-508). This is why no one else is able to reproduce the issue with their own hardware. And also why the issue isn&#039;t more widespread.</p><p><strong>My current theory:</strong> The Roland HP-508 records note-off velocity, an uncommon feature according to Pianoteq (Pianoteq popped a message about it when I first calibrated my velocity curves). Could these extra events somehow be enough to add latency? I will do some more testing and see if I can disable it one way or another.</p></blockquote></div><p>Latency will not compound over time to produce drift; If that were the case, you would just get a fixed offset of the whole performance, and generally not more than a few milliseconds. Also, Note Off Velocity is not a separate event; it&#039;s just a parameter encoded in the Note Off event that&#039;s fixed at a constant value in a keyboard that doesn&#039;t support it vs. variable from a keyboard that does. In any case, my Roland RD-700NX sends variable Note-Off Velocity, and I&#039;m not seeing this issue. But it is interesting that you don&#039;t see it when playing fewer discrete events.</p><br /><div class="quotebox"><cite>Khoa wrote:</cite><blockquote><p>The MIDI will have a tempo of 120.00 if I record it as 120.00 in Pianoteq. Pianoteq will accurately render with whatever tempo the performance set or modified to.</p></blockquote></div><p>So is this confirming that Pianoteq will render with correct timing if you save the performance as MIDI and re-import it vs. rendering it immediately after recording?</p>]]></description>
			<author><![CDATA[null@example.com (brundlefly)]]></author>
			<pubDate>Mon, 03 Jun 2024 17:17:06 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997095#p997095</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997093#p997093</link>
			<description><![CDATA[<p>Hopefully, this link* can shed light on this issue.</p><p>(Midi Beat Time)<br />&quot;Within the MIDI data stream are tempo meta-events, which contain a 24-bit value that give the number of microseconds per quarter note.&quot;</p><br /><p>(Sequencing Time)<br />&quot;The fractional number of microseconds must be properly accounted for or the MIDI playback will drift away from the correctly synchronized time.&quot;</p><br /><br /><p>*<br /><a href="https://majicdesigns.github.io/MD_MIDIFile/page_timing.html">https://majicdesigns.github.io/MD_MIDIF...iming.html</a></p>]]></description>
			<author><![CDATA[null@example.com (levinite)]]></author>
			<pubDate>Sun, 02 Jun 2024 23:12:48 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997093#p997093</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997091#p997091</link>
			<description><![CDATA[<p><strong>So I tried another test:</strong> Using Pianoteq&#039;s virtual keyboard, I recorded a 10 minute clip with a few key presses every other minute or so. <strong>No drift!</strong> So as of now I&#039;m pretty sure the issue is with how Pianoteq records MIDI signal from my specific digital piano (Roland HP-508). This is why no one else is able to reproduce the issue with their own hardware. And also why the issue isn&#039;t more widespread.</p><p><strong>My current theory:</strong> The Roland HP-508 records note-off velocity, an uncommon feature according to Pianoteq (Pianoteq popped a message about it when I first calibrated my velocity curves). Could these extra events somehow be enough to add latency? I will do some more testing and see if I can disable it one way or another.&nbsp; </p><p>EDIT: I&#039;m unable to stop my digital piano from sending note-off data. Flattening the note-off curve in Pianoteq does not eliminate drift. </p><div class="quotebox"><cite>Luc Henrion wrote:</cite><blockquote><p>What intrigues me is that the results can vary: too slow on the Mac, too fast on the Toshiba... very strange.<br />Have you checked that the Pianoteq sampling rate matches the Mac/Toshiba sampling rate? I suppose you did...</p></blockquote></div><p>I suspect it&#039;s something to do with the slight difference between Mac vs Windows version of Pianoteq, just a hunch. And yes, 48,000 Hz for all. </p><div class="quotebox"><cite>brundlefly wrote:</cite><blockquote><p>If you save the Pianoteq-recorded performance to MIDI and open each of those files one a time in a DAW, does the DAW take on the same tempo in both cases?<br />If so, and you drop the Pianoteq-recorded MIDI file back into Pianoteq after restarting it, will it then render the proper tempo?</p></blockquote></div><p>The MIDI will have a tempo of 120.00 if I record it as 120.00 in Pianoteq. Pianoteq will accurately render with whatever tempo the performance set or modified to.</p>]]></description>
			<author><![CDATA[null@example.com (Khoa)]]></author>
			<pubDate>Sun, 02 Jun 2024 20:03:06 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997091#p997091</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997089#p997089</link>
			<description><![CDATA[<div class="quotebox"><cite>Khoa wrote:</cite><blockquote><p>I recorded the MIDI performance simultaneously using Synthesia and Pianoteq.</p></blockquote></div><p>If you save the Pianoteq-recorded performance to MIDI and open each of those files one a time in a DAW, does the DAW take on the same tempo in both cases?</p><p>If so, and you drop the Pianoteq-recorded MIDI file back into Pianoteq after restarting it, will it then render the proper tempo?</p>]]></description>
			<author><![CDATA[null@example.com (brundlefly)]]></author>
			<pubDate>Sun, 02 Jun 2024 17:22:59 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997089#p997089</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997079#p997079</link>
			<description><![CDATA[<div class="quotebox"><cite>levinite wrote:</cite><blockquote><div class="quotebox"><cite>Khoa wrote:</cite><blockquote><div class="quotebox"><cite>Luc Henrion wrote:</cite><blockquote><p>As Julien wrote, Pianoteq is based on the sampling rate of the sound card used (internal or external), so in my opinion that&#039;s where you should be looking; if you could borrow an external sound card for a test, that would certainly be interesting.</p></blockquote></div><p>Yeah, I still need to try out the different sampling rates, it&#039;s worth a shot. I&#039;ll also do some research on external sound cards. Any good ones you can recommend? Just need to be sufficient for Pianoteq. I&#039;ve only used internal cards so this is new territory for me.</p></blockquote></div><p>You have already tried 3 different laptops, i.e. 3 different soundcards. Unless you need one it might be better to wait a bit until more is known about the problem, especially since you have something of a tempo workaround.</p></blockquote></div><p>Except that they&#039;re all internal... I suggested borrowing one for a test, not buying one; even though you can find very cheap cards that give good results - but also very expensive cards that don&#039;t!<br />What intrigues me is that the results can vary: too slow on the Mac, too fast on the Toshiba... very strange.<br />Have you checked that the Pianoteq sampling rate matches the Mac/Toshiba sampling rate? I suppose you did...</p>]]></description>
			<author><![CDATA[null@example.com (Luc Henrion)]]></author>
			<pubDate>Sun, 02 Jun 2024 07:34:12 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997079#p997079</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997077#p997077</link>
			<description><![CDATA[<div class="quotebox"><cite>Khoa wrote:</cite><blockquote><div class="quotebox"><cite>Luc Henrion wrote:</cite><blockquote><p>As Julien wrote, Pianoteq is based on the sampling rate of the sound card used (internal or external), so in my opinion that&#039;s where you should be looking; if you could borrow an external sound card for a test, that would certainly be interesting.</p></blockquote></div><p>Yeah, I still need to try out the different sampling rates, it&#039;s worth a shot. I&#039;ll also do some research on external sound cards. Any good ones you can recommend? Just need to be sufficient for Pianoteq. I&#039;ve only used internal cards so this is new territory for me.</p></blockquote></div><p>You have already tried 3 different laptops, i.e. 3 different soundcards. Unless you need one it might be better to wait a bit until more is known about the problem, especially since you have something of a tempo workaround.</p>]]></description>
			<author><![CDATA[null@example.com (levinite)]]></author>
			<pubDate>Sun, 02 Jun 2024 00:02:44 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997077#p997077</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997072#p997072</link>
			<description><![CDATA[<div class="quotebox"><cite>Luc Henrion wrote:</cite><blockquote><p>As Julien wrote, Pianoteq is based on the sampling rate of the sound card used (internal or external), so in my opinion that&#039;s where you should be looking; if you could borrow an external sound card for a test, that would certainly be interesting.</p></blockquote></div><p>Yeah, I still need to try out the different sampling rates, it&#039;s worth a shot. I&#039;ll also do some research on external sound cards. Any good ones you can recommend? Just need to be sufficient for Pianoteq. I&#039;ve only used internal cards so this is new territory for me.</p>]]></description>
			<author><![CDATA[null@example.com (Khoa)]]></author>
			<pubDate>Sat, 01 Jun 2024 08:47:47 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997072#p997072</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997070#p997070</link>
			<description><![CDATA[<p>As Julien wrote, Pianoteq is based on the sampling rate of the sound card used (internal or external), so in my opinion that&#039;s where you should be looking; if you could borrow an external sound card for a test, that would certainly be interesting.</p>]]></description>
			<author><![CDATA[null@example.com (Luc Henrion)]]></author>
			<pubDate>Sat, 01 Jun 2024 07:55:19 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997070#p997070</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997069#p997069</link>
			<description><![CDATA[<div class="quotebox"><cite>levinite wrote:</cite><blockquote><p>I am still confused over your exact setup but find it curious that 23.976/24.000 is about .999 and 120.00/120.096 is approximately .9992. Is it possible the frame rate has been converted somehow?</p></blockquote></div><p>I thought so too but I&#039;m pretty sure it&#039;s just a coincidence. I make sure to shoot and export in 24.00 fps using DaVinci Resolve. The drift happens at the MIDI stage, though. At least that&#039;s how it is for my case.</p>]]></description>
			<author><![CDATA[null@example.com (Khoa)]]></author>
			<pubDate>Sat, 01 Jun 2024 05:42:05 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997069#p997069</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997068#p997068</link>
			<description><![CDATA[<p>I am still confused over your exact setup but find it curious that 23.976/24.000 is about .999 and 120.00/120.096 is approximately .9992. Is it possible the frame rate has been converted somehow?</p>]]></description>
			<author><![CDATA[null@example.com (levinite)]]></author>
			<pubDate>Sat, 01 Jun 2024 04:50:53 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997068#p997068</guid>
		</item>
		<item>
			<title><![CDATA[Re: Pianoteq MIDI recordings are slow]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=997066#p997066</link>
			<description><![CDATA[<div class="quotebox"><cite>brundlefly wrote:</cite><blockquote><p>Also, on the remote chance that it matters, what piano model, preset and rendering quaity are involved?</p></blockquote></div><p> </p><p>Some more details: Roland HP 508. Petrof Mistral Classical Recording. Rendering at 48,000 Hz, 16 bits, FLAC. High quality settings. Normalized output volume. I play in 48,000 Hz, 64 samples. 128 Polyphony. The MIDI tab is left untouched. </p><p>I&#039;m starting to think the problem is my Roland not being fully compatible with Pianoteq somehow because I&#039;ve just tried the test with 2 other laptops, one is my main M1 Macbook, the other is my old Toshiba running Windows 10. Both produced audio that don&#039;t match up. Interestingly, the Toshiba is faster, not slower. </p><div class="quotebox"><cite>brundlefly wrote:</cite><blockquote><p>It would also be useful to know if you get the same slow/long performance when timing a real-time playback of the recorded MIDI.</p></blockquote></div><p>I&#039;ve imported the MIDI files into a MIDI sequencer software to see, they do drift as expected. So the cause is for sure not with &quot;Export to audio&quot;. Maybe playing with 64 samples is too ambitious, I will try to slow it down to 128 or slower to see.</p>]]></description>
			<author><![CDATA[null@example.com (Khoa)]]></author>
			<pubDate>Sat, 01 Jun 2024 02:44:19 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=997066#p997066</guid>
		</item>
	</channel>
</rss>
