Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] parser issue

Date2011-07-26 15:29
Fromjohn ffitch
SubjectRe: [Cs-dev] parser issue
AttachmentsNone  None  
The parser error is still the same one as all recent complaints; the
if-then-else-endif does not get the i,k,i+k cases correct.
==John ffitch

>>>>> "Steven" == Steven Yi  writes:

 Steven> Note, I just tried this here and the error I got with the new parser was:

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

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

 Steven> steven



 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
 >> 
 >> 
 >> 


Date2011-07-26 17:44
FromSteven Yi
SubjectRe: [Cs-dev] parser issue
Following up: John's changes in git have fixed up working with this CSD. :)

On Tue, Jul 26, 2011 at 10:29 AM, john ffitch  wrote:
> The parser error is still the same one as all recent complaints; the
> if-then-else-endif does not get the i,k,i+k cases correct.
> ==John ffitch
>
>>>>>> "Steven" == Steven Yi  writes:
>
>  Steven> Note, I just tried this here and the error I got with the new parser was:
>
>  Steven> soundin: opened 'fox.wav':
>  Steven>          44100 Hz, 1 channel(s), 121569 sample frames
>  Steven> soundin: opened 'fox.wav':
>  Steven>          44100 Hz, 1 channel(s), 121569 sample frames
>  Steven> INIT ERROR in instr 1: soundin: number of output args inconsistent
>  Steven> with number of file channels
>  Steven> aL     aR      soundin p4      0       0       0       0
>  Steven>          B  0.000 - note deleted.  i1 had 1 init errors
>
>  Steven> fox is a mono wav file, while kickroll is stereo.  I get the
>  Steven> impression that this is an opcode overloading problem, and somehow the
>  Steven> the stereo version of soundin is being used instead of the mono
>  Steven> version.
>
>  Steven> steven
>
>
>
>  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
>  >> 
>  >> 
>  >>
>
>
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net