Csound Csound-dev Csound-tekno Search About

[Csnd] New parser

Date2012-02-11 19:47
FromRene Jopi
Subject[Csnd] New parser
AttachmentsPartikkel.csd  
Hi all, 

On Csound5.16.1 release, Ubuntu 10.04.

When using the new parser, I have the following error:

;INIT ERROR in instr 2: invalid channel name,  iGrAmp  chnget.i "$parm"

instr 1
iGrAmp = 11.23
chnset iGrAmp, "GrAmp" 
endin

#define ReadPreset(parm) #
i$parm chnget "$parm"
#

instr 2
$ReadPreset(GrAmp)
print iGrAmp
endin

(Above csd is an abstract of Partikkel from Oeyvind Brandtsegg using a lot of macro).

Hope to  use the new parser also with this good instrument.
Cheers,
René

Date2012-02-11 20:18
FromTito Latini
SubjectRe: [Csnd] New parser
AttachmentsNone  

Date2012-02-11 23:12
FromRory Walsh
SubjectRe: [Csnd] New parser
Tito, you're a legend!

On Saturday, 11 February 2012, Tito Latini <tito.01beta@gmail.com> wrote:
>> ;INIT ERROR in instr 2: invalid channel name,  iGrAmp  chnget.i "$parm"
>
> I had ignored the expansion of a macro inside a string;
> I'm preparing a fix.
>
> tito
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>

Date2012-02-12 00:02
FromTito Latini
SubjectRe: [Csnd] New parser
AttachmentsNone  

Date2012-02-12 00:07
FromSteven Yi
SubjectRe: [Csnd] New parser
Hahahahhaha, only February, and I am certain that will go down as the
Csounder quote of 2012. :D

On Sun, Feb 12, 2012 at 12:02 AM, Tito Latini  wrote:
> Fixed in git (extensive tests); now the string parsing is better
> in comparison to the old parser. For example
>
>  #define foo #123#
>  prints "\$foo = $foo"
>
> result with the new parser:  "$foo = 123"
> result with the old parser:  " = 1"
>
> Rory, we have the same "diet" (discovered in your uncensured post :)))
>
> tito
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Date2012-02-12 18:05
FromRene Jopi
SubjectRe: [Csnd] New parser
Thanks a lot, Partikkel is sounding again :)
René

Le 12 février 2012 01:07, Steven Yi <stevenyi@gmail.com> a écrit :
Hahahahhaha, only February, and I am certain that will go down as the
Csounder quote of 2012. :D

On Sun, Feb 12, 2012 at 12:02 AM, Tito Latini <tito.01beta@gmail.com> wrote:
> Fixed in git (extensive tests); now the string parsing is better
> in comparison to the old parser. For example
>
>  #define foo #123#
>  prints "\$foo = $foo"
>
> result with the new parser:  "$foo = 123"
> result with the old parser:  " = 1"
>
> Rory, we have the same "diet" (discovered in your uncensured post :)))
>
> tito
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"