Csound Csound-dev Csound-tekno Search About

[Cs-dev] parser issue

Date2011-07-10 18:02
Frommenno
Subject[Cs-dev] parser issue
i keep reporting errors i get that i think have to do with the new parser -
that is, until someone tells me to stop :)
So here i go: works with the old parser, not with the new one:

greetings
Menno



; Select audio/midi flags here according to platform
;-odac     ;;;realtime audio out
-iadc --old-parser   ;;;uncomment -iadc if realtime audio input is needed
too
; For Non-realtime ouput leave only the line below:
;-o soundin.wav -W ;;; for file output any platform



sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

instr 1 ; choose between mono or stereo file

ichn filenchnls  p4	;check number of channels
print  ichn

if (ichn == 1) then
;mono signal
asig soundin p4	
     outs    asig, asig

else
;stereo signal
aL, aR soundin p4
       outs    aL, aR

endif

endin



i 1 0 3 "fox.wav"	;mono signal
i 1 5 2 "kickroll.wav"	;stereo signal

e




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

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-07-23 19:06
FromSteven Yi
SubjectRe: [Cs-dev] parser issue
Note, I just tried this here and the error I got with the new parser was:

soundin: opened 'fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
soundin: opened 'fox.wav':
         44100 Hz, 1 channel(s), 121569 sample frames
INIT ERROR in instr 1: soundin: number of output args inconsistent
with number of file channels
aL	aR	soundin	p4	0	0	0	0	
	  B  0.000 - note deleted.  i1 had 1 init errors

fox is a mono wav file, while kickroll is stereo.  I get the
impression that this is an opcode overloading problem, and somehow the
the stereo version of soundin is being used instead of the mono
version.

steven



On Sun, Jul 10, 2011 at 1:02 PM, menno  wrote:
> i keep reporting errors i get that i think have to do with the new parser -
> that is, until someone tells me to stop :)
> So here i go: works with the old parser, not with the new one:
>
> greetings
> Menno
>
> 
> 
> ; Select audio/midi flags here according to platform
> ;-odac     ;;;realtime audio out
> -iadc --old-parser   ;;;uncomment -iadc if realtime audio input is needed
> too
> ; For Non-realtime ouput leave only the line below:
> ;-o soundin.wav -W ;;; for file output any platform
> 
> 
>
> sr = 44100
> ksmps = 32
> nchnls = 2
> 0dbfs  = 1
>
> instr 1 ; choose between mono or stereo file
>
> ichn filenchnls  p4     ;check number of channels
> print  ichn
>
> if (ichn == 1) then
> ;mono signal
> asig soundin p4
>     outs    asig, asig
>
> else
> ;stereo signal
> aL, aR soundin p4
>       outs    aL, aR
>
> endif
>
> endin
> 
> 
>
> i 1 0 3 "fox.wav"       ;mono signal
> i 1 5 2 "kickroll.wav"  ;stereo signal
>
> e
> 
> 
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/parser-issue-tp4571423p4571423.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net