New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
One audio plugin seems to be getting low priority. #141
Comments
Have you tried contacting the makers of PianoTeq? |
Those are great idea. Will do! (I did look on the Pianoteq forum, but didn't consider asking them outright.) |
SOLVED. I just needed to disable CPU throttling for each core:
The Pianoteq Linux README says as much, for CPUs that aren't beefy. Sorry, and thanks! (Interestingly, Vitalium ran perfectly well, handling lots of voices, without doing that -- despite its apparently being a more intense algorithm.) |
Are you using musnix? That is one of the base settings: Line 85 in 6eb5c17
|
I deleted my first response to your most recent post because searching the MusNix README for "frequency" answered my question. It appears that merely enabling MusNix should "Activate the performance CPU frequency scaling governor". I'm definitely enabling MusNix. But without running If it's of interest, here's the top file in my config with the line that imports the audio configuration highlighted. Here's the audio config. |
(If you think I should be posting this somewhere else please let me know. The reason I suspect it's NixOS-specific is described in the second section below, titled
A hunch, and some things I've tried
.)The problem
Audio on my system is in general perfect, with the exception of a single sound-generating plugin called PianoTeq.
I've been using QJackCtl, a2jmidid, Ardour, various other plugins (which modify rather than generate sound), and my external soundcard (a Scarlett Focusrite) with zero problems. But recently I started using Pianoteq, controlling it with a USB MIDI keyboard. It stutters, pops, and sometimes goes siilent. When it goes silent, Pianoteq pops up a window sometimes telling me that my computer can't handle it -- but this is a decent 2017 laptop, and Pianoteq runs fine on much older hardware.
Sometimes the problem is more or less severe. Sometimes I can smash the keyboard and there are no glitches. I keep running
top
to try to find some CPU hog but there never seems to be one -- almost always, the biggest hog is ArdourGUI at around 25%. Here's a typical screenshot oftop
's output:(with everything after that using 0.0 %CPU and 0.0 %MEM).
A hunch, and some things I've tried
I suspect it's not being given high priority.
In QJackCtl under Setup, on the Settings tab, under the Advanced subtab, one can choose a priority level. I tried setting that to 90, restarted QJackCtl and everything that depends on it, and didn't notice any change.
I've found some procedural instructions online about giving higher priority to audio processes, but I suspect they're not going to work in NixOS. One, I remember, told me to edit some config file that didn't even exist on my machine. (Sorry, it's been a while, I didn't record the details.)
I've searched online and haven't found anything resembling this problem described elsewhere, even omitting Nix and NixOS.
The text was updated successfully, but these errors were encountered: