Unwanted distortion in Reaper

Support & discussion regarding DAWs and MIDI sequencers.

Moderators: MattKingUSA, khz

Post Reply
IllustratorPascal
Established Member
Posts: 28
Joined: Sat Oct 06, 2018 8:51 am

Unwanted distortion in Reaper

Post by IllustratorPascal »

Hellol,
I have installed Reaper on my computer and it works.
The system is as follows
- Linux Mint 18.3 Cinnamon 64-bit
- AMD Ryzen 7 - 1700X eight core
- 32 GB ram
- Nvidia graphic card 1060

I have my external audio mixer connected to a Behringer U-control UCA 202 audio capture device that convert analog signals to usb.
The Behringer U-control also has an optical output that is connected to the optical input of my active speaker system (Logitach Z5500).

I started Jack with the QJack application.

When I produce sounds with Reaper it sounds very distorted in Linux. I also have Reaper for Windows on the same computer (dual boot) and there everything sounds fine)

The distortion in Linux is for:
- software instruments
- external hardware instruments
- recordings that I drag and drop in Reaper
So actually for everything

I don't have added a distortion plugin so that's not the case.
There also nothing clipping. Levels in the mixer looks fine.
The sound of the distortion sounds a little bit like there's a lo-fi plug in added.

Does anyone have an idea what this can be? I can't figure it out.
User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: Unwanted distortion in Reaper

Post by lilith »

Please post your Jack settings or make a screenshot, i.e. sample rate, buffer size, periods / buffer. What happens when you switch to ALSA instead of Jack in Reaper? Do you get good sound from other applications?
IllustratorPascal
Established Member
Posts: 28
Joined: Sat Oct 06, 2018 8:51 am

Re: Unwanted distortion in Reaper

Post by IllustratorPascal »

In the attachment the Jack screenshot.
When I choose ALSA in Reaper I have an error message - see attachment - and no sound.
Attachments
Jack screenshot.png
Jack screenshot.png (37.12 KiB) Viewed 1506 times
Error message Alsa.png
Error message Alsa.png (8.88 KiB) Viewed 1506 times
User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: Unwanted distortion in Reaper

Post by lilith »

Try setting the buffer size (= frames/period) to 1024 first and check if the sound changes. You have to stop and restart Jack after the change. If Reaper can't use ALSA maybe your soundcard is occupied by an other application. Do you use PulseAudio also?

Is anything written in the log window of Jack?
IllustratorPascal
Established Member
Posts: 28
Joined: Sat Oct 06, 2018 8:51 am

Re: Unwanted distortion in Reaper

Post by IllustratorPascal »

Yes! It works. I changed the buffer size from 64 to 1024 and then the sound is fine like it shoud be :D
I don't know what PulseAudio is, but when Jack is started I noticed that a Youtube video stopped working. When I stop Jack the video works again.
Luckily I don't need to watch video's when I record audio in Reaper.
User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: Unwanted distortion in Reaper

Post by lilith »

Great, if you need less latency you can go down again to 512 and 256 until you run into problems like dropouts (xruns). With bridged pulseaudio or bridged alsa it's possible to have sound from Reaper and e.g. youtube at the same time. So, in case you need this it's possible with some tweaking.
IllustratorPascal
Established Member
Posts: 28
Joined: Sat Oct 06, 2018 8:51 am

Re: Unwanted distortion in Reaper

Post by IllustratorPascal »

Thank you very much.
User avatar
bluebell
Established Member
Posts: 1924
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 112 times
Been thanked: 119 times

Re: Unwanted distortion in Reaper

Post by bluebell »

lilith wrote:Try setting the buffer size (= frames/period) to 1024 first and check if the sound changes. You have to stop and restart Jack after the change.
Jackd's buffer size can be changed on the fly, see http://marzen.de/Holger/jack_bufsize/

But some client programs have to be restarted after a change.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: Unwanted distortion in Reaper

Post by khz »

Code: Select all

LM@LAW ~ $ jack_bufsize 1024
96/128/256/512/1024/2048/4096 :wink:
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
User avatar
AlexTheBassist
Established Member
Posts: 353
Joined: Mon May 19, 2014 3:44 am
Location: Russia, Moscow
Been thanked: 1 time

Re: Unwanted distortion in Reaper

Post by AlexTheBassist »

lilith wrote:Great, if you need less latency you can go down again to 512 and 256 until you run into problems like dropouts (xruns).
This is unplayable, because a total roundtrip in this case will be above 30 ms, which is noticed even by non-musicians. However, good sound cards like Presonus ones can be playable with 256 samples/buffer also, but only in case USB works fine with 2 periods per capture.
Being creative does not imply being lazy, stupid, or illiterate.

Working in Harrison Mixbus and Ardour on KDE Neon + KXStudio.
User avatar
AlexTheBassist
Established Member
Posts: 353
Joined: Mon May 19, 2014 3:44 am
Location: Russia, Moscow
Been thanked: 1 time

Re: Unwanted distortion in Reaper

Post by AlexTheBassist »

khz wrote:

Code: Select all

LM@LAW ~ $ jack_bufsize 1024
96/128/256/512/1024/2048/4096 :wink:
96 is unsupported by some convolution software, like JConvolver, which can be found in Guitarix. It's better to use power of 2 buffer sizes to get more stable performance.
Being creative does not imply being lazy, stupid, or illiterate.

Working in Harrison Mixbus and Ardour on KDE Neon + KXStudio.
User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: Unwanted distortion in Reaper

Post by lilith »

AlexTheBassist wrote:
lilith wrote:Great, if you need less latency you can go down again to 512 and 256 until you run into problems like dropouts (xruns).
This is unplayable, because a total roundtrip in this case will be above 30 ms, which is noticed even by non-musicians. However, good sound cards like Presonus ones can be playable with 256 samples/buffer also, but only in case USB works fine with 2 periods per capture.
For me everything <= 10ms is ok.
User avatar
AlexTheBassist
Established Member
Posts: 353
Joined: Mon May 19, 2014 3:44 am
Location: Russia, Moscow
Been thanked: 1 time

Re: Unwanted distortion in Reaper

Post by AlexTheBassist »

lilith wrote:For me everything <= 10ms is ok.
A total roundtrip is always longer than samplerate / (buffersize * n). There's an additional delay in the soundcard itself (that's why I love Presonus, they add up only 1-2 ms), there's a transfer delay on USB bus. To get to real 10< ms, you need to use buffer size of 64 or even 32, depending on your hardware.
Being creative does not imply being lazy, stupid, or illiterate.

Working in Harrison Mixbus and Ardour on KDE Neon + KXStudio.
Post Reply