Csound Csound-dev Csound-tekno Search About

[Csnd] New parser

Date2010-11-15 21:50
FromRene Djack
Subject[Csnd] New parser
Hi list,

I am confused with the flag --new-parser.
When i compile csound the new parser is selected by default, so when / why to use --new-parser?

Many csd give problems with new parser for example:

If i use vco2 opcode within a if/then/else i get the message: PERF ERROR in instr 1: vco2: not initialised


Tested on Ubuntu 10.04 with csound- cvs (double samples) Nov  8 2010

Cheers,
René

 ;vco2_test.csd
 <CsoundSynthesizer>
 <CsOptions>
 </CsOptions>
 <CsInstruments>
 sr = 44100
ksmps = 10
nchnls = 1

 gkinput init 1

instr 1
if gkinput == 0 then
  asig = 0
else
  asig vco2 10000, 110.0 ;SAWTOOTH WAVE
endif

out asig
endin
</CsInstruments>
<CsScore>
i 1 0 1
</CsScore>
</CsoundSynthesizer>