Csound Csound-dev Csound-tekno Search About

[Csnd] 4 Channel Interface Problem with csound

Date2012-04-19 12:25
Fromluis antunes pena
Subject[Csnd] 4 Channel Interface Problem with csound
Hello,
I was trying the Focusrite Saffire 6 USB with 
csound and it seams to have a problem with 
multichannels. Csound gives an error when using 
the Focusrite with more than 2 channels:

PortAudio: selected output device 'Saffire 6USB'
  *** 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.0      0.0      0.0      0.0
        overall samples out of range:        
0        0        0        0
1 errors in performance

This seams to be an error from csound because when 
using Digital Performer it recognizes all four 
channels.

Any ideas what could be the problem?

I'm running Csound 5.17 (doubles) with OSX 10.6.8

Thanks,

Luis

--
http://luisantunespena.eu


Date2012-04-19 12:35
FromVictor Lazzarini
SubjectRe: [Csnd] 4 Channel Interface Problem with csound
Sounds like a problem with portaudio. Have you tried Jack or the AuHal module?

Victor
On 19 Apr 2012, at 12:25, luis antunes pena wrote:

> Hello,
> I was trying the Focusrite Saffire 6 USB with csound and it seams to have a problem with multichannels. Csound gives an error when using the Focusrite with more than 2 channels:
> 
> PortAudio: selected output device 'Saffire 6USB'
> *** 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.0      0.0      0.0      0.0
>       overall samples out of range:        0        0        0        0
> 1 errors in performance
> 
> This seams to be an error from csound because when using Digital Performer it recognizes all four channels.
> 
> Any ideas what could be the problem?
> 
> I'm running Csound 5.17 (doubles) with OSX 10.6.8
> 
> Thanks,
> 
> Luis
> 
> --
> http://luisantunespena.eu
> 
> 
> 
> 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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2012-04-19 12:37
FromVictor Lazzarini
SubjectRe: [Csnd] 4 Channel Interface Problem with csound
Luis,

also: maybe it's to do with different numbers of available ins and outs. You can set nchnls_i = X to set a number of input channels that is different to nchnls.


On 19 Apr 2012, at 12:25, luis antunes pena wrote:

> Hello,
> I was trying the Focusrite Saffire 6 USB with csound and it seams to have a problem with multichannels. Csound gives an error when using the Focusrite with more than 2 channels:
> 
> PortAudio: selected output device 'Saffire 6USB'
> *** 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.0      0.0      0.0      0.0
>       overall samples out of range:        0        0        0        0
> 1 errors in performance
> 
> This seams to be an error from csound because when using Digital Performer it recognizes all four channels.
> 
> Any ideas what could be the problem?
> 
> I'm running Csound 5.17 (doubles) with OSX 10.6.8
> 
> Thanks,
> 
> Luis
> 
> --
> http://luisantunespena.eu
> 
> 
> 
> 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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2012-04-19 12:38
Fromluis antunes pena
SubjectRe: [Csnd] 4 Channel Interface Problem with csound
Indeed. It works fine with Jack. Could it be that 
the problem is due to the interface having 4 
outputs but only 2 inputs?
Thanks,
Luis

Am 19.04.12 13:35, schrieb Victor Lazzarini:
> Sounds like a problem with portaudio. Have you tried Jack or the AuHal module?
>
> Victor
> On 19 Apr 2012, at 12:25, luis antunes pena wrote:
>
>> Hello,
>> I was trying the Focusrite Saffire 6 USB with csound and it seams to have a problem with multichannels. Csound gives an error when using the Focusrite with more than 2 channels:
>>
>> PortAudio: selected output device 'Saffire 6USB'
>> *** 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.0      0.0      0.0      0.0
>>        overall samples out of range:        0        0        0        0
>> 1 errors in performance
>>
>> This seams to be an error from csound because when using Digital Performer it recognizes all four channels.
>>
>> Any ideas what could be the problem?
>>
>> I'm running Csound 5.17 (doubles) with OSX 10.6.8
>>
>> Thanks,
>>
>> Luis
>>
>> --
>> http://luisantunespena.eu
>>
>>
>>
>> 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
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> 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"
>
>


-- 
--
http://luisantunespena.eu


Date2012-04-19 12:46
FromVictor Lazzarini
SubjectRe: [Csnd] 4 Channel Interface Problem with csound
Definitely. Try using nchnls_i

