Csound Csound-dev Csound-tekno Search About

[Csnd] In/Out Channels

Date2009-07-06 20:41
FromCharles Gran
Subject[Csnd] In/Out Channels
Hi,

I have an orchestra that has worked in the past using outc to get 8
outs.  I was playing with one of the instruments so that it would take
real-time audio.  I get an error message regarding ins/outs, which I
don't have in front of me, but am I right to assume that if my sound
card is 2 in / 8 out, that is the source of the error when I turn on
-adac?

Charles

Date2009-07-06 20:57
Fromjoachim heintz
Subject[Csnd] Re: In/Out Channels
Di you try inch resp. outch instead of outc or ins/outs? I find them  
much more flexible, and even if you have nchnls=2 you can write
a1 inch 8
without an error message (though it's senseless, I admit ...:)
Best -
	joachim



Am 06.07.2009 um 21:41 schrieb Charles Gran:

> Hi,
>
> I have an orchestra that has worked in the past using outc to get 8
> outs.  I was playing with one of the instruments so that it would take
> real-time audio.  I get an error message regarding ins/outs, which I
> don't have in front of me, but am I right to assume that if my sound
> card is 2 in / 8 out, that is the source of the error when I turn on
> -adac?
>
> Charles
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>


Date2009-07-07 17:28
FromCharles Gran
Subject[Csnd] Re: Re: In/Out Channels
My soundcard actually has 4ins and 16outs.  i can use inch/outch as
long as I set the nchannel to 4 or less:



-odac4 -iadc4 -b100 -B1024



sr = 44100
ksmps = 10
nchnls = 16
0dbfs = 1

instr 1
ain1 inch 1
outch 15,ain1,16,ain1
endin



i1 0 3600
e



PortMIDI real time MIDI plugin for Csound
PortMIDI real time MIDI plugin for Csound
PortAudio real-time audio module for Csound
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
0dBFS level = 32768.0
Csound version 5.10 (double samples) Jan  9 2009
Csound version 5.10 (double samples) Jan  9 2009
libsndfile-1.0.18pre24
libsndfile-1.0.18pre24
Reading options from $CSOUNDRC: C:\Csound\.csoundrc
Reading options from $CSOUNDRC: C:\Csound\.csoundrc
UnifiedCSD:  inch-outch.csd
UnifiedCSD:  inch-outch.csd
STARTING FILE
STARTING FILE
Creating options
Creating options
Creating orchestra
Creating orchestra
Creating score
Creating score
orchname:  c:\temp\cs494.orc
orchname:  c:\temp\cs494.orc
scorename: c:\temp\cs499.sco
scorename: c:\temp\cs499.sco
rtaudio: PortAudio module enabled ... rtaudio: PortAudio module
enabled ... using callback interface
using callback interface
rtmidi: PortMIDI module enabled
rtmidi: PortMIDI module enabled
orch compiler:
orch compiler:
9 lines read
9 lines read
		instr	instr	1	1	

Elapsed time at end of orchestra compile: real: 0.063s, CPU: 0.063s
Elapsed time at end of orchestra compile: real: 0.063s, CPU: 0.063s
sorting score ...
sorting score ...
	... done
	... done
Elapsed time at end of score sort: real: 0.064s, CPU: 0.063s
Elapsed time at end of score sort: real: 0.064s, CPU: 0.063s
Csound version 5.10 (double samples) Jan  9 2009
Csound version 5.10 (double samples) Jan  9 2009
displays suppressed
displays suppressed
0dBFS level = 1.0
0dBFS level = 1.0
orch now loaded
orch now loaded
audio buffered in 100 sample-frame blocks
audio buffered in 100 sample-frame blocks
reading 3200-byte blks of shorts from adc4 (RAW)
reading 3200-byte blks of shorts from adc4 (RAW)
PortAudio V19-devel (built Jan  6 2009 21:14:14)
PortAudio V19-devel (built Jan  6 2009 21:14:14)
PortAudio: available input devices:
PortAudio: available input devices:
   0: Microsoft Sound Mapper - Input
   0: Microsoft Sound Mapper - Input
   1: E-DSP Wave [EC00]
   1: E-DSP Wave [EC00]
   2: Primary Sound Capture Driver
   2: Primary Sound Capture Driver
   3: E-DSP Wave [EC00]
   3: E-DSP Wave [EC00]
   4: E-MU ASIO
   4: E-MU ASIO
PortAudio: selected input device 'E-MU ASIO'
PortAudio: selected input device 'E-MU ASIO'
PortAudio: available output devices:
PortAudio: available output devices:
   0: Microsoft Sound Mapper - Output
   0: Microsoft Sound Mapper - Output
   1: E-DSP Wave [EC00]
   1: E-DSP Wave [EC00]
   2: Primary Sound Driver
   2: Primary Sound Driver
   3: E-DSP Wave [EC00]
   3: E-DSP Wave [EC00]
   4: E-MU ASIO
   4: E-MU ASIO
PortAudio: selected output device 'E-MU ASIO'
PortAudio: selected output device 'E-MU ASIO'
 *** PortAudio: error: -9998: Invalid number of channels
Failed to initialise real time audio output
inactive allocs returned to freespace
inactive allocs returned to freespace
end of score.		   overall amps:end of score.		   overall amps:
0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000
 0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000
0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000
 0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000
0.00000  0.00000
	   overall samples out of range:
	   overall samples out of range:        0        0        0        0
      0        0        0        0        0        0        0        0
       0        0        0        0        0        0        0
0        0        0        0        0        0        0        0
 0        0        0        0        0
1 errors in performance

1 errors in performance
Elapsed time at end of performance: real: 2.465s, CPU: 2.469s

Date2009-07-07 21:07
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: In/Out Channels
Does
outch 15,ain1,16,ain1
work when you declare nchnls=4?
Curious -
	joachim


Am 07.07.2009 um 18:28 schrieb Charles Gran:

> My soundcard actually has 4ins and 16outs.  i can use inch/outch as
> long as I set the nchannel to 4 or less:
>
> 
> 
> -odac4 -iadc4 -b100 -B1024
> 
>
> 
> sr = 44100
> ksmps = 10
> nchnls = 16
> 0dbfs = 1
>
> instr 1
> ain1 inch 1
> outch 15,ain1,16,ain1
> endin
> 
>
> 
> i1 0 3600
> e
> 
> 
>
> PortMIDI real time MIDI plugin for Csound
> PortMIDI real time MIDI plugin for Csound
> PortAudio real-time audio module for Csound
> PortAudio real-time audio module for Csound
> virtual_keyboard real time MIDI plugin for Csound
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> 0dBFS level = 32768.0
> Csound version 5.10 (double samples) Jan  9 2009
> Csound version 5.10 (double samples) Jan  9 2009
> libsndfile-1.0.18pre24
> libsndfile-1.0.18pre24
> Reading options from $CSOUNDRC: C:\Csound\.csoundrc
> Reading options from $CSOUNDRC: C:\Csound\.csoundrc
> UnifiedCSD:  inch-outch.csd
> UnifiedCSD:  inch-outch.csd
> STARTING FILE
> STARTING FILE
> Creating options
> Creating options
> Creating orchestra
> Creating orchestra
> Creating score
> Creating score
> orchname:  c:\temp\cs494.orc
> orchname:  c:\temp\cs494.orc
> scorename: c:\temp\cs499.sco
> scorename: c:\temp\cs499.sco
> rtaudio: PortAudio module enabled ... rtaudio: PortAudio module
> enabled ... using callback interface
> using callback interface
> rtmidi: PortMIDI module enabled
> rtmidi: PortMIDI module enabled
> orch compiler:
> orch compiler:
> 9 lines read
> 9 lines read
> 		instr	instr	1	1	
>
> Elapsed time at end of orchestra compile: real: 0.063s, CPU: 0.063s
> Elapsed time at end of orchestra compile: real: 0.063s, CPU: 0.063s
> sorting score ...
> sorting score ...
> 	... done
> 	... done
> Elapsed time at end of score sort: real: 0.064s, CPU: 0.063s
> Elapsed time at end of score sort: real: 0.064s, CPU: 0.063s
> Csound version 5.10 (double samples) Jan  9 2009
> Csound version 5.10 (double samples) Jan  9 2009
> displays suppressed
> displays suppressed
> 0dBFS level = 1.0
> 0dBFS level = 1.0
> orch now loaded
> orch now loaded
> audio buffered in 100 sample-frame blocks
> audio buffered in 100 sample-frame blocks
> reading 3200-byte blks of shorts from adc4 (RAW)
> reading 3200-byte blks of shorts from adc4 (RAW)
> PortAudio V19-devel (built Jan  6 2009 21:14:14)
> PortAudio V19-devel (built Jan  6 2009 21:14:14)
> PortAudio: available input devices:
> PortAudio: available input devices:
>   0: Microsoft Sound Mapper - Input
>   0: Microsoft Sound Mapper - Input
>   1: E-DSP Wave [EC00]
>   1: E-DSP Wave [EC00]
>   2: Primary Sound Capture Driver
>   2: Primary Sound Capture Driver
>   3: E-DSP Wave [EC00]
>   3: E-DSP Wave [EC00]
>   4: E-MU ASIO
>   4: E-MU ASIO
> PortAudio: selected input device 'E-MU ASIO'
> PortAudio: selected input device 'E-MU ASIO'
> PortAudio: available output devices:
> PortAudio: available output devices:
>   0: Microsoft Sound Mapper - Output
>   0: Microsoft Sound Mapper - Output
>   1: E-DSP Wave [EC00]
>   1: E-DSP Wave [EC00]
>   2: Primary Sound Driver
>   2: Primary Sound Driver
>   3: E-DSP Wave [EC00]
>   3: E-DSP Wave [EC00]
>   4: E-MU ASIO
>   4: E-MU ASIO
> PortAudio: selected output device 'E-MU ASIO'
> PortAudio: selected output device 'E-MU ASIO'
> *** PortAudio: error: -9998: Invalid number of channels
> Failed to initialise real time audio output
> inactive allocs returned to freespace
> inactive allocs returned to freespace
> end of score.		   overall amps:end of score.		   overall amps:
> 0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000
> 0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000
> 0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000
> 0.00000  0.00000  0.00000  0.00000  0.00000  0.00000  0.00000
> 0.00000  0.00000
> 	   overall samples out of range:
> 	   overall samples out of range:        0        0        0        0
>      0        0        0        0        0        0        0        0
>       0        0        0        0        0        0        0
> 0        0        0        0        0        0        0        0
> 0        0        0        0        0
> 1 errors in performance
>
> 1 errors in performance
> Elapsed time at end of performance: real: 2.465s, CPU: 2.469s
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>