<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Modartt user forum - Linux Crackle vs Latency]]></title>
	<link rel="self" href="https://forum.modartt.com/extern.php?action=feed&amp;tid=13345&amp;type=atom"/>
	<updated>2026-08-01T09:04:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.modartt.com/viewtopic.php?id=13345</id>
		<entry>
			<title type="html"><![CDATA[Re: Linux Crackle vs Latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=1008744#p1008744"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>gruuvinrob wrote:</cite><blockquote><p>Thanks for the reply.</p><p>I wiped the machine and installed Ubuntu Studio 26.04</p><p>All good!</p><p>... and yes, no crackling with a sample size of 64&nbsp; ...&nbsp; latency is 1.3 ms</p></blockquote></div><br /><p>Great!</p>]]></content>
			<author>
				<name><![CDATA[stamkorg]]></name>
				<uri>https://forum.modartt.com/profile.php?id=3941</uri>
			</author>
			<updated>2026-08-01T09:04:01Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=1008744#p1008744</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Linux Crackle vs Latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=1008693#p1008693"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>stamkorg wrote:</cite><blockquote><p>Hello,</p><p>I think you should be able to run Pianoteq at 64 samples.</p><p>I see&nbsp; 3 important things to start :&nbsp; </p><p>1. Install a low latency or real-time kernel<br />2. In Pianoteq there is a setting that maximize cpu use. Set it to Max<br />3. Use the power management to &quot;performance&quot; in Ubuntu </p><p>Also in jack there is a setting called &quot;priority&quot; if I remember. You could set it to 90</p><p>Did you try a Ubuntu Studio for this use ? It&#039;s easy and ready with low latency kernel.</p></blockquote></div><p>Thanks for the reply.</p><p>I wiped the machine and installed Ubuntu Studio 26.04</p><p>All good!</p><p>... and yes, no crackling with a sample size of 64&nbsp; ...&nbsp; latency is 1.3 ms</p>]]></content>
			<author>
				<name><![CDATA[gruuvinrob]]></name>
				<uri>https://forum.modartt.com/profile.php?id=10998</uri>
			</author>
			<updated>2026-07-29T02:21:11Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=1008693#p1008693</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Linux Crackle vs Latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=1008692#p1008692"/>
			<content type="html"><![CDATA[<p>Hi gruuvinrob,</p><p>I have almost the same computer you have, i7-7700 4 cores with 8 threads. I am not using jack, I am using a pipewire.</p><p>This advice I took from Glennbo in the Reaper forum:</p><p>&quot;One thing I always find helps to achieve lower latency is to modify,</p><p>/etc/security/limits.conf</p><p>and add the two lines, (replacing USER_NAME with the name you see in a terminal window). Those lines let you run processes at up to 98% real time, and gives you unrestricted memory access.</p><p>@USER_NAME - rtprio 98<br />@USER_NAME - memlock unlimited</p><p>Note: There are also other ways to achieve this, where you add yourself to the audio group, and then set user audio with similar limits. It&#039;s just seemed like fewer steps to just give myself higher limits, and I might want to run something like video editing software that may or may not be in the audio group.&quot;</p><p>I am running Debian 13 stable and use a Gnome desktop. Every time I run Pianoteq I set my balance to performance mode, set Pianoteq to 48 kHz, set the audio buffer size to 128 and especially set my polyphony to auto pessimistic just to play without cracks and very, very few xruns. If you really like your performance and want to record, after the performance you can set much more polyphony in order to record, so you can render the audio with more polyphony.</p><p>I do that with an internal sound from the motherboard, but if you get an external sound card (I have a Steinberg UR22), I can get a lower buffer size without any problem.</p><p>I hope that will help you.</p>]]></content>
			<author>
				<name><![CDATA[Beco]]></name>
				<uri>https://forum.modartt.com/profile.php?id=4699</uri>
			</author>
			<updated>2026-07-29T02:04:44Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=1008692#p1008692</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Linux Crackle vs Latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=1008686#p1008686"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>gruuvinrob wrote:</cite><blockquote><p>I&#039;ve learned a few things here, but I&#039;d like to learn more from others, so maybe this discussion will also help others. There&#039;s some discussion on reducing latency, but not so much on eliminating the crackling sound.</p><p>I&#039;ve been using Linux exclusively for over 15 years, but I have found it difficult to get a stable sound from Pianoteq 9. I am using JACK, and the issue is a crackling sound while playing. To me, this is obviously an issue with audio processing not keeping up, and possibly causing extra latency (more on this later--needs to be better understood). My computer runs an Intel i7-4770 4-core (8-thread) CPU running @ 3.4 GHz, with 16 GB RAM, on Ubuntu 24.04, and the audio chipset is on the motherboard. This machine does no other tasks except process audio, and so it&#039;s a bit surprising that more tuning is needed, since this computer is no slouch! I followed all tips in the readme file, and have configured real-time scheduling for the audio user in /etc/security/limits.conf, and I&#039;ve added my user account to the audio group. No issues there, since that fixed the error messages seen on the command line and reduced the latency to something that sounds fairly good..... but it still crackled.</p><p>After searching for better help, I found some discussion on this forum around lowering the audio buffer size from the default 256 to 128 to reduce latency (hoping this will also reduce the crackling), implying buffer size can be adjusted from within Pianoteq. This is not the case, however, since Pianoteq does not allow this value to be adjusted from within. After a lot of reading and fighting, I was able to adjust the buffer size from QjackCtl. So I adjusted the buffer size down from 256 to 128, which should reduce the latency from about 5 ms to 2.5 ms, however that resulted in a LOT more crackling. I don&#039;t really want to increase the latency, however I then increased the buffer size from the original 256 to 512, which increased the latency from 5 ms to 10 ms ... AND THAT REDUCED MOST OF THE CRACKLING! I should also note that I have the sampling rate set to 48 kHz.</p><p>So here is the first important takeaway from this discovery, which is not pointed out very well in the readme file or help on the forums: Buffer size needs to be adjusted to find a compromise between latency and crackling; a larger buffer size will reduce crackling at the expense of increased latency, and a smaller buffer size will decrease latency at the expense of more crackling. Generally, &lt;= 10 ms of latency is acceptable, but &gt; 10 ms is where it really starts to feel laggy.</p><p>So I have my buffer size set to 512, which gives me 10 ms of latency with very little crackling, but if I want to eliminate all crackling entirely, then I set the buffer size to 1024, which results in 20 ms of latency, which feels terrible.</p><p>So that brings me to my questions (for anyone who still cares). With 4 cores (8 threads) running at 3.4 GHz, I think I should be able to reduce my buffer size back to 256 with 5 ms latency without crackling.... so why is this a problem? I don&#039;t see how this software performs well on lesser CPU specs, but yet I am sure it does (too many videos out there where I hear no crackling at all). What is being over looked here? (I have also run the cpufreq-set command to put all 8 cpus into performance mode; this made no perceptible difference, as expected, since these CPUs are already powerful and doing no other tasks).</p><p>Any Ideas? for those in the know, please share your knowledge and experiences! THANKS!!</p><p>-Rob</p></blockquote></div><p>Hello,</p><p>I think you should be able to run Pianoteq at 64 samples.</p><p>I see&nbsp; 3 important things to start :&nbsp; </p><p>1. Install a low latency or real-time kernel<br />2. In Pianoteq there is a setting that maximize cpu use. Set it to Max<br />3. Use the power management to &quot;performance&quot; in Ubuntu </p><p>Also in jack there is a setting called &quot;priority&quot; if I remember. You could set it to 90</p><p>Did you try a Ubuntu Studio for this use ? It&#039;s easy and ready with low latency kernel.</p>]]></content>
			<author>
				<name><![CDATA[stamkorg]]></name>
				<uri>https://forum.modartt.com/profile.php?id=3941</uri>
			</author>
			<updated>2026-07-28T05:40:44Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=1008686#p1008686</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Linux Crackle vs Latency]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=1008685#p1008685"/>
			<content type="html"><![CDATA[<p>I&#039;ve learned a few things here, but I&#039;d like to learn more from others, so maybe this discussion will also help others. There&#039;s some discussion on reducing latency, but not so much on eliminating the crackling sound.</p><p>I&#039;ve been using Linux exclusively for over 15 years, but I have found it difficult to get a stable sound from Pianoteq 9. I am using JACK, and the issue is a crackling sound while playing. To me, this is obviously an issue with audio processing not keeping up, and possibly causing extra latency (more on this later--needs to be better understood). My computer runs an Intel i7-4770 4-core (8-thread) CPU running @ 3.4 GHz, with 16 GB RAM, on Ubuntu 24.04, and the audio chipset is on the motherboard. This machine does no other tasks except process audio, and so it&#039;s a bit surprising that more tuning is needed, since this computer is no slouch! I followed all tips in the readme file, and have configured real-time scheduling for the audio user in /etc/security/limits.conf, and I&#039;ve added my user account to the audio group. No issues there, since that fixed the error messages seen on the command line and reduced the latency to something that sounds fairly good..... but it still crackled.</p><p>After searching for better help, I found some discussion on this forum around lowering the audio buffer size from the default 256 to 128 to reduce latency (hoping this will also reduce the crackling), implying buffer size can be adjusted from within Pianoteq. This is not the case, however, since Pianoteq does not allow this value to be adjusted from within. After a lot of reading and fighting, I was able to adjust the buffer size from QjackCtl. So I adjusted the buffer size down from 256 to 128, which should reduce the latency from about 5 ms to 2.5 ms, however that resulted in a LOT more crackling. I don&#039;t really want to increase the latency, however I then increased the buffer size from the original 256 to 512, which increased the latency from 5 ms to 10 ms ... AND THAT REDUCED MOST OF THE CRACKLING! I should also note that I have the sampling rate set to 48 kHz.</p><p>So here is the first important takeaway from this discovery, which is not pointed out very well in the readme file or help on the forums: Buffer size needs to be adjusted to find a compromise between latency and crackling; a larger buffer size will reduce crackling at the expense of increased latency, and a smaller buffer size will decrease latency at the expense of more crackling. Generally, &lt;= 10 ms of latency is acceptable, but &gt; 10 ms is where it really starts to feel laggy.</p><p>So I have my buffer size set to 512, which gives me 10 ms of latency with very little crackling, but if I want to eliminate all crackling entirely, then I set the buffer size to 1024, which results in 20 ms of latency, which feels terrible.</p><p>So that brings me to my questions (for anyone who still cares). With 4 cores (8 threads) running at 3.4 GHz, I think I should be able to reduce my buffer size back to 256 with 5 ms latency without crackling.... so why is this a problem? I don&#039;t see how this software performs well on lesser CPU specs, but yet I am sure it does (too many videos out there where I hear no crackling at all). What is being over looked here? (I have also run the cpufreq-set command to put all 8 cpus into performance mode; this made no perceptible difference, as expected, since these CPUs are already powerful and doing no other tasks).</p><p>Any Ideas? for those in the know, please share your knowledge and experiences! THANKS!!</p><p>-Rob</p>]]></content>
			<author>
				<name><![CDATA[gruuvinrob]]></name>
				<uri>https://forum.modartt.com/profile.php?id=10998</uri>
			</author>
			<updated>2026-07-27T20:24:36Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=1008685#p1008685</id>
		</entry>
</feed>
