this post was submitted on 25 Dec 2024
43 points (90.6% liked)

Linux Questions

1182 readers
4 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 1 year ago
MODERATORS
 

It's been several months since I switched to Linux mint and it's been great so far. My biggest headache has been dealing with Linux audio and trying to use JACK. I have an electronic drum kit and I use Reaper for recording and using VSTs with yabridge. I managed to get this to work but it only works with ALSA. I want to have YouTube open and play along to songs and this does not work with ALSA. I've researched and experimented with JACK for way longer than I cared to. When I switch to JACK, reaper doesn't recognize my e kit, even tho ita connected with patchbay, and it also makes my default audio output a dummy output. I've gotten to the point of just going back to windows cuz this has been a nightmare. Pulse audio does what I want but the latency is too high.

Is getting a second drive with windows on it the best solution?

EDIT: I have made some progress, I switched to bitwig, uses pipewire, mapped my pads to midi notes and assigned them sounds. I got the latency good and I'm able to play with YouTube. The only problem is bitwig doesn't recognize all the zones in my cymbals. I'm not sure how to fix that, when I was using Steven slate in reaper it registered all the zones.

top 26 comments
sorted by: hot top controversial new old
[–] [email protected] 38 points 2 days ago* (last edited 2 days ago) (2 children)

Give pipewire a go. It is basically replacing pulseaudio and jack as a combined thing and is meant to not have the latency issues that pulseaudio does.

[–] [email protected] 8 points 2 days ago (1 children)

Yeah, I can second this somewhat. I haven't done anything particularly music related so my recommendation is limited here, but I was trying to get my head around the basics of Linux audio when I was troubleshooting a problem that came up when gaming and on voice chat, and pipewire was way less stressful to configure and to understand what was actually happening

[–] [email protected] 1 points 2 days ago (1 children)

The latest version of Linux mint uses pipewire by default. I double checked that it's active with a command, but reaper doesn't have an option for use pipewire in the audio settings only jack, ALSA, dummy and pulse.

[–] [email protected] 7 points 2 days ago (1 children)

You can install pipewire shims for each of those back ends

[–] [email protected] 5 points 2 days ago (1 children)

Yeah, for JACK, the package should be called pipewire-jack.

[–] [email protected] 2 points 2 days ago (2 children)

I installed that through the flatpak store, but do I need to set it up? Nothing was different after I installed it

[–] [email protected] 10 points 2 days ago (1 children)

Perhaps try installing it natively with the package manager in the OS instead of with flatpak.

I'm starting to warm up to flatpaks but the one place I think they really don't make sense is core OS stuff which I think is the case here.

I'm not saying it wouldn't work as flatpak, but I just think it would be better integrated if you install it directly in the OS, and I don't see much need for sandboxing a shim like that.

[–] [email protected] 1 points 2 days ago* (last edited 2 days ago)

It's not available on Flathub. I'm guessing, @[email protected] just used the app-store-like UI for installing software, and that thing integrates both Flatpaks and native packages. So, it's probably installed correctly already, but yeah, just run sudo apt install pipewire-jack in a terminal to be sure.

[–] [email protected] 2 points 2 days ago

Oh man, I set it up once like a year ago, and around the time I also tried to get JACK working raw, so I'm very shaky on the details, but I believe, in principle, the configuration works as if you were using JACK.

So, you'll need to tell Reaper to use JACK. I don't know anything about Reaper, but maybe something like this: https://forums.cockos.com/showthread.php?t=272361

And then, I think, you use QjackCtl to link all the inputs and outputs together.

[–] [email protected] 3 points 2 days ago (1 children)

I have wanted to do this but I don't know how. Rraper doesn't give an option for pipewire in the audio settings. Only ALSA, jack, dummy and pulse audio. I've researched it but it just gets too technical for me. I'm a Linux noob.

[–] [email protected] 3 points 2 days ago* (last edited 2 days ago)

