Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4824] RE: [Csnd] FLcount error in CS5

Date2004-06-15 22:05
From"gogins@pipeline.com"
Subject[CSOUND-DEV:4824] RE: [Csnd] FLcount error in CS5
OK, I have committed a fix in csound5 CVS for this. 

However, my fix is simply to remove one of the "i" input parameter
declarations from entry2.c. 

This is correct if the "z" input parameter code is supposed to declare one
or more krate input parameters.

But if the "z" input parameter code is supposed to declare _zero_ or more
krate input parameters, then what I did is wrong, and the input type
declaration parsing in Csound 5 has a bug.

Original Message:
-----------------
From: Art Hunkins abhunkin@uncg.edu
Date: Tue, 15 Jun 2004 16:49:51 -0400
To: csound@lists.bath.ac.uk
Subject: [Csnd] FLcount error in CS5


With Luis' help, I was able to clearly isolate the problem with FLcount in
Csound5.

As the attached file demonstrates, FLcount is expecting one more variable
than is required when an instrument is not being triggered (i.e., when the
value of iopcode is -1).

Adding an extra variable of 0 makes FLcount work properly; but this and any
further values (p-fields of the instrument being triggered) should be
optional.

When the additional variable is not supplied, you get an INIT FAILURE
"insufficient # of variables" error.

So, currently, for the usual case, FLcount is broken in CS5, and I trust
someone will fix it. Thanks.

Art Hunkins


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .