Re: [Csnd-dev] Csound 7 errors
Dave Seidel <[email protected]>
| Newsgroups | gmane.comp.audio.csound.devel |
|---|---|
| Message-ID | <CAMnrweB4yG6BykK=E0vnMypbsOO05+ma1u-H3JGktCr620ZhZQ@mail.gmail.com> |
Thanks, but wouldn't that be considered an incompatibility with existing code? I 've been using this for years, incorrect or not. 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). Now, the problem is error: -+rtmidi='portmidi': unknown module *** error opening MIDI in device: -1 (Unknown MIDI error) I'm using -+rtmidi=portmidi. There is no portmidi.dll in the plugins64 directory. So I am still unable to proceed. On Sun, Sep 8, 2024 at 3:03 PM vlz <[email protected]> wrote: > It looks like the old parser let this expression compile when it should > not have. > The ftgen does not have a k-rate output, see > > https://csound.com/manual/ftgen.html > > and this is what the error message is saying. If you change to gi_xxxx, it > will work. > > The new parser is more strict, I guess. Steven can say more. > > > > On 8 Sep 2024, at 18:52, Dave Seidel <[email protected]> wrote: > > > > Obviously the line number is unhelpful (just like in 6), but these are > the only ftgen statements in the code. > > > > On Sun, Sep 8, 2024 at 1:44 PM Dave Seidel <[email protected]> > wrote: > > Now that I \have csound 7, I just tries running the code that works in > csound 6, and got the error message: > > > > error: Unable to find opcode entry for 'ftgen' with matching argument > types: > > > > Found: > > k ftgen ccccciiiiiiiiiiic > > > > Candidates: > > i ftgen iiiiim > > i ftgen.S iiiSim > > i ftgen.iS iiiiSm > > i ftgen.SS iiiSSm > > i ftgen iiiii[] > > i ftgen iiiSi[] > > > > Line: 24 > > from file symmetry.csd (1) > > Parsing failed due to syntax errors > > > > The ftgen code is: > > > > ; sine table > > gi_sin = ftgen(0, 0, 2^18, 10, 1) > > > > ; tanh function > > gi_tanh = ftgen(0, 0, 16385, "tanh", -157, 157, 0) > > > > 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) > > gk_meta_slendro = ftgen(81, 0, 13, -2, 1, 65/64, 9/8, 37/32, > 151/128, 5/4, 21/16, 43/32, 3/2, 49/32, 7/4, 57/32, 2) > > gk_pyth = ftgen(82, 0, 13, -2, 1, 2187/2048, 9/8, 32/27, > 81/64, 4/3, 729/512, 3/2, 6561/4096, 27/16, 16/9, 243/128, 2) > > gk_bihexany = ftgen(83, 0, 13, -2, 1, 35/33, 7/6, 5/4, 14/11, > 15/11, 3/2, 35/22, 5/3, 7/4, 20/11, 21/11, 2) >