Csound Csound-dev Csound-tekno Search About

[Csnd] Problem in Raspberry Pi

Date2018-04-08 19:37
FromEhsan Ebrahimi <000002d2fca3b9e3-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] Problem in Raspberry Pi
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

Date2018-04-08 20:08
FromDave Seidel
SubjectRe: [Csnd] Problem in Raspberry Pi
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 <000002d2fca3b9e3-dmarc-request@listserv.heanet.ie> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 20:21
FromVictor Lazzarini
SubjectRe: [Csnd] Problem in Raspberry Pi
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 <dave.seidel@GMAIL.COM> 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 <000002d2fca3b9e3-dmarc-request@listserv.heanet.ie> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 20:26
FromDave Seidel
SubjectRe: [Csnd] Problem in Raspberry Pi
Yes, good advice.

On Sun, Apr 8, 2018 at 3:21 PM, Victor Lazzarini <Victor.Lazzarini@mu.ie> 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 <dave.seidel@GMAIL.COM> 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 <000002d2fca3b9e3-dmarc-request@listserv.heanet.ie> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-08 21:03
FromEhsan Ebrahimi <000002d2fca3b9e3-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] Problem in Raspberry Pi
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 <dave.seidel@GMAIL.COM> wrote:


Yes, good advice.

On Sun, Apr 8, 2018 at 3:21 PM, Victor Lazzarini <Victor.Lazzarini@mu.ie> 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 <dave.seidel@GMAIL.COM> 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 <000002d2fca3b9e3-dmarc- request@listserv.heanet.ie> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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

Date2018-04-09 02:34
FromBernt Isak Wærstad
SubjectRe: [Csnd] Problem in Raspberry Pi
Which soundcard are you using?

On Sun, 8 Apr 2018 at 22:03, Ehsan Ebrahimi <000002d2fca3b9e3-dmarc-request@listserv.heanet.ie> 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 <dave.seidel@GMAIL.COM> wrote:


Yes, good advice.

On Sun, Apr 8, 2018 at 3:21 PM, Victor Lazzarini <Victor.Lazzarini@mu.ie> 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 <dave.seidel@GMAIL.COM> 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 <000002d2fca3b9e3-dmarc- request@listserv.heanet.ie> 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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