Victor
On 19 Apr 2012, at 12:38, luis antunes pena wrote:

> Indeed. It works fine with Jack. Could it be that the problem is due to the interface having 4 outputs but only 2 inputs?
> Thanks,
> Luis
> 
> Am 19.04.12 13:35, schrieb Victor Lazzarini:
>> Sounds like a problem with portaudio. Have you tried Jack or the AuHal module?
>> 
>> Victor
>> On 19 Apr 2012, at 12:25, luis antunes pena wrote:
>> 
>>> Hello,
>>> I was trying the Focusrite Saffire 6 USB with csound and it seams to have a problem with multichannels. Csound gives an error when using the Focusrite with more than 2 channels:
>>> 
>>> PortAudio: selected output device 'Saffire 6USB'
>>> *** 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.0      0.0      0.0      0.0
>>>       overall samples out of range:        0        0        0        0
>>> 1 errors in performance
>>> 
>>> This seams to be an error from csound because when using Digital Performer it recognizes all four channels.
>>> 
>>> Any ideas what could be the problem?
>>> 
>>> I'm running Csound 5.17 (doubles) with OSX 10.6.8
>>> 
>>> Thanks,
>>> 
>>> Luis
>>> 
>>> --
>>> http://luisantunespena.eu
>>> 
>>> 
>>> 
>>> 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
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> 
>> 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"
>> 
>> 
> 
> 
> -- 
> --
> http://luisantunespena.eu
> 
> 
> 
> 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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2012-04-19 14:28
Fromluis antunes pena
SubjectRe: [Csnd] 4 Channel Interface Problem with csound
Thanks Victor. I didn't know about this variable. I tried like this but it didn't work:

sr = 44100

ksmps = 64

nchnls = 4

nchnls_i = 2



