Raspberry Pi - Current Status?

Discussion of all things Raspberry Pi / Raspberry Pi 2 related

Moderators: MattKingUSA, khz

Post Reply
cpsmusic
Established Member
Posts: 5
Joined: Tue Oct 13, 2015 12:23 am

Raspberry Pi - Current Status?

Post by cpsmusic »

Hi Folks,

I'm a guitarist and music producer, and I've also worked in computer programming.

I'm currently developing some real-time guitar effects using Csound. I notice that there have been some attempts to use the Raspberry Pi for real-time effects processing and thought that it might be a good final platform for studio work, but that it has some problems due to latency and also that the built-in audio is only 11-bit.

Just wondering if that is still the case?

Also, I've come across a couple of dedicated audio I/O boards (Wolfson, Cirrus Logic) but they don't mention latency. Does anyone know if theses are any better?

Finally, why can't the audio latency be reduced - is it a hardware issue or OS/software issue?

Cheers,

Chris
User avatar
English Guy
Established Member
Posts: 525
Joined: Wed Oct 17, 2012 7:28 pm
Location: England
Has thanked: 8 times
Been thanked: 7 times

Re: Raspberry Pi - Current Status?

Post by English Guy »

I would like to know that as well. This looks like it may be of interest:

https://www.hifiberry.com/dacplus/

or even

https://www.adafruit.com/products/1761
asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: Raspberry Pi - Current Status?

Post by asbak »

Just out of curiosity, would a Behringer UCA202 USB audio interface + DI, or something similar like the UCG102, be capable of low latency audio on a Rasp-Pi? Because if yes, these are pretty cheap and reasonably usable quality audio interfaces.

I imagine latency problems are resolvable, more info in the autostatic urls.

Some more info on it here.
http://wiki.linuxaudio.org/wiki/raspberrypi
http://autostatic.com/2015/04/18/raspbe ... revisited/
http://autostatic.com/2015/09/13/buildi ... pberry-pi/
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
Broomy
Established Member
Posts: 163
Joined: Sun Apr 28, 2013 5:36 am
Been thanked: 1 time

Re: Raspberry Pi - Current Status?

Post by Broomy »

Interesting thread and welcome to the forum Chris.

From what I know you'll need some kind usb soundcard to convert your signal, then you have to get your device running with some kind of os, Debian is commonly used. You've probably already checked this article.
Have you considered / checked Guitarix, that might be of interest to you?
on real time guitar effect on RPi

Hans
The Quintar Project:
- Popularizing an all fifths tuning for guitarlike instruments
- Youtube: Playing and Building
- Files: Sourceforge
User avatar
autostatic
Established Member
Posts: 1994
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Has thanked: 32 times
Been thanked: 104 times
Contact:

Re: Raspberry Pi - Current Status?

Post by autostatic »

Hello Chris,
cpsmusic wrote:I'm a guitarist and music producer, and I've also worked in computer programming.

I'm currently developing some real-time guitar effects using Csound. I notice that there have been some attempts to use the Raspberry Pi for real-time effects processing and thought that it might be a good final platform for studio work, but that it has some problems due to latency and also that the built-in audio is only 11-bit.

Just wondering if that is still the case?
Yes it is.
cpsmusic wrote:Also, I've come across a couple of dedicated audio I/O boards (Wolfson, Cirrus Logic) but they don't mention latency. Does anyone know if theses are any better?
USB audio interfaces add one period of latency and the Cirrus and Wolfson cards don't show this behavior. So in that regard the dedicated audio boards perform better. CPU-wise there's not much difference so you'll hit about the same limits with either USB or dedicated boards. The dedicated audio boards are harder to set up though, most USB devices are plug and play. USB audio does suffer from the poor USB implementation of the RPi, it takes quite some tweaking to get it to run at lower latencies. USB is much cheaper though, you can get decent PCM2704 based interfaces for like under $10.
cpsmusic wrote:Finally, why can't the audio latency be reduced - is it a hardware issue or OS/software issue?
Hardware. Both I2C (dedicated audio devices) and USB consume precious CPU cycles on the Rapsberry Pi. For USB add the poor USB implementation. Really, the RPi isn't made for low latency audio but you can get a long way. You might want to check my personal experiences and findings on my blog at https://autostatic.com/

Jeremy
User avatar
autostatic
Established Member
Posts: 1994
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Has thanked: 32 times
Been thanked: 104 times
Contact:

Re: Raspberry Pi - Current Status?

Post by autostatic »

asbak wrote:Just out of curiosity, would a Behringer UCA202 USB audio interface + DI, or something similar like the UCG102, be capable of low latency audio on a Rasp-Pi? Because if yes, these are pretty cheap and reasonably usable quality audio interfaces.
Yes you can achieve lower latencies with those devices. I've got a UCG102 myself and tested it succesfully with the RPi.

Jeremy
asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: Raspberry Pi - Current Status?

Post by asbak »

Many thanks for this information!
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
Post Reply