Csound Csound-dev Csound-tekno Search About

[Cs-dev] inq issues

Date2011-02-21 15:46
Frommenno
Subject[Cs-dev] inq issues
Hi,

working on examples for the manual, i wanted to try out an example using:
nchns_i and inq.
Is the nchns_i opcode fully operational yet?
In /manual/opcodes i see it written as nchnls_i.html, but i think it must be
nchns_i (without l) right?

The error i get when running the csd -using the old parser for more
information -  below is:

--> error:  failed to find =.?, output arg 'nchns_i' illegal type, line 14:

The csd:



; Select audio/midi flags here according to platform
-odac  -idac --old-parser ;;;realtime audio I/O
; For Non-realtime ouput leave only the line below:
; inq.wav -W ;;; for file output any platform



sr  = 44100
ksmps  = 32
nchnls  = 2	;2 channels out
0dbfs   = 1
nchns_i = 4	;4 channels in

instr 1 ;4 channel in, two channels out

ain1, ain2, ain3, ain4 inq		;grab your mics and sing

adel   linseg 0, p3*.5, 0.02, p3*.5, 0	  ;max delay time = 20ms
adel2  linseg 0.02, p3*.5, 0, p3*.5, 0.02 ;max delay time = 20ms	
aoutl  flanger ain1, adel, .7
aoutr  flanger ain2, adel*2, .8
aoutla flanger ain3, adel2, .9
aoutra flanger ain4, adel2*2, .5

       fout "in_4.wav", 14, aoutl, aoutr, aoutla, aoutra	;write to quad file
16 bits with header
       outs (aoutl+aoutla)*.5, (aoutr+aoutra)*.5		;stereo out

endin



i 1 0 10
e



greetings
Menno
-- 
View this message in context: http://csound.1045644.n5.nabble.com/inq-issues-tp3394314p3394314.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-02-21 17:14
FromJohn ff
SubjectRe: [Cs-dev] inq issues
The variable is called nchnls_i
See Engine/csound_orc_compile.c or Engine/rdorch.c

I believe that it is working in all cases -- if not I want to know

==John ffitch

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-02-21 18:08
Frommenno
SubjectRe: [Cs-dev] inq issues
Ah.
in the manual it is written as nchns_i.
But i can change that.

Bigger issue is that when i run my csd - and it should run for 10 seconds -,
it hangs. 
Because i override the CsoundOptions with Jack settings (-+rtaudio=jack
-odac -iadc) i can see in gladish that 2 inputs and 2 outputs are created
and not 4 inputs and 2 outputs.
In gladish i can manually make the jack connections from inputs to app to
outputs. But in my csd i ask 4 inputs, but they are not created.
When i do nchnls = 4 then 4 inputs and 4 outputs are created. 
I can not give nchnls  = 2 and nchnls_i = 4, it seems that nchnls_i = 4 is
ignored.

menno

-- 
View this message in context: http://csound.1045644.n5.nabble.com/inq-issues-tp3394314p3394511.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-02-22 06:55
Fromjohn ffitch
SubjectRe: [Cs-dev] inq issues
I cannot provoke any errors; it sets 4 channel in and 2 out.  I do not
have a quad mic so stopped at that point.
==John ffitch

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-02-22 09:16
Frommenno
SubjectRe: [Cs-dev] inq issues
all right John, thanks for testing. I will try to find the error on my side
later.
 I will upload the example as example of inq into the manual.
Also i will change all mentioning of the nchns_i page to nchnls_i, as seen
on http://www.csounds.com/manual/html/nchnls_i.html

thank you, bye,
menno
-- 
View this message in context: http://csound.1045644.n5.nabble.com/inq-issues-tp3394314p3395254.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net