Csound Csound-dev Csound-tekno Search About

[Csnd] Trouble with Quad sound

Date2010-10-20 23:33
FromLouis Cohen
Subject[Csnd] Trouble with Quad sound
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"

Date2010-10-21 08:07
FromVictor Lazzarini
Subject[Csnd] Re: Trouble with Quad sound
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"

Date2010-10-21 13:04
FromLouis Cohen
Subject[Csnd] Trouble with Quad sound
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"

Date2010-10-21 13:08
FromLouis Cohen
Subject[Csnd] Trouble with Quad sound
Victor,

Regarding testing quad with other software, I have no knowledge of PD  
although I have a version currently on my system. If you could send me  
a simple PD file I would run it on my system.

I do use Logic extensively and there are no problems running quad. I  
suspect that Logic uses coreaudio, however.

best,
Lou


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"

Date2010-10-21 13:18
FromVictor Lazzarini
Subject[Csnd] Re: Trouble with Quad sound
That's the problem, portaudio seems to think your device does not  
allow 4 channels. Does it have a different number of inputs and
outputs?
If so, that could be the problem. For this there are two solutions: if  
you are not using input, just remove -iadc from the qutecsound
configuration. Otherwise, you can try setting nchnls_i = 2 to set the  
number of input channels to be different to the output.

Victor

On 21 Oct 2010, at 13:04, Louis Cohen wrote:

> *** PortAudio: error: -9998: Invalid number of channels



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"

Date2010-10-21 14:07
FromLouis Cohen
Subject[Csnd] Re: Re: Trouble with Quad sound
Victor,

This is definitely the right direction.

First, nchnls_i in my csd gave me a syntax error when I first tried  
it, but after finding the setting below, it was accepted by csound.  
This is confusing to me. I have no model in my mind about what's going  
on here. However....

After trial and error I found some settings that work for my immediate  
application:

Using portaudio and running with QuteCsound (not in terminal mode):

Input device NONE (even though the Audio Kontrol device actually has  
one, which I'm not using presently.)
Output device dac3 (which specifies the Audio Kontrol 1 device.)
RT MIDI module NONE (although the Audio Kontrol device has MIDI in and  
MIDI out.)

The result is a stutter on the first sound, then clean sound  
afterwards, sound showing up on all four channels.

I'm not sure what I would do if I needed audio input or MIDI, but for  
now I've got what I need.

Any hints about how to deal with audio input and MIDI?

I never really paid attention to the QuteCsound configuration before.  
The defaults worked just fine. Now that I'm looking at all the  
options, it seems that some explanation would be quite useful. For  
example, what happens when various combinations of "Use QuteCsound  
options" and "Ignore CsOptions" are checked or unchecked?

What is the difference between portaudio and coreaudio?

What is "buffer size" all about? Same for "HW buffer size"?  What  
happens if I check or uncheck these options? etc....

best,
Lou


On Oct 21, 2010, at 8:18 AM, Victor Lazzarini wrote:

> That's the problem, portaudio seems to think your device does not  
> allow 4 channels. Does it have a different number of inputs and
> outputs?
> If so, that could be the problem. For this there are two solutions:  
> if you are not using input, just remove -iadc from the qutecsound
> configuration. Otherwise, you can try setting nchnls_i = 2 to set  
> the number of input channels to be different to the output.
>
> Victor
>
> On 21 Oct 2010, at 13:04, Louis Cohen wrote:
>
>> *** PortAudio: error: -9998: Invalid number of channels
>
>
>
> 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"

Date2010-10-21 15:07
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Trouble with Quad sound
Lou,

nchnls = 4
nchnls_i = 2

should work for you (it's been in Csound since 5.12). It works here.
RT MIDI can be set to portmidi (it's independent of audio).

The 'ignore CsOptions', ignores options set in , the use  
QuteCsound options uses the options on the configure window. Otherwise  
you
can set Csound options in CsOptions as usual.

Victor

On 21 Oct 2010, at 14:07, Louis Cohen wrote:

> Victor,
>
> This is definitely the right direction.
>
> First, nchnls_i in my csd gave me a syntax error when I first tried  
> it, but after finding the setting below, it was accepted by csound.  
> This is confusing to me. I have no model in my mind about what's  
> going on here. However....
>
> After trial and error I found some settings that work for my  
> immediate application:
>
> Using portaudio and running with QuteCsound (not in terminal mode):
>
> Input device NONE (even though the Audio Kontrol device actually has  
> one, which I'm not using presently.)
> Output device dac3 (which specifies the Audio Kontrol 1 device.)
> RT MIDI module NONE (although the Audio Kontrol device has MIDI in  
> and MIDI out.)
>
> The result is a stutter on the first sound, then clean sound  
> afterwards, sound showing up on all four channels.
>
> I'm not sure what I would do if I needed audio input or MIDI, but  
> for now I've got what I need.
>
> Any hints about how to deal with audio input and MIDI?
>
> I never really paid attention to the QuteCsound configuration  
> before. The defaults worked just fine. Now that I'm looking at all  
> the options, it seems that some explanation would be quite useful.  
> For example, what happens when various combinations of "Use  
> QuteCsound options" and "Ignore CsOptions" are checked or unchecked?
>
> What is the difference between portaudio and coreaudio?
>
> What is "buffer size" all about? Same for "HW buffer size"?  What  
> happens if I check or uncheck these options? etc....
>
> best,
> Lou
>
>
> On Oct 21, 2010, at 8:18 AM, Victor Lazzarini wrote:
>
>> That's the problem, portaudio seems to think your device does not  
>> allow 4 channels. Does it have a different number of inputs and
>> outputs?
>> If so, that could be the problem. For this there are two solutions:  
>> if you are not using input, just remove -iadc from the qutecsound
>> configuration. Otherwise, you can try setting nchnls_i = 2 to set  
>> the number of input channels to be different to the output.
>>
>> Victor
>>
>> On 21 Oct 2010, at 13:04, Louis Cohen wrote:
>>
>>> *** PortAudio: error: -9998: Invalid number of channels
>>
>>
>>
>> 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"