Csound Csound-dev Csound-tekno Search About

[Csnd] Best odac setting for a Raspberry Pi computer

Date2013-07-17 10:59
Frombaruchel@gmx.com
Subject[Csnd] Best odac setting for a Raspberry Pi computer
Hi, I installed csound form the officiel raspbian repository and it seems
to work fine. I can produca WAV files and play them with the 'aplay' command
which works with no trouble.

But I have some issues with the -odac setting. The sound is ugly. I tried
various parameters with no obvious changes.

With -odac0, I get:

> orch now loaded
> audio buffered in 256 sample-frame blocks
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
> ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
> Cannot connect to server socket err = No such file or directory
> Cannot connect to server request channel
> jack server is not running or cannot be started
> PortAudio V19-devel (built May  8 2012 16:45:55)
> PortAudio: available output devices:
>    0: bcm2835 ALSA: bcm2835 ALSA (hw:0,0)
>    1: sysdefault
>    2: default
>    3: dmix
> PortAudio: selected output device 'bcm2835 ALSA: bcm2835 ALSA (hw:0,0)'
> writing 512 sample blks of 64-bit floats to dac0
> SECTION 1:
> new alloc for instr 1:
> ^CCsound tidy up: Interrupt
> Early return from csoundPerform().
> inactive allocs returned to freespace
> end of score.              overall amps:  0.77639  0.77639
>            overall samples out of range:        0        0
> 0 errors in performance
> Elapsed time at end of performance: real: 4.087s, CPU: 0.300s
> 252 512 sample blks of 64-bit floats written to dac0

I suspect that the issue comes from the "64-bit float" setting, but I couldn't
change it by using the "-s" parameter (I still get "64-bit floats" when
using this parameter). Any hint?

Regards,

b.

Date2013-07-17 15:28
FromSteven Yi
SubjectRe: [Csnd] Best odac setting for a Raspberry Pi computer
There's an article in the next Csound Journal issue (we're working away on editing now, hopefully to be released soon!) that discusses using Csound on Beagle Bone's and Raspberry Pi's.  In the article there's a mention of using:

-odac -+rtaudio=alsa -B2048 -b2048

The issues you have may also have to do with your orchestra if it is complicated.  Please try the above first and if it's still causing issues, take a look at your ksmps setting (try higher values like 256, 512, or 1024).  If that's still causing issues, please post some code and we can all help diagnose the issue.

Cheers!
steven


On Wed, Jul 17, 2013 at 5:59 AM, <baruchel@gmx.com> wrote:
Hi, I installed csound form the officiel raspbian repository and it seems
to work fine. I can produca WAV files and play them with the 'aplay' command
which works with no trouble.

But I have some issues with the -odac setting. The sound is ugly. I tried
various parameters with no obvious changes.

With -odac0, I get:

> orch now loaded
> audio buffered in 256 sample-frame blocks
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
> ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
> Cannot connect to server socket err = No such file or directory
> Cannot connect to server request channel
> jack server is not running or cannot be started
> PortAudio V19-devel (built May  8 2012 16:45:55)
> PortAudio: available output devices:
>    0: bcm2835 ALSA: bcm2835 ALSA (hw:0,0)
>    1: sysdefault
>    2: default
>    3: dmix
> PortAudio: selected output device 'bcm2835 ALSA: bcm2835 ALSA (hw:0,0)'
> writing 512 sample blks of 64-bit floats to dac0
> SECTION 1:
> new alloc for instr 1:
> ^CCsound tidy up: Interrupt
> Early return from csoundPerform().
> inactive allocs returned to freespace
> end of score.              overall amps:  0.77639  0.77639
>            overall samples out of range:        0        0
> 0 errors in performance
> Elapsed time at end of performance: real: 4.087s, CPU: 0.300s
> 252 512 sample blks of 64-bit floats written to dac0

I suspect that the issue comes from the "64-bit float" setting, but I couldn't
change it by using the "-s" parameter (I still get "64-bit floats" when
using this parameter). Any hint?

Regards,

b.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2013-07-17 17:04
FromAnders Genell
SubjectRe: [Csnd] Best odac setting for a Raspberry Pi computer
Maybe it should be said that the analog output is very poor to begin with, so it might not be csound's fault?

Regards,
Anders



17 jul 2013 kl. 16:28 skrev Steven Yi <stevenyi@gmail.com>:

There's an article in the next Csound Journal issue (we're working away on editing now, hopefully to be released soon!) that discusses using Csound on Beagle Bone's and Raspberry Pi's.  In the article there's a mention of using:

-odac -+rtaudio=alsa -B2048 -b2048

The issues you have may also have to do with your orchestra if it is complicated.  Please try the above first and if it's still causing issues, take a look at your ksmps setting (try higher values like 256, 512, or 1024).  If that's still causing issues, please post some code and we can all help diagnose the issue.

Cheers!
steven


On Wed, Jul 17, 2013 at 5:59 AM, <baruchel@gmx.com> wrote:
Hi, I installed csound form the officiel raspbian repository and it seems
to work fine. I can produca WAV files and play them with the 'aplay' command
which works with no trouble.

But I have some issues with the -odac setting. The sound is ugly. I tried
various parameters with no obvious changes.

With -odac0, I get:

> orch now loaded
> audio buffered in 256 sample-frame blocks
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
> ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
> Cannot connect to server socket err = No such file or directory
> Cannot connect to server request channel
> jack server is not running or cannot be started
> PortAudio V19-devel (built May  8 2012 16:45:55)
> PortAudio: available output devices:
>    0: bcm2835 ALSA: bcm2835 ALSA (hw:0,0)
>    1: sysdefault
>    2: default
>    3: dmix
> PortAudio: selected output device 'bcm2835 ALSA: bcm2835 ALSA (hw:0,0)'
> writing 512 sample blks of 64-bit floats to dac0
> SECTION 1:
> new alloc for instr 1:
> ^CCsound tidy up: Interrupt
> Early return from csoundPerform().
> inactive allocs returned to freespace
> end of score.              overall amps:  0.77639  0.77639
>            overall samples out of range:        0        0
> 0 errors in performance
> Elapsed time at end of performance: real: 4.087s, CPU: 0.300s
> 252 512 sample blks of 64-bit floats written to dac0

I suspect that the issue comes from the "64-bit float" setting, but I couldn't
change it by using the "-s" parameter (I still get "64-bit floats" when
using this parameter). Any hint?

Regards,

b.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"