csound version 5.17 (double samples) Mar 21 2012
displays suppressed
0dBFS level = 32768.0
orch now loaded
audio buffered in 64 sample-frame blocks
reading 256-byte blks of shorts from adc (RAW)
2012-04-19 15:27:36.300 csound[606:903] Error loading /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: dlopen(/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: no matching architecture in universal wrapper
2012-04-19 15:27:36.302 csound[606:903] Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x101600fc0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (bundle, not loaded)
PortAudio V19-devel (built Feb 12 2010 09:42:54)
PortAudio: available input devices:
0: Built-in Microphone
1: Built-in Input
2: Saffire 6USB
3: Soundflower (2ch)
4: Soundflower (16ch)
5: MOTU 828
PortAudio: selected input device 'Saffire 6USB'
PortAudio: available output devices:
0: Built-in Output
1: Saffire 6USB
2: Soundflower (2ch)
3: Soundflower (16ch)
4: MOTU 828
PortAudio: selected output device 'Saffire 6USB'
*** 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.0 0.0 0.0 0.0
overall samples out of range: 0 0 0 0
1 errors in performance
Elapsed time at end of performance: real: 5.142s, CPU: 0.066s



Am 19.04.12 13:46, schrieb Victor Lazzarini:
Definitely. Try using nchnls_i

Victor
On 19 Apr 2012, at 12:38, luis antunes pena wrote:

Indeed. It works fine with Jack. Could it be that the problem is due to the interface having 4 outputs but only 2 inputs?
Thanks,
Luis

Am 19.04.12 13:35, schrieb Victor Lazzarini:
Sounds like a problem with portaudio. Have you tried Jack or the AuHal module?

Victor
On 19 Apr 2012, at 12:25, luis antunes pena wrote:

Hello,
I was trying the Focusrite Saffire 6 USB with csound and it seams to have a problem with multichannels. Csound gives an error when using the Focusrite with more than 2 channels:

PortAudio: selected output device 'Saffire 6USB'
*** 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.0      0.0      0.0      0.0
      overall samples out of range:        0        0        0        0
1 errors in performance

This seams to be an error from csound because when using Digital Performer it recognizes all four channels.

Any ideas what could be the problem?

I'm running Csound 5.17 (doubles) with OSX 10.6.8

Thanks,

Luis

--
http://luisantunespena.eu



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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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"



-- 
--
http://luisantunespena.eu



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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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"




-- 
--
http://luisantunespena.eu

Date2012-04-19 14:55
FromVictor Lazzarini
SubjectRe: [Csnd] 4 Channel Interface Problem with csound
Not sure what the problem is, but that is supposed to select different numbers of out channels.

Victor
On 19 Apr 2012, at 14:28, luis antunes pena wrote:

Thanks Victor. I didn't know about this variable. I tried like this but it didn't work:

sr = 44100
ksmps = 64
nchnls = 4
nchnls_i = 2


csound version 5.17 (double samples) Mar 21 2012
displays suppressed
0dBFS level = 32768.0
orch now loaded
audio buffered in 64 sample-frame blocks
reading 256-byte blks of shorts from adc (RAW)
2012-04-19 15:27:36.300 csound[606:903] Error loading /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: dlopen(/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: no matching architecture in universal wrapper
2012-04-19 15:27:36.302 csound[606:903] Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x101600fc0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (bundle, not loaded)
PortAudio V19-devel (built Feb 12 2010 09:42:54)
PortAudio: available input devices:
0: Built-in Microphone
1: Built-in Input
2: Saffire 6USB
3: Soundflower (2ch)
4: Soundflower (16ch)
5: MOTU 828
PortAudio: selected input device 'Saffire 6USB'
PortAudio: available output devices:
0: Built-in Output
1: Saffire 6USB
2: Soundflower (2ch)
3: Soundflower (16ch)
4: MOTU 828
PortAudio: selected output device 'Saffire 6USB'
*** 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.0 0.0 0.0 0.0
overall samples out of range: 0 0 0 0
1 errors in performance
Elapsed time at end of performance: real: 5.142s, CPU: 0.066s



Am 19.04.12 13:46, schrieb Victor Lazzarini:
Definitely. Try using nchnls_i

Victor
On 19 Apr 2012, at 12:38, luis antunes pena wrote:

Indeed. It works fine with Jack. Could it be that the problem is due to the interface having 4 outputs but only 2 inputs?
Thanks,
Luis

Am 19.04.12 13:35, schrieb Victor Lazzarini:
Sounds like a problem with portaudio. Have you tried Jack or the AuHal module?

Victor
On 19 Apr 2012, at 12:25, luis antunes pena wrote:

Hello,
I was trying the Focusrite Saffire 6 USB with csound and it seams to have a problem with multichannels. Csound gives an error when using the Focusrite with more than 2 channels:

PortAudio: selected output device 'Saffire 6USB'
*** 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.0      0.0      0.0      0.0
      overall samples out of range:        0        0        0        0
1 errors in performance

This seams to be an error from csound because when using Digital Performer it recognizes all four channels.

Any ideas what could be the problem?

I'm running Csound 5.17 (doubles) with OSX 10.6.8

Thanks,

Luis

--
http://luisantunespena.eu



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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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"


-- 
--
http://luisantunespena.eu



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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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"




-- 
--
http://luisantunespena.eu

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2012-04-19 17:11
FromVictor Lazzarini
SubjectRe: [Csnd] 4 Channel Interface Problem with csound
yes, it's a bug in our portaudio module, and I fixed it in GIT. My impression is that rtauhal does it correctly.
And of course you can use jack.

On 19 Apr 2012, at 14:28, luis antunes pena wrote:

Thanks Victor. I didn't know about this variable. I tried like this but it didn't work:

sr = 44100
ksmps = 64
nchnls = 4
nchnls_i = 2


csound version 5.17 (double samples) Mar 21 2012
displays suppressed
0dBFS level = 32768.0
orch now loaded
audio buffered in 64 sample-frame blocks
reading 256-byte blks of shorts from adc (RAW)
2012-04-19 15:27:36.300 csound[606:903] Error loading /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: dlopen(/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: no matching architecture in universal wrapper
2012-04-19 15:27:36.302 csound[606:903] Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x101600fc0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (bundle, not loaded)
PortAudio V19-devel (built Feb 12 2010 09:42:54)
PortAudio: available input devices:
0: Built-in Microphone
1: Built-in Input
2: Saffire 6USB
3: Soundflower (2ch)
4: Soundflower (16ch)
5: MOTU 828
PortAudio: selected input device 'Saffire 6USB'
PortAudio: available output devices:
0: Built-in Output
1: Saffire 6USB
2: Soundflower (2ch)
3: Soundflower (16ch)
4: MOTU 828
PortAudio: selected output device 'Saffire 6USB'
*** 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.0 0.0 0.0 0.0
overall samples out of range: 0 0 0 0
1 errors in performance
Elapsed time at end of performance: real: 5.142s, CPU: 0.066s



Am 19.04.12 13:46, schrieb Victor Lazzarini:
Definitely. Try using nchnls_i

Victor
On 19 Apr 2012, at 12:38, luis antunes pena wrote:

Indeed. It works fine with Jack. Could it be that the problem is due to the interface having 4 outputs but only 2 inputs?
Thanks,
Luis

Am 19.04.12 13:35, schrieb Victor Lazzarini:
Sounds like a problem with portaudio. Have you tried Jack or the AuHal module?

Victor
On 19 Apr 2012, at 12:25, luis antunes pena wrote:

Hello,
I was trying the Focusrite Saffire 6 USB with csound and it seams to have a problem with multichannels. Csound gives an error when using the Focusrite with more than 2 channels:

PortAudio: selected output device 'Saffire 6USB'
*** 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.0      0.0      0.0      0.0
      overall samples out of range:        0        0        0        0
1 errors in performance

This seams to be an error from csound because when using Digital Performer it recognizes all four channels.

Any ideas what could be the problem?

I'm running Csound 5.17 (doubles) with OSX 10.6.8

Thanks,

Luis

--
http://luisantunespena.eu



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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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"


-- 
--
http://luisantunespena.eu



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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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"




-- 
--
http://luisantunespena.eu

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2012-04-19 17:45
Fromluis antunes pena
SubjectRe: [Csnd] 4 Channel Interface Problem with csound
Great Victor. Thank you very much. I'm using now Jack, but will try rtauhal later.
Best,
Luis

Am 19.04.12 18:11, schrieb Victor Lazzarini:
yes, it's a bug in our portaudio module, and I fixed it in GIT. My impression is that rtauhal does it correctly.
And of course you can use jack.

On 19 Apr 2012, at 14:28, luis antunes pena wrote:

Thanks Victor. I didn't know about this variable. I tried like this but it didn't work:

sr = 44100
ksmps = 64
nchnls = 4
nchnls_i = 2


csound version 5.17 (double samples) Mar 21 2012
displays suppressed
0dBFS level = 32768.0
orch now loaded
audio buffered in 64 sample-frame blocks
reading 256-byte blks of shorts from adc (RAW)
2012-04-19 15:27:36.300 csound[606:903] Error loading /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: dlopen(/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: no matching architecture in universal wrapper
2012-04-19 15:27:36.302 csound[606:903] Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x101600fc0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (bundle, not loaded)
PortAudio V19-devel (built Feb 12 2010 09:42:54)
PortAudio: available input devices:
0: Built-in Microphone
1: Built-in Input
2: Saffire 6USB
3: Soundflower (2ch)
4: Soundflower (16ch)
5: MOTU 828
PortAudio: selected input device 'Saffire 6USB'
PortAudio: available output devices:
0: Built-in Output
1: Saffire 6USB
2: Soundflower (2ch)
3: Soundflower (16ch)
4: MOTU 828
PortAudio: selected output device 'Saffire 6USB'
*** 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.0 0.0 0.0 0.0
overall samples out of range: 0 0 0 0
1 errors in performance
Elapsed time at end of performance: real: 5.142s, CPU: 0.066s



Am 19.04.12 13:46, schrieb Victor Lazzarini:
Definitely. Try using nchnls_i

Victor
On 19 Apr 2012, at 12:38, luis antunes pena wrote:

Indeed. It works fine with Jack. Could it be that the problem is due to the interface having 4 outputs but only 2 inputs?
Thanks,
Luis

Am 19.04.12 13:35, schrieb Victor Lazzarini:
Sounds like a problem with portaudio. Have you tried Jack or the AuHal module?

Victor
On 19 Apr 2012, at 12:25, luis antunes pena wrote:

Hello,
I was trying the Focusrite Saffire 6 USB with csound and it seams to have a problem with multichannels. Csound gives an error when using the Focusrite with more than 2 channels:

PortAudio: selected output device 'Saffire 6USB'
*** 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.0      0.0      0.0      0.0
      overall samples out of range:        0        0        0        0
1 errors in performance

This seams to be an error from csound because when using Digital Performer it recognizes all four channels.

Any ideas what could be the problem?

I'm running Csound 5.17 (doubles) with OSX 10.6.8

Thanks,

Luis

--
http://luisantunespena.eu



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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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"


-- 
--
http://luisantunespena.eu



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
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





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"




-- 
--
http://luisantunespena.eu

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





-- 
--
http://luisantunespena.eu