Re: [Csnd-dev] Csound 7 errors

Dave Seidel <[email protected]>
Newsgroups gmane.comp.audio.csound.devel
Message-ID <CAMnrweA9pjSu2q4QOc66VJ+XFQbmETO5Q+QiCjuL39unFvernQ@mail.gmail.com>
Makes sense, thanks.

On Sun, Sep 8, 2024 at 4:19 PM vlz <[email protected]> wrote:

> > On 8 Sep 2024, at 20:31, Dave Seidel <[email protected]> wrote:
> >
> > Thanks, but wouldn't that be considered an incompatibility with existing
> code? I 've been using this for years, incorrect or not.
>
> It’s a Csound 6 parser bug in the function syntax. If you replace it with
> the op syntax,
>
> gk_centaur         ftgen 80, 0, 13, -2, 1, 21/20, 9/8, 7/6, 5/4, 4/3, 7/5,
> 3/2, 14/9, 5/3, 7/4, 15/8, 2)
>
> you get an error in Csound 6
> error: syntax error, unexpected ')', expecting NEWLINE or ','  (token ")")
>  from file test.csd (1), line 15:
>  >>> gk_centaur         ftgen 80, 0, 13, -2, 1, 21/20, 9/8, 7/6, 5/4, 4/3,
> 7/5, 3/2, 14/9, 5/3, 7/4, 15/8, 2) <<<
>
> Now, here’s what’s happening with your code. The function code gets
> translated to
>
> #i2  ftgen 80, 0, 13, -2, 1, 21/20, 9/8, 7/6, 5/4, 4/3, 7/5, 3/2, 14/9,
> 5/3, 7/4, 15/8, 2)
> gk_centaur =  #i2
>
> and here is where the bug raises its head
>
> instr 1
> printk2 gk_centaur
> endin
>
> gives
>
> new alloc for instr 1:
>  i1     0.00000
>
> > Anyway, I fixed it, but was then warned that OPCODE7DIR64 was not set.
> Shouldn't this be set by the installer. Anyway, I fixed that (but I saw
> that Csound 7 is installed to C:\Program Files\Csound6_x64\ -- hopefully
> this will also be fixed in the installer).
>
> I am not sure about the state of any installer outside Mac which I
> maintain. I would say it’s not ready for production, since it will need
> some adaptation for Csound 7.
> You are welcome to put a PR through with a robust Windows installer.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.