[Csnd] Problem in Raspberry Pi

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] Problem in Raspberry Pi

Ehsan Ebrahimi
dear all
i have csound on raspberry pi (raspbian)

I always get message

Warning: buffer overrun in real-time audio input
Warning: Buffer underrun in real-time audio input

in
<CsOptions>

-odac: hw1,0     -adc: hw: 1    -b512   -B1024

<CsOptions>


sr = 44100
ksmps = 128
nchnls = 2

Many Thanks
Ehsan
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Problem in Raspberry Pi

Dave Seidel
Hi Ehsan,

I have been working a lot with a Raspberry Pi 3 doing realtime Csound. My current buffer settings are "-b 128 -B 2048". I don't know if this is optimal, but it is working pretty well with a couple of apps; one uses MIDI input and the other uses OSC input. I'm not currently using audio input, so this could be a difference. Also I don't know which Raspberry Pi model you are using, so my settings may or may not be useful for you. There are many variables, including how your orchestra code is written and how the system itself is tuned (or not) for performance. The best advice I can offer is to experiment with different settings, and also look for opportunities to make your Csound code more efficient.

- Dave

On Sun, Apr 8, 2018 at 2:37 PM, Ehsan Ebrahimi <[hidden email]> wrote:
dear all
i have csound on raspberry pi (raspbian)

I always get message

Warning: buffer overrun in real-time audio input
Warning: Buffer underrun in real-time audio input

in
<CsOptions>

-odac: hw1,0     -adc: hw: 1    -b512   -B1024

<CsOptions>


sr = 44100
ksmps = 128
nchnls = 2

Many Thanks
Ehsan
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Problem in Raspberry Pi

Victor Lazzarini-2
Also checked that your CPU is not maxed out. No buffer settings will fix that; you will need to try and run a simpler code or at a lower SR.

The top command can give your cpu usage.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 8 Apr 2018, at 20:08, Dave Seidel <[hidden email]> wrote:

Hi Ehsan,

I have been working a lot with a Raspberry Pi 3 doing realtime Csound. My current buffer settings are "-b 128 -B 2048". I don't know if this is optimal, but it is working pretty well with a couple of apps; one uses MIDI input and the other uses OSC input. I'm not currently using audio input, so this could be a difference. Also I don't know which Raspberry Pi model you are using, so my settings may or may not be useful for you. There are many variables, including how your orchestra code is written and how the system itself is tuned (or not) for performance. The best advice I can offer is to experiment with different settings, and also look for opportunities to make your Csound code more efficient.

- Dave

On Sun, Apr 8, 2018 at 2:37 PM, Ehsan Ebrahimi <[hidden email]> wrote:
dear all
i have csound on raspberry pi (raspbian)

I always get message

Warning: buffer overrun in real-time audio input
Warning: Buffer underrun in real-time audio input

in
<CsOptions>

-odac: hw1,0     -adc: hw: 1    -b512   -B1024

<CsOptions>


sr = 44100
ksmps = 128
nchnls = 2

Many Thanks
Ehsan
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Problem in Raspberry Pi

Dave Seidel
Yes, good advice.

On Sun, Apr 8, 2018 at 3:21 PM, Victor Lazzarini <[hidden email]> wrote:
Also checked that your CPU is not maxed out. No buffer settings will fix that; you will need to try and run a simpler code or at a lower SR.

The top command can give your cpu usage.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 8 Apr 2018, at 20:08, Dave Seidel <[hidden email]> wrote:

Hi Ehsan,

I have been working a lot with a Raspberry Pi 3 doing realtime Csound. My current buffer settings are "-b 128 -B 2048". I don't know if this is optimal, but it is working pretty well with a couple of apps; one uses MIDI input and the other uses OSC input. I'm not currently using audio input, so this could be a difference. Also I don't know which Raspberry Pi model you are using, so my settings may or may not be useful for you. There are many variables, including how your orchestra code is written and how the system itself is tuned (or not) for performance. The best advice I can offer is to experiment with different settings, and also look for opportunities to make your Csound code more efficient.

- Dave

On Sun, Apr 8, 2018 at 2:37 PM, Ehsan Ebrahimi <[hidden email]> wrote:
dear all
i have csound on raspberry pi (raspbian)

I always get message

Warning: buffer overrun in real-time audio input
Warning: Buffer underrun in real-time audio input

in
<CsOptions>

-odac: hw1,0     -adc: hw: 1    -b512   -B1024

<CsOptions>


sr = 44100
ksmps = 128
nchnls = 2

