| Victor and John, thanks for looking into this problem.
I used QuteCsound's configuration option to select portaudio and ran
the test in Terminal mode. No crash, but no sound. Apparently
portaudio doesn't like something about the number of channels. Here's
the output. Since an error message possibly refers to the code in the
csd, I'm providing the csd again.
John, you mentioned that the buffer sizes seem small. What do you
recommend, and how can I control the buffer sizes?
best,
Lou
sr = 44100 ;samples per second for sound
kr = 4410; 100
nchnls = 4
0dbfs = 1
instr 1
print p4
asig oscil 0.1, 400, 3
outch p4, asig
endin
f3 0 513 7 1 256 1 1 -1 0 -1 255 -1 1 ;square wave
i 1 0 2 1
i 1 2 2 2
i 1 4 2 3
i 1 6 2 4
Last login: Thu Oct 21 06:46:25 on console
% /var/folders/r6/r6Z-7IuZHzexTY-MxH9LPU+++TI/-Tmp-/
qutecsound_run_script-WYy673.sh ; exit;
/var/folders/r6/r6Z-7IuZHzexTY-MxH9LPU+++TI/-Tmp-/
qutecsound_run_script-WYy673.sh: line 3: cd: /Volumes/A_G5Int1TB/
Documents1/Lous compositions/granularImprovisor/wiimoteimproviser
echo "/usr/local/bin/csound "/Volumes/A_G5Int1TB/Documents1/Lous: No
such file or directory
PortMIDI real time MIDI plugin for Csound
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 5.12 (float samples) Jun 4 2010
libsndfile-1.0.21
UnifiedCSD: /Volumes/A_G5Int1TB/Documents1/Lou's compositions/
granularImprovisor/wiimoteimproviser/quadtest.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
orchname: /var/folders/r6/r6Z-7IuZHzexTY-MxH9LPU+++TI/-Tmp-//csound-
OVOSY1.orc
scorename: /var/folders/r6/r6Z-7IuZHzexTY-MxH9LPU+++TI/-Tmp-//csound-
Ik7qdQ.sco
rtaudio: PortAudio module enabled ... using callback interface
rtmidi: PortMIDI module enabled
orch compiler:
instr 1
sorting score ...
... done
Csound version 5.12 (float samples) Jun 4 2010
midi channel 1 using instr 1
midi channel 2 using instr 1
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
0dBFS level = 1.0
The available MIDI in devices are:
0: A-80 (CoreMIDI)
1: Audio Kontrol 1 VirtualIn (CoreMIDI)
PortMIDI: Activated input device 0: 'A-80' (CoreMIDI)
orch now loaded
audio buffered in 64 sample-frame blocks
reading 512-byte blks of shorts from adc (RAW)
PortAudio V19-devel (built Feb 12 2010 09:42:54)
PortAudio: available input devices:
0: Built-in Microphone
1: Built-in Line Input
2: Built-in Digital Input
3: Audio Kontrol 1
PortAudio: selected input device 'Audio Kontrol 1'
PortAudio: available output devices:
0: Built-in Output
1: Built-in Line Output
2: Built-in Digital Output
3: Audio Kontrol 1
PortAudio: selected output device 'Audio Kontrol 1'
WARNING: buffer size should be an integer multiple of ksmps in full-
duplex mode
*** PortAudio: error: -9998: Invalid number of channels
Failed to initialise real time audio output
inactive allocs returned to freespace
end of score. overall amps: 0.00000 0.00000 0.00000 0.00000
overall samples out of range: 0 0 0 0
1 errors in performance
Press return to continue
On Oct 21, 2010, at 3:07 AM, Victor Lazzarini wrote:
> It's strange that portaudio is crashing. Did you try using a
> different program, like PD to see if it works (it also uses
> portaudio).
> MacCsound uses its own IO, so it is probably doing the right thing.
> The coreaudio module is probably not. But I would have
> thought that portaudio would be OK. Could you run it on the terminal
> and see if there are any messages from portaudio before
> it crashes?
>
> Victor
> On 20 Oct 2010, at 23:33, Louis Cohen wrote:
>
>> I sent the following message to the QuteCsound forum. Andres
>> believes the problem is with csound, so here it is:
>>
>> Begin forwarded message:
>>
>> From: Louis Cohen
>> Date: October 20, 2010 10:47:32 AM EDT
>> To: qutecsound-users@lists.sourceforge.net
>> Subject: Trouble with Quad sound
>>
>> I am having difficulty using QCS to output quad sound. I'm
>> wondering what I might be doing wrong -- perhaps some QCS settings?
>>
>> Environment: MacOSX 10.5.8, MacPro (Intel, 4 quad cores),
>> QuteCsound 0.6.0
>>
>> When I run the following csd, I get highly granulated sound. Output
>> to channels 1 and 3 goes only to channel 1 (left front.) Output to
>> channels 2 and 4 goes only to channel 2 (right front.)
>>
>> The csd crashes if I use portaudio, and only runs when I select
>> coreaudio. My audio device is a 4-channel USB device made by Native
>> Instruments ("Audio Kontrol 1")
>>
>> If I "Run in Term" I get the same result, granulated sound, nothing
>> to channels 3 or 4.
>>
>> If I modify the csd to specify 2 channels and modify the score to
>> send only to channels 1 and 2, I get clean sound, but of course
>> only to the left and right front channels.
>>
>> If I run the same csd under MacCsound I get clean sound, correctly
>> sent to all 4 channels.
>>
>> I've pasted in the csd and console output from QuteCsound:
>>
>>
>>
>>
>>
>> sr = 44100 ;samples per second for sound
>> kr = 4410; 100
>> nchnls = 4
>> 0dbfs = 1
>> instr 1
>> print p4
>> asig oscil 0.1, 400, 3
>> outch p4, asig
>> endin
>>
>>
>> f3 0 513 7 1 256 1 1 -1 0 -1 255 -1 1 ;square wave
>> i 1 0 2 1
>> i 1 2 2 2
>> i 1 4 2 3
>> i 1 6 2 4
>>
>>
>>
>> -----------------
>> WARNING: could not open library '/Library/Frameworks/
>> CsoundLib.framework/Versions/5.2/Resources/Opcodes/
>> libjackTransport.dylib' (-1)
>> WARNING: could not open library '/Library/Frameworks/
>> CsoundLib.framework/Versions/5.2/Resources/Opcodes/
>> librtjack.dylib' (-1)
>> 0dBFS level = 32768.0
>> Csound version 5.12 (float samples) Jun 4 2010
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> Creating score
>> rtmidi: PortMIDI module enabled
>> orch compiler:
>> instr 1
>> sorting score ...
>> ... done
>> Csound version 5.12 (float samples) Jun 4 2010
>> midi channel 1 using instr 1
>> midi channel 2 using instr 1
>> midi channel 3 using instr 1
>> midi channel 4 using instr 1
>> midi channel 5 using instr 1
>> midi channel 6 using instr 1
>> midi channel 7 using instr 1
>> midi channel 8 using instr 1
>> midi channel 9 using instr 1
>> midi channel 10 using instr 1
>> midi channel 11 using instr 1
>> midi channel 12 using instr 1
>> midi channel 13 using instr 1
>> midi channel 14 using instr 1
>> midi channel 15 using instr 1
>> midi channel 16 using instr 1
>> 0dBFS level = 1.0
>> The available MIDI in devices are:
>> 0: A-80 (CoreMIDI)
>> 1: Audio Kontrol 1 VirtualIn (CoreMIDI)
>> 2: OSCulator Out (CoreMIDI)
>> PortMIDI: Activated input device 0: 'A-80' (CoreMIDI)
>> orch now loaded
>> audio buffered in 64 sample-frame blocks
>> CoreAudio module: sr set to 44100 with 4 audio channels
>> CoreAudio module: device open with 4 buffers of 128 frames
>> ==========================================================
>> reading 512-byte blks of shorts from adc (RAW)
>> writing 512-byte blks of shorts to dac
>> SECTION 1:
>> ftable 3:
>> new alloc for instr 1:
>> instr 1: p4 = 1.000
>> instr 1: p4 = 2.000
>> instr 1: p4 = 3.000
>> instr 1: p4 = 4.000
>> Score finished in csoundPerformKsmps().
>> inactive allocs returned to freespace
>> end of score. overall amps: 0.10000 0.10000 0.10000 0.10000
>> overall samples out of range: 0 0 0 0
>> 0 errors in performance
>> coreaudio module: closing device...
>> coreaudio module: device closed
>> 5513 512-byte soundblks of shorts written to dac
>>
>>
>>
>> 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"
>>
>
>
>
> 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"
>
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"
|