# Freshly installed Patchbox + MODEP sound quality issue

**URL:** <https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652>\
**Category:** MODEP\
**Created:** [May 11, 2020, 9:37am UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652 "2020-05-11T09:37:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![aFunkyBass](https://community.blokas.io/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@aFunkyBass](https://community.blokas.io/u/aFunkyBass)\
**Post date:** [May 11, 2020, 9:37am UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/1 "2020-05-11T09:37:13Z")

</div>

Hello there, I’wanted to try the new MODEP so I installed Patchbox with MODEP module but I am getting really bad sound quality on exactly the same hardware I was using with the old MODEP version on Raspbian. The only difference is the SD Card, I used a new one in order to keep the old (working) system alive. I guess this SD is not top quality and speed, but I thought to myself that this could affect just the responsiveness of the system, not the sound quality… Maybe I’m wrong.

The sound I’m getting is full of scratch and glitches, even with an empty pedalboard. No XRUN and CPU less than 10%. As I start to load plugins, the sound get worse, tend to be digitally distorted and sometimes randomly it turns to noise for no apparent reason. I can provide you with a sound sample if you wish.

I tried to adjust every possible jack settings combination, I even tried a different sound card a different USB cables, but nothing seems to fix the problem.

My Hardware:  
RPi 3B+  
Original RPi power supply 2.5A  
Audio cards: NI RigKontrol 2 / Behringer XR18 (digital mixer)  
SD: unknown brand… 🙂

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [May 11, 2020, 9:55am UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/2 "2020-05-11T09:55:48Z")

</div>

Make sure the settings in `alsamixer` are alright. Set the input gain level to minimum possible level.

Not really sure what could be so different from the other SD card you have. The speed itself should only impact system responsiveness while it is loading stuff to RAM, afterwards, it should be OK.

---

<div class="post-metadata">

**Author:** ![aFunkyBass](https://community.blokas.io/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@aFunkyBass](https://community.blokas.io/u/aFunkyBass)\
**Post date:** [May 11, 2020, 11:59am UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/3 "2020-05-11T11:59:00Z")

</div>

Hey Giedrius, thank you for your super-quick response! I’m amazed of the great job you guys do, and your care and support.

I think `alsamixer` is ok, in fact it doesn’t sound like a signal clipping or something like that, the clicks and the distorsion I hear remind me of a clock problem or frame missing if you know what I mean. Anyway, I’ll make some more tests and see if I can come up with some clue.

I’ll also try to record a video or a sound sample to give you a better idea.

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [May 11, 2020, 12:37pm UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/4 "2020-05-11T12:37:11Z")

</div>

So if you simply swap out the new SD card for the one containing old installation, there’s no noise issues? In that case I’d suspect something with audio drivers. You may give ‘stock’ kernel a try, simply run:

```auto
sudo apt install raspberrypi-linux

```

and reboot.

To install our build of the real time kernel back, run:

```auto
sudo apt install raspberrypi-linux-rt

```

and reboot.

---

<div class="post-metadata">

**Author:** ![aFunkyBass](https://community.blokas.io/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@aFunkyBass](https://community.blokas.io/u/aFunkyBass)\
**Post date:** [May 11, 2020, 12:46pm UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/5 "2020-05-11T12:46:25Z")

</div>

It complains about not finding the `raspberrypi-linux` package…

Probably you meant `raspberrypi-kernel` and `raspberrypi-kernel-rt`… Is that correct? 😉

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [May 11, 2020, 1:16pm UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/6 "2020-05-11T13:16:35Z")

</div>

Yes, correct 🙂

---

<div class="post-metadata">

**Author:** ![aFunkyBass](https://community.blokas.io/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@aFunkyBass](https://community.blokas.io/u/aFunkyBass)\
**Post date:** [May 11, 2020, 3:56pm UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/7 "2020-05-11T15:56:33Z")

</div>

I tried the stock kernel and at first I thought it worked better, but at some point the sound the sound was screwed up again. I upload a little sample in FLAC format.

Jack Settings: 44100 - 128 - 2  
Audio Card: RigKontrol2

[Modep.zip](https://community.blokas.io/uploads/short-url/gatKSXevB3Df85FxySQSqLLaM8p.zip) (686.7 KB)

---

<div class="post-metadata">

**Author:** ![aFunkyBass](https://community.blokas.io/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@aFunkyBass](https://community.blokas.io/u/aFunkyBass)\
**Post date:** [May 11, 2020, 3:58pm UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/8 "2020-05-11T15:58:31Z")

</div>

“Help me Giedrius you’re my only hope” 🤣

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [May 18, 2020, 6:30am UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/9 "2020-05-18T06:30:14Z")

</div>

> [@aFunkyBass](#):
>
> Jack Settings: 44100 - 128 - 2

128 and 2 are quite low values for USB sound cards, you should try slightly larger and safer values like 256 - 2 or 128 - 3.

There’s also some information on the internet on how to better configure USB audio interfaces for Raspberry Pi, you could try going through them and see if it helps. Maybe you had done some such configuration on the older installation?

---

<div class="post-metadata">

**Author:** ![aFunkyBass](https://community.blokas.io/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@aFunkyBass](https://community.blokas.io/u/aFunkyBass)\
**Post date:** [May 19, 2020, 9:29pm UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/10 "2020-05-19T21:29:35Z")

</div>

Thank you Giedrius, I actually tried every possible combination, including 1024 - 6 (even it’s not suitable for live performing, but just to see what I got)  
Sometimes it works sometimes it doesn’t, it’s really unpredictable.

I’ll keep trying to figure out what’s going on.

---

<div class="post-metadata">

**Author:** ![jtemple967](https://community.blokas.io/user_avatar/community.blokas.io/jtemple967/32/5555_2.png) [@jtemple967](https://community.blokas.io/u/jtemple967)\
**Post date:** [July 2, 2021, 2:51am UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/11 "2021-07-02T02:51:47Z")

</div>

What settings did you wind up using? I can’t get jack to restart with my RK2

---

<div class="post-metadata">

**Author:** ![aFunkyBass](https://community.blokas.io/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@aFunkyBass](https://community.blokas.io/u/aFunkyBass)\
**Post date:** [July 2, 2021, 8:30am UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/12 "2021-07-02T08:30:27Z")

</div>

Hey @jtemple967 I switched to a RPi4 and I ended up using 48k - 128 - 2. I use it in live performances on a regular basis with no issues.

If you have a RPi4, make sure to connect it to a USB 2 port (the black ones). Have you tried to connect your RK2 to a different host running jack/linux?

---

<div class="post-metadata">

**Author:** ![jtemple967](https://community.blokas.io/user_avatar/community.blokas.io/jtemple967/32/5555_2.png) [@jtemple967](https://community.blokas.io/u/jtemple967)\
**Post date:** [July 2, 2021, 3:29pm UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/13 "2021-07-02T15:29:59Z")

</div>

@aFunkyBass I’m using a RPi4 as well and indeed the problem was I plugged the RK2 into the USB 3.0 port. Duh!

BTW, I’m the one who commented on your YouTube video recently.

---

<div class="post-metadata">

**Author:** ![aFunkyBass](https://community.blokas.io/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@aFunkyBass](https://community.blokas.io/u/aFunkyBass)\
**Post date:** [July 3, 2021, 12:24am UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/14 "2021-07-03T00:24:04Z")

</div>

…TheNotTakenSeriously? 🙂

---

<div class="post-metadata">

**Author:** ![jtemple967](https://community.blokas.io/user_avatar/community.blokas.io/jtemple967/32/5555_2.png) [@jtemple967](https://community.blokas.io/u/jtemple967)\
**Post date:** [July 3, 2021, 12:40am UTC](https://community.blokas.io/t/freshly-installed-patchbox-modep-sound-quality-issue/1652/15 "2021-07-03T00:40:55Z")

</div>

Yep, that’s me.