Many Thanks
Ehsan
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Problem in Raspberry Pi

Ehsan Ebrahimi
dear Dave
I have raspberry pi 3
I have set -b 128 -B2048. now is better. I have to try if there is no message yet

Dear Victor,

I tried setting sr to 22050 but it did not change.
a lot happens in my instrument and I have to do less

Thanks
Ehsan


On Sunday, April 8, 2018, 9:27:30 PM GMT+2, Dave Seidel <[hidden email]> wrote:


Yes, good advice.

On Sun, Apr 8, 2018 at 3:21 PM, Victor Lazzarini <[hidden email]> wrote:
Also checked that your CPU is not maxed out. No buffer settings will fix that; you will need to try and run a simpler code or at a lower SR.

The top command can give your cpu usage.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 8 Apr 2018, at 20:08, Dave Seidel <[hidden email]> wrote:

Hi Ehsan,

I have been working a lot with a Raspberry Pi 3 doing realtime Csound. My current buffer settings are "-b 128 -B 2048". I don't know if this is optimal, but it is working pretty well with a couple of apps; one uses MIDI input and the other uses OSC input. I'm not currently using audio input, so this could be a difference. Also I don't know which Raspberry Pi model you are using, so my settings may or may not be useful for you. There are many variables, including how your orchestra code is written and how the system itself is tuned (or not) for performance. The best advice I can offer is to experiment with different settings, and also look for opportunities to make your Csound code more efficient.

- Dave

On Sun, Apr 8, 2018 at 2:37 PM, Ehsan Ebrahimi <[hidden email]> wrote:
dear all
i have csound on raspberry pi (raspbian)

I always get message

Warning: buffer overrun in real-time audio input
Warning: Buffer underrun in real-time audio input

in
<CsOptions>

-odac: hw1,0     -adc: hw: 1    -b512   -B1024

<CsOptions>


sr = 44100
ksmps = 128
nchnls = 2

Many Thanks
Ehsan
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi -bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csou nd/issues Discussions of bugs and features can be posted here



--
Csound mailing list [hidden email] https://listserv.heanet.ie/ cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/ csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/ cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/ csound/issues Discussions of bugs and features can be posted here



--
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Problem in Raspberry Pi

Bernt Isak Wærstad
Which soundcard are you using?

On Sun, 8 Apr 2018 at 22:03, Ehsan Ebrahimi <[hidden email]> wrote:
dear Dave
I have raspberry pi 3
I have set -b 128 -B2048. now is better. I have to try if there is no message yet

Dear Victor,

I tried setting sr to 22050 but it did not change.
a lot happens in my instrument and I have to do less

Thanks
Ehsan


On Sunday, April 8, 2018, 9:27:30 PM GMT+2, Dave Seidel <[hidden email]> wrote:


Yes, good advice.

On Sun, Apr 8, 2018 at 3:21 PM, Victor Lazzarini <[hidden email]> wrote:
Also checked that your CPU is not maxed out. No buffer settings will fix that; you will need to try and run a simpler code or at a lower SR.

The top command can give your cpu usage.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 8 Apr 2018, at 20:08, Dave Seidel <[hidden email]> wrote:

Hi Ehsan,

I have been working a lot with a Raspberry Pi 3 doing realtime Csound. My current buffer settings are "-b 128 -B 2048". I don't know if this is optimal, but it is working pretty well with a couple of apps; one uses MIDI input and the other uses OSC input. I'm not currently using audio input, so this could be a difference. Also I don't know which Raspberry Pi model you are using, so my settings may or may not be useful for you. There are many variables, including how your orchestra code is written and how the system itself is tuned (or not) for performance. The best advice I can offer is to experiment with different settings, and also look for opportunities to make your Csound code more efficient.

- Dave

On Sun, Apr 8, 2018 at 2:37 PM, Ehsan Ebrahimi <[hidden email]> wrote:
dear all
i have csound on raspberry pi (raspbian)

I always get message

Warning: buffer overrun in real-time audio input
Warning: Buffer underrun in real-time audio input

in
<CsOptions>

-odac: hw1,0     -adc: hw: 1    -b512   -B1024

<CsOptions>


sr = 44100
ksmps = 128
nchnls = 2

Many Thanks
Ehsan
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi -bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csou nd/issues Discussions of bugs and features can be posted here



--
Csound mailing list [hidden email] https://listserv.heanet.ie/ cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/ csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/ cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/ csound/issues Discussions of bugs and features can be posted here



--
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


--
Mvh.

Bernt Isak Wærstad


Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here