Old 09-27-2021, 12:35 PM   #1
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default MIDI input is glitchy?

Using both a DIN input for one controller (via the AUDIO i/f unit) and USB input for the second, and randomly (but often enough to be noticeable and annoying) notes will stick, and/or not actually sound. The controllers are fine and pretty much new.

I am thinking this may be a system issue and not Reaper, but is there a better way of MIDI input into Reaper that is rock solid ALL the time? Or should I be looking deeper into the Linux MIDI control system?

Thanks.
pax-eterna is offline   Reply With Quote
Old 09-27-2021, 01:10 PM   #2
The Kid
Human being with feelings
 
Join Date: Jun 2021
Posts: 1,093
Default

Here on Mint 20.1 Mate Reaper's MIDI is rock solid (USB MIDI)
The Kid is offline   Reply With Quote
Old 09-27-2021, 04:38 PM   #3
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

Thanks. This is Manjaro (pahvo) and I've a feeling something is going on in background processes.

It also sometimes disconnects the USB audio, requiring me to either remove and reinsert the USB plug or reboot.

I'm using the real-time kernel, so maybe a switch to the latest "normal" kernel might
be a solution??

EDIT: I THOUGHT I was using the RT kernel, but turns out I wasn't. I am now so I'll test and see if it changes anything

Last edited by pax-eterna; 09-27-2021 at 05:05 PM.
pax-eterna is offline   Reply With Quote
Old 09-27-2021, 05:12 PM   #4
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

Nope, still doing it
pax-eterna is offline   Reply With Quote
Old 09-27-2021, 10:36 PM   #5
The Kid
Human being with feelings
 
Join Date: Jun 2021
Posts: 1,093
Default

FWIW I use the low latency kernel, not the RT one.
The Kid is offline   Reply With Quote
Old 09-28-2021, 10:28 AM   #6
PMan
Human being with feelings
 
Join Date: Aug 2019
Posts: 656
Default

I get MIDI in from both my USB M-Audio keyboard, and my USB Komplete Audio 6 audio interface. Never had any problems.

I'm on Ubuntu, but I don't think it has anything to do with your distro. I think the Manjaro wizards can help you sort it out.

You might want to do a screenshot of your MIDI/Audio settings. That would help the Manjaro peeps troubleshoot for you.

PMan is offline   Reply With Quote
Old 09-28-2021, 10:30 AM   #7
JamesPeters
Human being with feelings
 
Join Date: Aug 2011
Location: Near a big lake
Posts: 3,943
Default

Is usb_autosuspend disabled?
JamesPeters is offline   Reply With Quote
Old 09-28-2021, 12:52 PM   #8
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

Quote:
Originally Posted by JamesPeters View Post
Is usb_autosuspend disabled?
I did try to hunt around for that James but couldn't find it...unless it's a CLI command only?
pax-eterna is offline   Reply With Quote
Old 09-28-2021, 12:54 PM   #9
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

Quote:
Originally Posted by The Kid View Post
FWIW I use the low latency kernel, not the RT one.
Which one is the Low Latency one? None area actually marked as such, well that I can see anyway.
pax-eterna is offline   Reply With Quote
Old 09-28-2021, 12:55 PM   #10
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

Quote:
Originally Posted by PMan View Post
I get MIDI in from both my USB M-Audio keyboard, and my USB Komplete Audio 6 audio interface. Never had any problems.

I'm on Ubuntu, but I don't think it has anything to do with your distro. I think the Manjaro wizards can help you sort it out.

You might want to do a screenshot of your MIDI/Audio settings. That would help the Manjaro peeps troubleshoot for you.

From where, CLI or somewhere else?
pax-eterna is offline   Reply With Quote
Old 09-28-2021, 01:00 PM   #11
PMan
Human being with feelings
 
Join Date: Aug 2019
Posts: 656
Default

The Reaper prefs.
PMan is offline   Reply With Quote
Old 09-28-2021, 03:01 PM   #12
JamesPeters
Human being with feelings
 
Join Date: Aug 2011
Location: Near a big lake
Posts: 3,943
Default