Pipewire can talk to both pulseaudio and jack applications - it basically provides both APIs. It does not create a new one that things nee to implement. You may need to install a plugin to get it to talk with jack applications though - never needed to do that side of things myself.

[–] [email protected] 4 points 1 day ago* (last edited 1 day ago)

After fighting my Linux gaming rig for months to get it to record my hardware synthesizers' audio and MIDI properly, I gave up and dropped $600 on an M4 Mac Mini. Shit just works and now I also have VSTs working perfectly.

I felt dirty in the Apple store buying it and a little gross setting it up, but the results are exactly what I wanted and I can spend my time making music instead of reading man pages for utilities that work within the framework that supports the tools I use to make music.

[–] [email protected] 13 points 2 days ago

This old xkcd comic explains it:

(As others said give pipewire a go, it might solve a lot of the issues you got.)

[–] [email protected] 8 points 2 days ago (1 children)

Because some people want to do complex things and so created a complex solution to allow it. windows is only easier until you want one of those complex and then you a unable to do anything.

[–] [email protected] 6 points 2 days ago

Windows makes the easy things easy and the hard things impossible.

[–] [email protected] 1 points 1 day ago

This is probably not the response you want, but as a longtime linux user, i just use a standalone DAW for recording. Got the fostex model 12 a while back and love it. Easy enough to bounce stuff to the pc for automations, or i just mix mix on the board often.

Jack is cool, but i always felt it was janky, granted that was 15 years ago. Never really messed with midi much, but yeah. Linux is a complicated beast, and audio has almost always been a sore point.

[–] [email protected] 5 points 2 days ago* (last edited 2 days ago) (2 children)

For doing actual music production, yeah, switching to Windows is an option you need to consider, annoyingly.

Reaper is powerful, but getting it set up right can be an adventure. I've had better luck with Bitwig. Bitwig also happens to support Pipewire out of the box. This will relieve you from having to deal with JACK.

If you're going to be dealing with JACK, then you may want to look into Cadence from the KXStudio project. It will help you set up JACK in such a way that, for instance, PulseAudio (if you have not switched to Pipewire yet) will route its output through JACK, allowing you to hear YouTube as expected.

In all cases, I would very much avoid using ALSA directly for sound input/output. (Using it for MIDI is sometimes fine.)

So, in short, I'd start with installing Pipewire and checking out the Bitwig demo, and if that doesn't work for you, install Cadence and use it to manage JACK.

[–] [email protected] 4 points 2 days ago

I messed around with bitwig some more, I was actually able to map most of my pads to a midi note, I got the latency good and I was able to play with YouTube. This is awesome and I'm really happy to finally make progress. However... Bitwig isn't recognizing all the zones on my cymbals which makes it kind of a pain to play. I'll see if I can fix that.

[–] [email protected] 2 points 2 days ago

I have looked into bitwig but was a little overwhelmed and wasn't sure how to connect my vsts to it. And it is also paid which was another reason I didn't mess with it too much because I wasn't sure if I could get it to work. Linux mint now comes with pipewire and I used a command to make sure its active and it is.

[–] [email protected] 1 points 1 day ago

I use a totally different distro and haven't bothered to do nearly as much with audio other than installing and setting up pipewire.

That said, I found two resources that might be helpful to you.

  1. https://forums.linuxmint.com/viewtopic.php?t=402301

  2. https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Config-JACK

Good luck. It does appear some have managed to get this setup working.

[–] [email protected] 2 points 2 days ago (1 children)

In terms of using it with pipewire, this thread seems useful https://forum.cockos.com/showthread.php?t=294217

[–] [email protected] 1 points 2 days ago

Interesting, I was able to get bitwig to work so I think I'll just use that for now. I might try that tho and see if it works

[–] [email protected] 1 points 2 days ago* (last edited 1 day ago)

I found using pavucontrol fixed some of those dummy output issues.

[–] Cethin 1 points 2 days ago
[–] [email protected] 1 points 2 days ago
[–] [email protected] -1 points 2 days ago

Because you haven't learned how to configure and use it.