USB guitar cable + Jack on the Pi

Discussion of all things Raspberry Pi / Raspberry Pi 2 related

Moderators: khz, MattKingUSA

User avatar
flappix
Established Member
Posts: 27
Joined: Thu Jan 19, 2017 10:39 pm
Location: Germany

USB guitar cable + Jack on the Pi

Postby flappix » Sat May 13, 2017 12:19 pm

Hi,
I have a cheap USB guitar cable like this one Image
It works very well on my x86 pc and laptop but connected to the Pi, the sound is very weak (low amplitude) and stuttering if I'm using Jackd.
If I only record the sound via arecord (no jack involved), the sound is okay, too.

I've tried a lot of different parameters for jackd, with these ones I get the best result (but even too bad): jackd -r 48000 -n 4 -p 1024

Would be very happy if there are any ideas what I could try to get the cable working with jack :)
Regards,
flappix

asbak
Established Member
Posts: 647
Joined: Thu Sep 11, 2014 3:04 pm

Re: USB guitar cable + Jack on the Pi

Postby asbak » Sat May 13, 2017 1:38 pm

Try -n3 -p256 -r48000, however, that cable isn't great.
I couldn't get it (assume yours also uses the cmedia chip?) to work reliably at frames of 256 or less in jack, it would work OK for a while and then start buzzing like mad. I don't think it's worth wasting time on.

Something like an Alesis Guitar Link or Behringer UCG102 should work better but I haven't tested either of them.

User avatar
flappix
Established Member
Posts: 27
Joined: Thu Jan 19, 2017 10:39 pm
Location: Germany

Re: USB guitar cable + Jack on the Pi

Postby flappix » Sat May 13, 2017 4:07 pm

Hi,
thanks for your reply. Unfortunately, these settings are working very bad for me, guitar sounds like a robot.
Yes, I'm using the C-Media chip.
I'm wondering why the device is working well on a non-arm pc (and good enough on arm with pure alsa). So I guess, there have to be an issue with jack?

User avatar
flappix
Established Member
Posts: 27
Joined: Thu Jan 19, 2017 10:39 pm
Location: Germany

Re: USB guitar cable + Jack on the Pi

Postby flappix » Mon May 15, 2017 12:29 am

I've got a good improvement by self-compiling jack-1.9.8 (used 1.9.10 before) and applying the autostatic patch (little modifications needed).
Quality is not as good as at the pc, but the volume is on a good level now, there are no buzzes and less noise.
All in all quite acceptable.

User avatar
flappix
Established Member
Posts: 27
Joined: Thu Jan 19, 2017 10:39 pm
Location: Germany

Re: USB guitar cable + Jack on the Pi

Postby flappix » Sat Jun 10, 2017 7:13 pm

The whole problem was caused by the usage of alsa_in.
I now have a simple usb-soundcard (cmedia chip, too) with mic input and speaker output using both as default. Now I get the same clear sound as by the x86 pc with -p 128 -n 3


Return to “Raspberry Pi”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest