Re: [Csnd-dev] Csound 7 errors

vlz <[email protected]>
Newsgroups gmane.comp.audio.csound.devel
Message-ID <[email protected]>
That may be a windows thing. It won’t happen on Mac or Linux. Csound 6 libs do not load on Csound 7 because of version checking.
On the Mac, they are kept in a different place as well.

> On 8 Sep 2024, at 20:38, Dave Seidel <[email protected]> wrote:
> 
> ...and that was due to their being older DLLs in plugins64. Which is apparently what happens when Csound 7 is installed over Csound 6.
> 
> On Sun, Sep 8, 2024 at 3:35 PM Dave Seidel <[email protected]> wrote:
> Ok, that one was on me, I screwed up the OPCODE7DIR64 setting.
> 
> And now I get "csound command: Segmentation violation" and nothing else. Sigh.
> 
> On Sun, Sep 8, 2024 at 3:31 PM 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.
> 
> 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)
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.