[Csnd-dev] Parser issue
Date | 2022-09-12 07:29 |
From | Francois PINOT |
Subject | [Csnd-dev] Parser issue |
The following csd ran perfectly on csound compiled from sources in february 2022 (commit: 36fafbe581b28204f764837e06849b2f4e0cba6e):
<CsoundSynthesizer> <CsOptions> -o dac -d </CsOptions> <CsInstruments> instr 1 k1 = init(p5) aphs = phasor(k1) asig = tablei(aphs, 1, 1, 0, 1) out(p4*asig) k1 += 1 endin </CsInstruments> <CsScore> f 1 0 8192 10 1 i 1 0 1 10000 330 e </CsScore> With csound compiled recently from sources (commit: 95007834d8afc68b9ae465a6f65b93b23ae41709), I get two errors. line 7 ( k1 = init(p5) ) causes the following error: error: Unable to find opcode entry for '=' with matching argument types: Found: k = S k1 = init ... Line: 8 from file test2.csd (1),Parsing failed due to syntax errors Stopping on parser failure cannot compile orchestra and line 9 ( asig = tablei(aphs, 1, 1, 0, 1) ) causes the following error: new alloc for instr 1: INIT ERROR in instr 1 (opcode tablei.k) line 9: table: index type inconsistent with output from file test1.csd (1),#k1 tablei.k aphs 1 1 0 1 B 0.000 - note deleted. i1 had 1 init errors Are these issues new bugs in the parser? Regards François |
Date | 2022-09-12 09:26 |
From | Tarmo Johannes |
Subject | Re: [Csnd-dev] Parser issue |
Hi, Check what is the version of newly built Csound. If it Csound 7, it might explain the problem. Develop branch is now for Cs7, uou meed to checkout csound6 branch for version 6. My guess... Tarmo E, 12. september 2022 09:30 Francois PINOT <fggpinot@gmail.com> kirjutas:
|
Date | 2022-09-12 09:30 |
From | Francois PINOT |
Subject | Re: [Csnd-dev] Parser issue |
--Csound version 6.17 (double samples) Sep 10 2022 [commit: 95007834d8afc68b9ae465a6f65b93b23ae41709] Le lun. 12 sept. 2022 à 10:27, Tarmo Johannes <trmjhnns@gmail.com> a écrit :
|
Date | 2022-09-12 15:59 |
From | john |
Subject | Re: [Csnd-dev] Parser issue |
I can reproduce, Starte a git bisectoperation. On Mon, 12 Sep 2022, Francois PINOT wrote: > --Csound version 6.17 (double samples) Sep 10 2022 > [commit: 95007834d8afc68b9ae465a6f65b93b23ae41709] > > Le lun. 12 sept. 2022 à 10:27, Tarmo Johannes |
Date | 2022-09-12 16:48 |
From | john |
Subject | Re: [Csnd-dev] Parser issue |
I cannot find a place where this worked. I ve gone back to Dc 2021 and earlier but it always fails. It works in traditioal syntax i suspect that the types in k1 = init(p5) Does not match k1 = i_type as th init is being seen as an opcode. i checked cs7 and it works there. Time to think! ==John ff On Mon, 12 Sep 2022, john wrote: > I can reproduce, Starting a git bisect operation. > > > > On Mon, 12 Sep 2022, Francois PINOT wrote: > >> --Csound version 6.17 (double samples) Sep 10 2022 >> [commit: 95007834d8afc68b9ae465a6f65b93b23ae41709] >> >> Le lun. 12 sept. 2022 à 10:27, Tarmo Johannes |