Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] report on useALSA=1

Date2005-02-01 08:27
FromIain Duncan
SubjectRe: [Cs-dev] report on useALSA=1
Dave, did you try running as root with --sched and --expression-opt? It 
was under those setting that I get great audio performance with Istvan's 
older builds for what it's worth.

iain

Dave Phillips wrote:
> Greetings:
> 
>  Last night I recompiled Cs5 with ALSA support instead of PortAudio. 
> Results were disappointing, with consistent buffer underruns and 
> stuttering sound. I used a variety of settings for -b and -B, got no 
> joy. I'm rebuilding the latest CVS sources again, this time with PA 
> instead of ALSA.
> 
>  It's weird, I would have thought that direct ALSA support would have 
> been a better fit for Linux.
> 
> Best,
> 
> dp
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-01 13:06
FromDave Phillips
Subject[Cs-dev] report on useALSA=1
Greetings:

  Last night I recompiled Cs5 with ALSA support instead of PortAudio. 
Results were disappointing, with consistent buffer underruns and 
stuttering sound. I used a variety of settings for -b and -B, got no 
joy. I'm rebuilding the latest CVS sources again, this time with PA 
instead of ALSA.

  It's weird, I would have thought that direct ALSA support would have 
been a better fit for Linux.

Best,

dp




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-01 21:22
FromDave Phillips
SubjectRe: [Cs-dev] report on useALSA=1
Hi Iain:

  I didn't try running as root. I did use --sched, got no joy.

  I've built and installed Istvan's last source package (4.24.1), it 
works very well.

Best,

dp



Iain Duncan wrote:

> Dave, did you try running as root with --sched and --expression-opt? 
> It was under those setting that I get great audio performance with 
> Istvan's older builds for what it's worth.
>
> iain
>
> Dave Phillips wrote:
>
>> Greetings:
>>
>>  Last night I recompiled Cs5 with ALSA support instead of PortAudio. 
>> Results were disappointing, with consistent buffer underruns and 
>> stuttering sound. I used a variety of settings for -b and -B, got no 
>> joy. I'm rebuilding the latest CVS sources again, this time with PA 
>> instead of ALSA.
>>
>>  It's weird, I would have thought that direct ALSA support would have 
>> been a better fit for Linux.
>>
>> Best,
>>
>> dp
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
>> Tool for open source databases. Create drag-&-drop reports. Save time
>> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-02 20:46
FromIstvan Varga
SubjectRe: [Cs-dev] report on useALSA=1
Dave Phillips wrote:

>  Last night I recompiled Cs5 with ALSA support instead of PortAudio.
> Results were disappointing, with consistent buffer underruns and
> stuttering sound. I used a variety of settings for -b and -B, got no
> joy. I'm rebuilding the latest CVS sources again, this time with PA
> instead of ALSA.

Try the current CVS version. It has a new ALSA plugin, that may work
better, as it now allows device selection, and the use of 16 bit and
32 bit integer samples in addition to floats.
You do not need useALSA=1 (the plugin is built by default if ALSA
is available), but the Csound command line option '-+rtaudio=alsa'
is needed to select the ALSA audio module (otherwise, either PortAudio
would be used if it is available, or there would be no sound).

It is recommended to set the -B option at least 4 times higher than
-b, for example:

   su -c './csound --sched -+rtaudio=alsa -d -m0 -H0 -s -h -b 64 -B 256 \
          -o dac orcfile.orc score.sco'

These settings worked for me.


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-03 15:04
FromDave Phillips
SubjectRe: [Cs-dev] report on useALSA=1
Hi Istvan:

  I built and ran the latest CVS sources last night. With your command 
options (as below) the rtaudio playback was flawless. However, without 
su the sound was still choppy and reported many underruns.

  Oyvindt's FLTK_test.csd worked perfectly. Running ImproSculpt (with 
su-c) failed (still no audio) and totally locked up my machine, 
requiring a hard reboot.

  CsoundVST fails here:

[dlphilp@localhost csound5]$ ./CsoundVST
Starting CsoundVST...
PortAudio real-time audio module for Csound by John ffitch
ALSA real-time audio module for Csound by Istvan Varga
BEGAN Shell::runScript()...
==============================================================================================================
==============================================================================================================
PyRun_SimpleString returned 0.
ENDED Shell::runScript().
BEGAN Shell::runScript()...
==============================================================================================================
Traceback (most recent call last):
  File "", line 1, in ?
ImportError: No module named CsoundVST
==============================================================================================================
PyRun_SimpleString returned -1.
ENDED Shell::runScript().
BEGAN Shell::runScript()...
==============================================================================================================
AttributeError: 'module' object has no attribute 'csound'
==============================================================================================================
PyRun_SimpleString returned -1.
ENDED Shell::runScript().
Segmentation fault


  What am I missing ?

