| Hello Victor,
The manual real-time audio doc page includes:
....
You might also need to use the -+rtaudio flag to specify the driver
interface to be used. Csound defaults to using Portaudio, which is
cross-plaform and reliable, but for better performance, you might need
to use ALSA or JACK on linux, and CoreAudio on Mac. You can use ASIO
on Windows if your version of Portaudio has been compiled with ASIO
support.
...
However, using core audio (in my test case) uses 45 times more cpu
than port audio:
with -+rtaudio=portaudio
mam15:~ markmillikan$ csound64 /Applications/csound\
extras/examples/a\ little\ something\ from\
Dr.B/2_doctorB_TOOTorials/02_chapter1_41/101.csd
Csound version 5.19.02 (double samples) Jan 20 2013
UnifiedCSD: /Applications/csound extras/examples/a little something
from Dr.B/2_doctorB_TOOTorials/02_chapter1_41/101.csd
Creating options
Creating orchestra
Creating score
graph init
using callback interface
Parsing successful!
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
Sorting score
Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
sample rate overrides: esr = 44100.0000, ekr = 441.0000, ksmps = 100
0dBFS level = 32768.0
orch now loaded
audio buffered in 1024 sample-frame blocks
PortAudio V19-devel (built Oct 3 2012 09:31:53)
PortAudio: available output devices:
0: Built-in Output
PortAudio: selected output device 'Built-in Output'
writing 1024 sample blks of 64-bit floats to dac
SECTION 1:
ftable 1:
new alloc for instr 101:
B 0.000 .. 30.000 T 30.000 TT 30.000 M: 10000.0
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score. overall amps: 10000.0
overall samples out of range: 0
0 errors in performance
Elapsed time at end of performance: real: 30.897s, CPU: 0.682s
<<<<<<<<<<<<<<<<<<
1292 1024 sample blks of 64-bit floats written to dac
with -+rtaudio=coreaudio
mam15:~ markmillikan$ csound64 /Applications/csound\
extras/examples/a\ little\ something\ from\
Dr.B/2_doctorB_TOOTorials/02_chapter1_41/101.csd
Csound version 5.19.02 (double samples) Jan 20 2013
UnifiedCSD: /Applications/csound extras/examples/a little something
from Dr.B/2_doctorB_TOOTorials/02_chapter1_41/101.csd
Creating options
Creating orchestra
Creating score
graph init
Parsing successful!
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
Sorting score
Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
sample rate overrides: esr = 44100.0000, ekr = 441.0000, ksmps = 100
0dBFS level = 32768.0
orch now loaded
audio buffered in 1024 sample-frame blocks
==========================================================
AuHAL Module: found 1 output device(s):
1: Built-in Output (2 channels)
selected output device: Built-in Output
***** AuHAL module: output device open with 1024 buffer frames
==========================================================
writing 1024 sample blks of 64-bit floats to dac
SECTION 1:
ftable 1:
new alloc for instr 101:
B 0.000 .. 30.000 T 30.000 TT 30.000 M: 10000.0
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score. overall amps: 10000.0
overall samples out of range: 0
0 errors in performance
Elapsed time at end of performance: real: 30.904s, CPU: 30.030s
<<<<<<<<<<<<<<<<
AuHAL module: device closed
1292 1024 sample blks of 64-bit floats written to dac
The entire contents of the real-time audio mac doc page:
Please do not interpret my posts as critical of the quality of csound
or the efforts of the maintainers/contributors. I am trying to find an
appropriate way in to learning what is obviously a high quality
long-lived complex application/toolbox.
On Wed, Feb 6, 2013 at 1:34 PM, wrote:
> Looks like the opcode is not working on osx.
> Regarding CPU use on OSX, I have not noticed anything problematic, but maybe
> if you could provide us with an example, we will be happy to try it and
> check the cpu use. Meanwhile, we will get on to fix this opcode.
> Victor
>
>
> ----- Original Message -----
> From: Mark Millikan
> Date: Wednesday, February 6, 2013 6:07 pm
> Subject: [Csnd] cpumeter opcode error on osx 10.7.5
> To: csound@lists.bath.ac.uk
>
>> Hi,
>>
>> When I run (as linked in the cpumeter opcode
>> doc page) in :
>>
>> The Canonical Csound Reference Manual
>>
>> Version 5.19.0
>>
>> Author: John ffitch
>>
>> May 2011
>>
>> New in Csound version 5.14, for Linux/Unix and OSX only
>>
>> I get the following results:
>>
>>
>> mam15:~ markmillikan$ csound64 /Applications/csound\
>> extras/examples/cpumeter.csd
>> Csound version 5.19.02 (double samples) Jan 20 2013
>> UnifiedCSD: /Applications/csound extras/examples/cpumeter.csd
>> Creating options
>> Creating orchestra
>> Creating score
>> graph init
>> using callback interface
>> Parsing successful!
>> Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
>> Sorting score
>> Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
>> 0dBFS level = 1.0
>> orch now loaded
>> audio buffered in 1024 sample-frame blocks
>> PortAudio V19-devel (built Oct 3 2012 09:31:53)
>> PortAudio: available output devices:
>> 0: Built-in Output
>> PortAudio: selected output device 'Built-in Output'
>> writing 1024 sample blks of 64-bit floats to dac
>> SECTION 1:
>> ftable 1:
>> new alloc for instr 1:
>> INIT ERROR in instr 1: Failed to open /proc/stat: No such file or
>> directory
>> <<<<<<<<<<<<<<<<<<> Csound tidy up: Segmentation fault
>> inactive allocs returned to freespace
>> end of
>> score. overall amps: 0.00000
>>
>> overall samples out of
>> range: 0
>> 0 errors in performance
>> Elapsed time at end of performance: real: 0.409s, CPU: 0.080s
>> 0 1024 sample blks of 64-bit floats written to dac
>> mam15:~ markmillikan$
>>
>> 1. Why is it trying to call procfs on osx?
>> 2. Many (most?) of the simple example files / tutorials I've tried
>> appear to heavily load the cpu(s) in my macbook pro.
>> It gets very warm and activity monitor shows
>> one core pegged and
>> the others with significant activity.
>> Any suggested documentation to look at for
>> pointers on (hardware)
>> performance tips?
>>
>> thx
>>
>>
>> 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"
>>
>
> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
> National University of Ireland, Maynooth
|