Csound Csound-dev Csound-tekno Search About

[Cs-dev] Another parser problem

Date2010-09-18 18:03
Fromjohn ffitch
Subject[Cs-dev] Another parser problem
This one failed to run before two fixes

sr      =           44100
nchnls 	= 		2

gi1 ftgen 1, 0, 4096, 10, 1
gi2 ftgen 2, 0, 4096, 7, -1, 4096, 1    ; sawtooth
gi3 ftgen 3, 0, 4096, 7,  0, 1024, 1, 2048, -1, 1024, 0  ;triangle

instr 101,102,103
  iamp =      ampdbfs(p5)
  a1   oscil  iamp, p4, p1-100
  kenv expseg 1, p3, .01
  a1   =      a1 * kenv
       outs   a1, a1
endin
 
Error message is  perf-pass statements illegal in header blk

Works in old parser

First I fixed a bug in the multiple instruments

the other problem was that unary minus was being parsed as a k-rate
multiply (rather than an i-rate) and so was not llowed in instr 0.

==John ffitch

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net