Best,

dp


Istvan Varga wrote:

> Dave Phillips wrote:
>
>>  Last night I recompiled Cs5 with ALSA support instead of PortAudio.
>> Results were disappointing, with consistent buffer underruns and
>> stuttering sound. I used a variety of settings for -b and -B, got no
>> joy. I'm rebuilding the latest CVS sources again, this time with PA
>> instead of ALSA.
>
>
> Try the current CVS version. It has a new ALSA plugin, that may work
> better, as it now allows device selection, and the use of 16 bit and
> 32 bit integer samples in addition to floats.
> You do not need useALSA=1 (the plugin is built by default if ALSA
> is available), but the Csound command line option '-+rtaudio=alsa'
> is needed to select the ALSA audio module (otherwise, either PortAudio
> would be used if it is available, or there would be no sound).
>
> It is recommended to set the -B option at least 4 times higher than
> -b, for example:
>
>   su -c './csound --sched -+rtaudio=alsa -d -m0 -H0 -s -h -b 64 -B 256 \
>          -o dac orcfile.orc score.sco'
>
> These settings worked for me.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-03 16:09
FromDave Phillips
SubjectRe: [Cs-dev] report on useALSA=1
Dave Phillips wrote:

> CsoundVST fails here:
> [snip]

Sorry, my bad, I forgot to set PYTHONPATH.

CsoundVST launches without complaint under yesterday's CVS sources (2 
Feb 05). However, it's rejecting my Settings for csound:

    -+rtaudio=alsa -d -m0 -o dac

with this error:

    Csound Command ERROR: too many arguments

I'm probably missing something, again ?

Best,

dp








-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-03 17:29
FromIstvan Varga
SubjectRe: [Cs-dev] report on useALSA=1
Dave Phillips wrote:

>  I built and ran the latest CVS sources last night. With your command 
> options (as below) the rtaudio playback was flawless. However, without 
> su the sound was still choppy and reported many underruns.

I have fixed an array index overflow bug in rtalsa.c that was responsible
for the crash at the end of performance (and in fact also for some other
strange errors). There are also a few other minor fixes. The new code did
not appear in the public CVS archive yet, but it should be available within
a few hours.


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-04 12:08
FromIain Duncan
SubjectRe: [Cs-dev] report on useALSA=1
I just tried a fresh check out and build today ( Friday ). For a first 
run with a simple real time instrument, using su, gentoo 2.6.8.

Both the following worked fine without clicks, sr=44100, ksmps=10.

csound -+rtaudio=alsa -d -m0 -o dac --sched --expression-opt -b8 -B32
csound -+rtaudio=alsa -d -m0 -o dac --sched --expression-opt -b16 -B16

Looks promising. I will test the heavy load ensemble next and report 
back with complete benchmarks again.

iain


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-02-04 12:55
FromIain Duncan
SubjectRe: [Cs-dev] report on useALSA=1 vs portaudio
I just tested todays check out with the heavy load ensemble. Everything 
is great, cpu use very close ( within 1-2% ) as with Varga 4.23.4.2. Got 
down to -b32 -B128 with no problems at all, can switch windows and watch 
top too without problems.

However, the note dropping is really bad if tempo is not 120. What is
weird is that even with a ton of instruments going, they all drop notes
at the same time every four to eight bars, making it sound like a
hiccup. Tapping a long with it though, I think it's just the effect of
total silence for a note in a random place in a drum groove, which
sounds very jarring. My ensemble uses no score statements other than i,
f, and one tempo statement. This does not happen with Varga 4.23.4.2

Sooo, I retested with port audio at t120 to see if that was really the
source of the hiccups, and sure enough that was the source of the 
"hiccups". Rt audio is still not as good as with the -+rtaudio option 
however. I can get buffers down to -b64 -B256 without clicks. The 
biggest difference is in doing other stuff, I cannot switch windows or 
watch top without heavy clicking, so it remains to be seen how midi 
input and the spurios midi messages will be. The addition of the 
--expression-opt code has brought the cpu use down to the same as with 
varga csound 4.23.4.2 as well, very nice.

So whenever there are fixes to the note drop issue to test I will be 
happy to do those too. I will also test portmidi input in the next while 
for a midi i/o version of the heavy load test.

iain


Iain Duncan wrote:
> I just tried a fresh check out and build today ( Friday ). For a first 
> run with a simple real time instrument, using su, gentoo 2.6.8.
> 
> Both the following worked fine without clicks, sr=44100, ksmps=10.
> 
> csound -+rtaudio=alsa -d -m0 -o dac --sched --expression-opt -b8 -B32
> csound -+rtaudio=alsa -d -m0 -o dac --sched --expression-opt -b16 -B16
> 
> Looks promising. I will test the heavy load ensemble next and report 
> back with complete benchmarks again.
> 
> iain
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net