Quote:
Originally Posted by pax-eterna View Post
I did try to hunt around for that James but couldn't find it...unless it's a CLI command only?
I've mentioned a number of times (including here) that there are only a few steps to making Linux work as well as Windows for DAWs.

1) realtime or low latency kernel (Manjaro's is low latency by default, and I think that's becoming more standard for other distros as time goes on)

2) turn usb_autosuspend off for your USB audio (or MIDI) devices

3) set your CPU frequency governor to performance.

(Plus one specific thing in Manjaro to enable fstrim.timer, for SSDs.)

There are more potential steps to help, but those 3 are the most important for basic solid excellent performance at low latency. From there it depends on what else you're doing (using Windows VST etc.)

You'll notice those 3 steps are basically what you'd do in any other OS to ensure solid performance. Unlike Windows though, there's no specific "power setting" in "control panel" to change, so you're left to do this sort of thing whichever way makes sense to you.

How you choose to disable usb_autosuspend is up to you. I described it in this post to you, and you told me you were looking through the TLPUI options at the time, so I assumed you had done that.
JamesPeters is offline   Reply With Quote
Old 09-28-2021, 03:36 PM   #13
audiojunkie
Human being with feelings
 
audiojunkie's Avatar
 
Join Date: Nov 2011
Posts: 973
Default

Quote:
Originally Posted by JamesPeters View Post
I've mentioned a number of times (including here) that there are only a few steps to making Linux work as well as Windows for DAWs.

1) realtime or low latency kernel (Manjaro's is low latency by default, and I think that's becoming more standard for other distros as time goes on)

2) turn usb_autosuspend off for your USB audio (or MIDI) devices

3) set your CPU frequency governor to performance.

(Plus one specific thing in Manjaro to enable fstrim.timer, for SSDs.)

There are more potential steps to help, but those 3 are the most important for basic solid excellent performance at low latency. From there it depends on what else you're doing (using Windows VST etc.)

You'll notice those 3 steps are basically what you'd do in any other OS to ensure solid performance. Unlike Windows though, there's no specific "power setting" in "control panel" to change, so you're left to do this sort of thing whichever way makes sense to you.

How you choose to disable usb_autosuspend is up to you. I described it in this post to you, and you told me you were looking through the TLPUI options at the time, so I assumed you had done that.
Note: Gnome 41 should be hitting distro packages soon, and it WILL have a built in performance setting available from the main screen. :-)

So James, you don't have an audio group configured or optimized or anything like that right now?
audiojunkie is offline   Reply With Quote
Old 09-28-2021, 03:48 PM   #14
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

Quote:
Originally Posted by JamesPeters View Post

How you choose to disable usb_autosuspend is up to you. I described it in this post to you, and you told me you were looking through the TLPUI options at the time, so I assumed you had done that.
That was under an AVL setup thread, this is Manjaro - just assumed it would be different somehow...

Okay just installed those - the TLP is pretty self-explanatory.

With the CPUPower I have 7 listed. Should I apply the Performance setting to all 7? All are currently set to Powersave

Last edited by pax-eterna; 09-28-2021 at 04:03 PM.
pax-eterna is offline   Reply With Quote
Old 09-28-2021, 04:05 PM   #15
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

and then there is this: https://youtu.be/fEduGnD6ZKQ extolling the virtues of JACK.

I've only used JACK in it's basic form to get the Bluetooth MIDI running, but this guy is recommending it be used as the "overarching" operation, IF I've understood it correctly
pax-eterna is offline   Reply With Quote
Old 09-28-2021, 05:03 PM   #16
JamesPeters
Human being with feelings
 
Join Date: Aug 2011
Location: Near a big lake
Posts: 3,943
Default

Quote:
Originally Posted by pax-eterna View Post
That was under an AVL setup thread, this is Manjaro - just assumed it would be different somehow...
All distros need those steps. I've also posted it on many other threads by this point (when discussing other distros).

Even if you thought usb_autosuspend might be disabled by default for one particular distro, it would've been worth checking your distro's default setting. If AVL didn't have that disabled, I wouldn't expect a "non-audio-specific distro" to have it disabled by default. If anything I'd have expected the opposite. AVL should probably have that option disabled by default (IMO), knowing how important this is for preventing issues with USB audio/MIDI devices "going to sleep" during low latency use. "General use" distros which may not even have a low latency kernel by default--I wouldn't expect they'd disable usb_autosuspend by default. Default settings are usually about preserving energy (for laptop use for instance).

