Csound5 issue: FLTK and Macro expansion

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Csound5 issue: FLTK and Macro expansion

Ben McAllister
Hi -

First - devs: thanks so much for your work on Csound5 and the API - I
wish I could've made time to pitch in.

----


After trying to run the attached file (VCS3GUI.csd) in csound5
(csound5-2005-06-26.zip) I get:

INIT ERROR in instr 0: FLbutton: invalid button type

for all of my buttons. It works ok in CsoundAV, and it appears that
the FLbutton syntax in CS5 remains unchanged.  A bit of the console
output suggests macro expansion is the culprit:

INIT ERROR in instr 0: FLbutton: invalid button type
gkbutton1a      ihandle1a       FLbutton        " "     1       0       2
25      20      100     #i301   -1
INIT ERROR in instr 0: FLbutton: invalid button type
gkbutton1b      ihandle1b       FLbutton        " "     1       0       2
25      20      #i303   #i302   -1
INIT ERROR in instr 0: FLbutton: invalid button type
gkbutton1c      ihandle1c       FLbutton        " "     1       0       2
25      20      #i305   #i304   -1


If you look at my csd, you'll see I'm using a macro as a base and
adding an offset.  I assume this is allowed, so maybe this file makes
a good test case.

While we're on the topic, is there debug output definitely post-macro expansion?

Thanks so much -
Ben McAllister
http://www.listenfaster.com

VCS3GUI.csd (60K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Csound5 issue: FLTK and Macro expansion

Istvan Varga
Ben McAllister wrote:

> After trying to run the attached file (VCS3GUI.csd) in csound5
> (csound5-2005-06-26.zip) I get:
>
> INIT ERROR in instr 0: FLbutton: invalid button type

I could not reproduce this error on Linux, and the CSD file also
loaded without problems when using csound.exe or csound32.exe with
the environment variables correctly set up.
However, with an incorrect setup of environment variables (that is,
setting OPCODEDIR to the 'lib' directory, but not setting OPCODEDIR64),
I got the exact same FLbutton error messages.
So, assuming that you have 'csound.exe' in C:\csound5\bin, you need
to set the environment variables as follows:
   OPCODEDIR   C:\csound5\lib
   OPCODEDIR64 C:\csound5\lib64
optionally, you can also set
   CSOUNDRC    C:\csound5\.csoundrc
correct the paths according to your installation.
Note that 'csound.exe' uses 64 bit floats and searches for plugins in
OPCODEDIR64, and 'csound32.exe' has 32 bit precision (but is faster) and
uses plugins from OPCODEDIR.
If you set CSOUNDRC, then you can specify the default command line options
in that file.
--
Send bugs reports to this list.
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Csound5 issue: FLTK and Macro expansion

Marc Demers
In reply to this post by Ben McAllister
Hi,

Your CSD file work perfectly on my system (WindowsME with
Csound5-2005-06-26). I get the same sound as with the file included int the
CsoundAV full installation. The two works fine.

- mdd
----- Original Message -----
From: "Ben McAllister" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, July 02, 2005 6:46 PM
Subject: [Csnd] Csound5 issue: FLTK and Macro expansion


Hi -

First - devs: thanks so much for your work on Csound5 and the API - I
wish I could've made time to pitch in.

----


After trying to run the attached file (VCS3GUI.csd) in csound5
(csound5-2005-06-26.zip) I get:

INIT ERROR in instr 0: FLbutton: invalid button type

for all of my buttons. It works ok in CsoundAV, and it appears that
the FLbutton syntax in CS5 remains unchanged.  A bit of the console
output suggests macro expansion is the culprit:

INIT ERROR in instr 0: FLbutton: invalid button type
gkbutton1a      ihandle1a       FLbutton        " "     1       0       2
25      20      100     #i301   -1
INIT ERROR in instr 0: FLbutton: invalid button type
gkbutton1b      ihandle1b       FLbutton        " "     1       0       2
25      20      #i303   #i302   -1
INIT ERROR in instr 0: FLbutton: invalid button type
gkbutton1c      ihandle1c       FLbutton        " "     1       0       2
25      20      #i305   #i304   -1


If you look at my csd, you'll see I'm using a macro as a base and
adding an offset.  I assume this is allowed, so maybe this file makes
a good test case.

While we're on the topic, is there debug output definitely post-macro
expansion?

Thanks so much -
Ben McAllister
http://www.listenfaster.com



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.8/37 - Release Date: 2005-07-01

--
Send bugs reports to this list.
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Csound5 issue: FLTK and Macro expansion

Marc Demers
In reply to this post by Istvan Varga
Hi,

The correct script of the lines to be add to the autoexec.bat file of
Windows is:

@ECHO OFF
SET PATH=%PATH%;C:\csound5\bin
SET OPCODEDIR=C:\csound5\lib
SET OPCODEDIR64=C:\csound5\lib64
SET CSOUNDRC=C:\csound5\.csoundrc

You have to reboot your PC before using Csound5.

- mdd

----- Original Message -----
From: "Istvan Varga" <[hidden email]>
To: <[hidden email]>
Sent: Sunday, July 03, 2005 6:59 AM
Subject: Re: [Csnd] Csound5 issue: FLTK and Macro expansion


> Ben McAllister wrote:
>
> > After trying to run the attached file (VCS3GUI.csd) in csound5
> > (csound5-2005-06-26.zip) I get:
> >
> > INIT ERROR in instr 0: FLbutton: invalid button type
>
> I could not reproduce this error on Linux, and the CSD file also
> loaded without problems when using csound.exe or csound32.exe with
> the environment variables correctly set up.
> However, with an incorrect setup of environment variables (that is,
> setting OPCODEDIR to the 'lib' directory, but not setting OPCODEDIR64),
> I got the exact same FLbutton error messages.
> So, assuming that you have 'csound.exe' in C:\csound5\bin, you need
> to set the environment variables as follows:
>    OPCODEDIR   C:\csound5\lib
>    OPCODEDIR64 C:\csound5\lib64
> optionally, you can also set
>    CSOUNDRC    C:\csound5\.csoundrc
> correct the paths according to your installation.
> Note that 'csound.exe' uses 64 bit floats and searches for plugins in
> OPCODEDIR64, and 'csound32.exe' has 32 bit precision (but is faster) and
> uses plugins from OPCODEDIR.
> If you set CSOUNDRC, then you can specify the default command line options
> in that file.
> --
> Send bugs reports to this list.
> To unsubscribe, send email to [hidden email]



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.8/37 - Release Date: 2005-07-01

--
Send bugs reports to this list.
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Csound5 issue: FLTK and Macro expansion

Ben McAllister
Hi Guys -
Thanks for the simple solution :) I was looking at the manual
accompanying 6/26 drop, specifically at the Configuration page under
Installation (csound5/manual/ch06s02.html), which only mentions
setting OPCODEDIR.  Maybe OPCODEDIR64 and CSOUNDRC are mentioned
somewhere else?  Just a note to include them here on the config page
in the manual, then.

THANKS SO MUCH for taking the time to check this out -
Ben McAllister
http://www.listenfaster.com
--
Send bugs reports to this list.
To unsubscribe, send email to [hidden email]