New parser

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

New parser

Rene Jopi
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é

Partikkel.csd (440 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: New parser

Tito Latini
> ;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 [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: New parser

rory walsh
Tito, you're a legend!

On Saturday, 11 February 2012, Tito Latini <[hidden email]> 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 [hidden email] with body "unsubscribe csound"
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: New parser

Tito Latini
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 [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: New parser

Steven Yi
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 <[hidden email]> 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 [hidden email] 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 [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: New parser

Rene Jopi
Thanks a lot, Partikkel is sounding again :)
René

Le 12 février 2012 01:07, Steven Yi <[hidden email]> 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 <[hidden email]> 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 [hidden email] 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 [hidden email] with body "unsubscribe csound"


Loading...