The first link was a thread in which Beth Harmon made a Github link with every bit of possible configuration info she could gather about configuring Manjaro, so that's why I linked that first. You should read that especially if you plan to use Windows VST and/or Jack (etc.)

Quote:
Originally Posted by pax-eterna View Post
With the CPUPower I have 7 listed. Should I apply the Performance setting to all 7? All are currently set to Powersave
If you want the most stable performance, yes, set the whole CPU to be the fastest. That's what you'd be doing in Windows.

This isn't as important to this specific issue though, from what I can tell. You were letting your USB "sleep", which is a no-no for USB audio/MIDI devices working at low latency.

I don't use Jack. I have no reason to use it. ALSA is the most direct, lowest-latency option and always will be (until something replaces ALSA, which is the lowest-level audio system). I don't connect multiple apps together. I do all DAW stuff in Reaper itself, like I did in Windows and OSX. Jack isn't needed for that at all.

Quote:
Originally Posted by audiojunkie View Post
Note: Gnome 41 should be hitting distro packages soon, and it WILL have a built in performance setting available from the main screen. :-)
Are they finally going to add any other useful settings that don't require third-party workarounds and extensions in hackey ways that reset themselves all the time?

I want to like Gnome, but I just can't. Yet, anyway. It's like it's trying to be KDE, but requires so many extra things to configure it for anything other than the default settings (some of which are questionable choices). It works very smoothly for its window animations and workspace switching, which I do like about it.

Quote:
Originally Posted by audiojunkie View Post
So James, you don't have an audio group configured or optimized or anything like that right now?
There's a realtime group, and my user is added to it, but I don't notice a difference. I don't use Windows VST anymore though, or standalone synths etc., so it may not matter for me.

Last edited by JamesPeters; 09-28-2021 at 05:12 PM.
JamesPeters is offline   Reply With Quote
Old 09-28-2021, 05:40 PM   #17
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

@JamesPeters thanks James
pax-eterna is offline   Reply With Quote
Old 09-28-2021, 09:32 PM   #18
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

Quote:
Originally Posted by JamesPeters View Post
All distros need those steps. I've also posted it on many other threads by this point (when discussing other distros).
Need to follow up here as I set the Autosuspend to off, clicked save at the top, entered the password, and then the AutoSuspend just turned back on again (went green)? Like the saving did nothing at all.
pax-eterna is offline   Reply With Quote
Old 09-28-2021, 09:36 PM   #19
JamesPeters
Human being with feelings
 
Join Date: Aug 2011
Location: Near a big lake
Posts: 3,943
Default

Try it again. Reboot or something. I dunno. It's worked for me in every distro.
JamesPeters is offline   Reply With Quote
Old 09-28-2021, 10:37 PM   #20
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

Quote:
Originally Posted by JamesPeters View Post
Try it again. Reboot or something. I dunno. It's worked for me in every distro.
Thanks - yeah I tried a reboot, same same.

What I found is I need to leave the green tick box (left set to on) but have the slider to the right to off (red) then save it. Seems if I turn the green tick box off the save doesn't work.

Anyhoo all good now
pax-eterna is offline   Reply With Quote
Old 09-29-2021, 08:40 AM   #21
JamesPeters
Human being with feelings
 
Join Date: Aug 2011
Location: Near a big lake
Posts: 3,943
Default

Yeah, in that other thread (which I linked above) I told you to move the slider on the right. I assumed you did that.
JamesPeters is offline   Reply With Quote
Old 09-29-2021, 12:33 PM   #22
pax-eterna
Human being with feelings
 
Join Date: Jun 2018
Posts: 854
Default

Quote:
Originally Posted by JamesPeters View Post
Yeah, in that other thread (which I linked above) I told you to move the slider on the right. I assumed you did that.
haha, yeah I moved the slider AND turned off the little green arrow circle on the left. As I wrote I found you ONLY need to activate the slider
pax-eterna is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.