<?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-07-27T20:24:36Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.modartt.com/viewtopic.php?id=13345</id>
		<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>
