Csound Csound-dev Csound-tekno Search About

[Cs-dev] parsing or opcode related?

Date2014-01-08 08:15
FromOeyvind Brandtsegg
Subject[Cs-dev] parsing or opcode related?
Hi,
I've run across some peculiar behaviour, not sure if the error is
related to parsing of expressions or to specific opcodes.
Here:

    instr 1
k1    line    0, p3, 2
k1    tonek (k1/2), 1
a1    oscil    k2, 440, giSine
    outs    a1, a1
    endin

gives:
error: syntax error, unexpected T_OPCODEB  (token "tonek") line 15:
>>>k1   tonek  <<<
Unexpected untyped word k1 when expecting a variable

whereas
k1    tonek k1, 1
works fine
and also upsampling to a rate, using tone instead of tonek (with
expression) , then downsampling works fine. So it seems related to
tonek, and does not occur with tone.
However, working around this bug, I get further in my code and run into a:

error: syntax error, unexpected T_OPCODEB  (token "deltapi") line 36:
>>>     adist1          deltapi  <<<
Unexpected untyped word adist1 when expecting a variable
... haven't tracked down where that one is yet, but it looks very
similar, so perhaps also a problem with deltapi and expression as
argument (?)

Oeyvind



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-08 09:11
Fromfrancesco
SubjectRe: [Cs-dev] parsing or opcode related?
Hello Oeyvind,
the problem with tonek is due to parenthesis:
changing this
 k1    tonek (k1/2), 1 
to this
 k1    tonek k1/2, 1
should works.

ciao,
francesco.





--
View this message in context: http://csound.1045644.n5.nabble.com/parsing-or-opcode-related-tp5731354p5731356.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-08 09:16
Fromjpff
SubjectRe: [Cs-dev] parsing or opcode related?
This clearly relates to my last attempt to fix the spaces before bracket 
issue.  Will take a look


On Wed, 8 Jan 2014, Oeyvind Brandtsegg wrote:

> Hi,
> I've run across some peculiar behaviour, not sure if the error is
> related to parsing of expressions or to specific opcodes.
> Here:
>
>    instr 1
> k1    line    0, p3, 2
> k1    tonek (k1/2), 1
> a1    oscil    k2, 440, giSine
>    outs    a1, a1
>    endin
>
> gives:
> error: syntax error, unexpected T_OPCODEB  (token "tonek") line 15:
>>>> k1   tonek  <<<
> Unexpected untyped word k1 when expecting a variable
>
> whereas
> k1    tonek k1, 1
> works fine
> and also upsampling to a rate, using tone instead of tonek (with
> expression) , then downsampling works fine. So it seems related to
> tonek, and does not occur with tone.
> However, working around this bug, I get further in my code and run into a:
>
> error: syntax error, unexpected T_OPCODEB  (token "deltapi") line 36:
>>>>     adist1          deltapi  <<<
> Unexpected untyped word adist1 when expecting a variable
> ... haven't tracked down where that one is yet, but it looks very
> similar, so perhaps also a problem with deltapi and expression as
> argument (?)
>
> Oeyvind
>
>
>
> -- 
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
>
> http://flyndresang.no/
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://soundcloud.com/t-emp
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-08 09:27
Fromjpff
SubjectRe: [Cs-dev] parsing or opcode related?
Some experimental code got left in the orchestra lexer.  I have a revised 
version now but it always passed my tests programs.  Runs your instrumemt 
but barfs on k2 not having a value

I suspect that means a re-release

==John


On Wed, 8 Jan 2014, Oeyvind Brandtsegg wrote:

> Hi,
> I've run across some peculiar behaviour, not sure if the error is
> related to parsing of expressions or to specific opcodes.
> Here:
>
>    instr 1
> k1    line    0, p3, 2
> k1    tonek (k1/2), 1
> a1    oscil    k2, 440, giSine
>    outs    a1, a1
>    endin
>
> gives:
> error: syntax error, unexpected T_OPCODEB  (token "tonek") line 15:
>>>> k1   tonek  <<<
> Unexpected untyped word k1 when expecting a variable
>
> whereas
> k1    tonek k1, 1
> works fine
> and also upsampling to a rate, using tone instead of tonek (with
> expression) , then downsampling works fine. So it seems related to
> tonek, and does not occur with tone.
> However, working around this bug, I get further in my code and run into a:
>
> error: syntax error, unexpected T_OPCODEB  (token "deltapi") line 36:
>>>>     adist1          deltapi  <<<
> Unexpected untyped word adist1 when expecting a variable
> ... haven't tracked down where that one is yet, but it looks very
> similar, so perhaps also a problem with deltapi and expression as
> argument (?)
>
> Oeyvind
>
>
>
> -- 
>
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
>
> http://flyndresang.no/
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://soundcloud.com/t-emp
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-08 09:42
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] parsing or opcode related?
Good.
Sorry about the k2, it was a leftover from trying the
upsamp/tone/downsamp alternative to tonek.
Oeyvind

2014/1/8 jpff :
> Some experimental code got left in the orchestra lexer.  I have a revised
> version now but it always passed my tests programs.  Runs your instrumemt
> but barfs on k2 not having a value
>
> I suspect that means a re-release
>
> ==John
>
>
> On Wed, 8 Jan 2014, Oeyvind Brandtsegg wrote:
>
>> Hi,
>> I've run across some peculiar behaviour, not sure if the error is
>> related to parsing of expressions or to specific opcodes.
>> Here:
>>
>>    instr 1
>> k1    line    0, p3, 2
>> k1    tonek (k1/2), 1
>> a1    oscil    k2, 440, giSine
>>    outs    a1, a1
>>    endin
>>
>> gives:
>> error: syntax error, unexpected T_OPCODEB  (token "tonek") line 15:
>>>>> k1   tonek  <<<
>> Unexpected untyped word k1 when expecting a variable
>>
>> whereas
>> k1    tonek k1, 1
>> works fine
>> and also upsampling to a rate, using tone instead of tonek (with
>> expression) , then downsampling works fine. So it seems related to
>> tonek, and does not occur with tone.
>> However, working around this bug, I get further in my code and run into a:
>>
>> error: syntax error, unexpected T_OPCODEB  (token "deltapi") line 36:
>>>>>     adist1          deltapi  <<<
>> Unexpected untyped word adist1 when expecting a variable
>> ... haven't tracked down where that one is yet, but it looks very
>> similar, so perhaps also a problem with deltapi and expression as
>> argument (?)
>>
>> Oeyvind
>>
>>
>>
>> --
>>
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>>
>> http://flyndresang.no/
>> http://www.partikkelaudio.com/
>> http://soundcloud.com/brandtsegg
>> http://soundcloud.com/t-emp
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-08 09:48
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] parsing or opcode related?
AttachmentsNone  

Date2014-01-08 10:05
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] parsing or opcode related?
AttachmentsNone  

Date2014-01-08 10:20
FromVictor Lazzarini
SubjectRe: [Cs-dev] parsing or opcode related?
does removing the parenthesis fix it? k1/2 instead of (k1/2) ?


On 8 Jan 2014, at 09:42, Oeyvind Brandtsegg  wrote:

> Good.
> Sorry about the k2, it was a leftover from trying the
> upsamp/tone/downsamp alternative to tonek.
> Oeyvind
> 
> 2014/1/8 jpff :
>> Some experimental code got left in the orchestra lexer.  I have a revised
>> version now but it always passed my tests programs.  Runs your instrumemt
>> but barfs on k2 not having a value
>> 
>> I suspect that means a re-release
>> 
>> ==John
>> 
>> 
>> On Wed, 8 Jan 2014, Oeyvind Brandtsegg wrote:
>> 
>>> Hi,
>>> I've run across some peculiar behaviour, not sure if the error is
>>> related to parsing of expressions or to specific opcodes.
>>> Here:
>>> 
>>>   instr 1
>>> k1    line    0, p3, 2
>>> k1    tonek (k1/2), 1
>>> a1    oscil    k2, 440, giSine
>>>   outs    a1, a1
>>>   endin
>>> 
>>> gives:
>>> error: syntax error, unexpected T_OPCODEB  (token "tonek") line 15:
>>>>>> k1   tonek  <<<
>>> Unexpected untyped word k1 when expecting a variable
>>> 
>>> whereas
>>> k1    tonek k1, 1
>>> works fine
>>> and also upsampling to a rate, using tone instead of tonek (with
>>> expression) , then downsampling works fine. So it seems related to
>>> tonek, and does not occur with tone.
>>> However, working around this bug, I get further in my code and run into a:
>>> 
>>> error: syntax error, unexpected T_OPCODEB  (token "deltapi") line 36:
>>>>>>    adist1          deltapi  <<<
>>> Unexpected untyped word adist1 when expecting a variable
>>> ... haven't tracked down where that one is yet, but it looks very
>>> similar, so perhaps also a problem with deltapi and expression as
>>> argument (?)
>>> 
>>> Oeyvind
>>> 
>>> 
>>> 
>>> --
>>> 
>>> Oeyvind Brandtsegg
>>> Professor of Music Technology
>>> NTNU
>>> 7491 Trondheim
>>> Norway
>>> Cell: +47 92 203 205
>>> 
>>> http://flyndresang.no/
>>> http://www.partikkelaudio.com/
>>> http://soundcloud.com/brandtsegg
>>> http://soundcloud.com/t-emp
>>> 
>>> ------------------------------------------------------------------------------
>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>> organizations don't have a clear picture of how application performance
>>> affects their revenue. With AppDynamics, you get 100% visibility into your
>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>> 
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 
> -- 
> 
> Oeyvind Brandtsegg
> Professor of Music Technology
> NTNU
> 7491 Trondheim
> Norway
> Cell: +47 92 203 205
> 
> http://flyndresang.no/
> http://www.partikkelaudio.com/
> http://soundcloud.com/brandtsegg
> http://soundcloud.com/t-emp
> 
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT 
> organizations don't have a clear picture of how application performance 
> affects their revenue. With AppDynamics, you get 100% visibility into your 
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-08 10:27
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] parsing or opcode related?
Yes, and this also works:
k1    tonek 1*(k1/2), 1
... but it's kind of impractical

John, beware that the error may also happen with opcodes ending with
i, e.g. deltapi

Oeyvind


2014/1/8 Victor Lazzarini :
> does removing the parenthesis fix it? k1/2 instead of (k1/2) ?
>
>
> On 8 Jan 2014, at 09:42, Oeyvind Brandtsegg  wrote:
>
>> Good.
>> Sorry about the k2, it was a leftover from trying the
>> upsamp/tone/downsamp alternative to tonek.
>> Oeyvind
>>
>> 2014/1/8 jpff :
>>> Some experimental code got left in the orchestra lexer.  I have a revised
>>> version now but it always passed my tests programs.  Runs your instrumemt
>>> but barfs on k2 not having a value
>>>
>>> I suspect that means a re-release
>>>
>>> ==John
>>>
>>>
>>> On Wed, 8 Jan 2014, Oeyvind Brandtsegg wrote:
>>>
>>>> Hi,
>>>> I've run across some peculiar behaviour, not sure if the error is
>>>> related to parsing of expressions or to specific opcodes.
>>>> Here:
>>>>
>>>>   instr 1
>>>> k1    line    0, p3, 2
>>>> k1    tonek (k1/2), 1
>>>> a1    oscil    k2, 440, giSine
>>>>   outs    a1, a1
>>>>   endin
>>>>
>>>> gives:
>>>> error: syntax error, unexpected T_OPCODEB  (token "tonek") line 15:
>>>>>>> k1   tonek  <<<
>>>> Unexpected untyped word k1 when expecting a variable
>>>>
>>>> whereas
>>>> k1    tonek k1, 1
>>>> works fine
>>>> and also upsampling to a rate, using tone instead of tonek (with
>>>> expression) , then downsampling works fine. So it seems related to
>>>> tonek, and does not occur with tone.
>>>> However, working around this bug, I get further in my code and run into a:
>>>>
>>>> error: syntax error, unexpected T_OPCODEB  (token "deltapi") line 36:
>>>>>>>    adist1          deltapi  <<<
>>>> Unexpected untyped word adist1 when expecting a variable
>>>> ... haven't tracked down where that one is yet, but it looks very
>>>> similar, so perhaps also a problem with deltapi and expression as
>>>> argument (?)
>>>>
>>>> Oeyvind
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Oeyvind Brandtsegg
>>>> Professor of Music Technology
>>>> NTNU
>>>> 7491 Trondheim
>>>> Norway
>>>> Cell: +47 92 203 205
>>>>
>>>> http://flyndresang.no/
>>>> http://www.partikkelaudio.com/
>>>> http://soundcloud.com/brandtsegg
>>>> http://soundcloud.com/t-emp
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>>> organizations don't have a clear picture of how application performance
>>>> affects their revenue. With AppDynamics, you get 100% visibility into your
>>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>> organizations don't have a clear picture of how application performance
>>> affects their revenue. With AppDynamics, you get 100% visibility into your
>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>> --
>>
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>>
>> http://flyndresang.no/
>> http://www.partikkelaudio.com/
>> http://soundcloud.com/brandtsegg
>> http://soundcloud.com/t-emp
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-08 10:30
Fromjpff
SubjectRe: [Cs-dev] parsing or opcode related?
yes it would.  Only affects opcodes that end in a or k and have an 
argument starting with an open bracket.

I have it fixed here and in git/develop


On Wed, 8 Jan 2014, Victor Lazzarini wrote:

> does removing the parenthesis fix it? k1/2 instead of (k1/2) ?
>
>
> On 8 Jan 2014, at 09:42, Oeyvind Brandtsegg  wrote:
>
>> Good.
>> Sorry about the k2, it was a leftover from trying the
>> upsamp/tone/downsamp alternative to tonek.
>> Oeyvind
>>
>> 2014/1/8 jpff :
>>> Some experimental code got left in the orchestra lexer.  I have a revised
>>> version now but it always passed my tests programs.  Runs your instrumemt
>>> but barfs on k2 not having a value
>>>
>>> I suspect that means a re-release
>>>
>>> ==John
>>>
>>>
>>> On Wed, 8 Jan 2014, Oeyvind Brandtsegg wrote:
>>>
>>>> Hi,
>>>> I've run across some peculiar behaviour, not sure if the error is
>>>> related to parsing of expressions or to specific opcodes.
>>>> Here:
>>>>
>>>>   instr 1
>>>> k1    line    0, p3, 2
>>>> k1    tonek (k1/2), 1
>>>> a1    oscil    k2, 440, giSine
>>>>   outs    a1, a1
>>>>   endin
>>>>
>>>> gives:
>>>> error: syntax error, unexpected T_OPCODEB  (token "tonek") line 15:
>>>>>>> k1   tonek  <<<
>>>> Unexpected untyped word k1 when expecting a variable
>>>>
>>>> whereas
>>>> k1    tonek k1, 1
>>>> works fine
>>>> and also upsampling to a rate, using tone instead of tonek (with
>>>> expression) , then downsampling works fine. So it seems related to
>>>> tonek, and does not occur with tone.
>>>> However, working around this bug, I get further in my code and run into a:
>>>>
>>>> error: syntax error, unexpected T_OPCODEB  (token "deltapi") line 36:
>>>>>>>    adist1          deltapi  <<<
>>>> Unexpected untyped word adist1 when expecting a variable
>>>> ... haven't tracked down where that one is yet, but it looks very
>>>> similar, so perhaps also a problem with deltapi and expression as
>>>> argument (?)
>>>>
>>>> Oeyvind
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Oeyvind Brandtsegg
>>>> Professor of Music Technology
>>>> NTNU
>>>> 7491 Trondheim
>>>> Norway
>>>> Cell: +47 92 203 205
>>>>
>>>> http://flyndresang.no/
>>>> http://www.partikkelaudio.com/
>>>> http://soundcloud.com/brandtsegg
>>>> http://soundcloud.com/t-emp
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>>> organizations don't have a clear picture of how application performance
>>>> affects their revenue. With AppDynamics, you get 100% visibility into your
>>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>> organizations don't have a clear picture of how application performance
>>> affects their revenue. With AppDynamics, you get 100% visibility into your
>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>> --
>>
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>>
>> http://flyndresang.no/
>> http://www.partikkelaudio.com/
>> http://soundcloud.com/brandtsegg
>> http://soundcloud.com/t-emp
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-08 11:30
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] parsing or opcode related?
... and opcodes ending with i
(yes?)
Oeyvind

2014/1/8 jpff :
> yes it would.  Only affects opcodes that end in a or k and have an
> argument starting with an open bracket.
>
> I have it fixed here and in git/develop
>
>
> On Wed, 8 Jan 2014, Victor Lazzarini wrote:
>
>> does removing the parenthesis fix it? k1/2 instead of (k1/2) ?
>>
>>
>> On 8 Jan 2014, at 09:42, Oeyvind Brandtsegg  wrote:
>>
>>> Good.
>>> Sorry about the k2, it was a leftover from trying the
>>> upsamp/tone/downsamp alternative to tonek.
>>> Oeyvind
>>>
>>> 2014/1/8 jpff :
>>>> Some experimental code got left in the orchestra lexer.  I have a revised
>>>> version now but it always passed my tests programs.  Runs your instrumemt
>>>> but barfs on k2 not having a value
>>>>
>>>> I suspect that means a re-release
>>>>
>>>> ==John
>>>>
>>>>
>>>> On Wed, 8 Jan 2014, Oeyvind Brandtsegg wrote:
>>>>
>>>>> Hi,
>>>>> I've run across some peculiar behaviour, not sure if the error is
>>>>> related to parsing of expressions or to specific opcodes.
>>>>> Here:
>>>>>
>>>>>   instr 1
>>>>> k1    line    0, p3, 2
>>>>> k1    tonek (k1/2), 1
>>>>> a1    oscil    k2, 440, giSine
>>>>>   outs    a1, a1
>>>>>   endin
>>>>>
>>>>> gives:
>>>>> error: syntax error, unexpected T_OPCODEB  (token "tonek") line 15:
>>>>>>>> k1   tonek  <<<
>>>>> Unexpected untyped word k1 when expecting a variable
>>>>>
>>>>> whereas
>>>>> k1    tonek k1, 1
>>>>> works fine
>>>>> and also upsampling to a rate, using tone instead of tonek (with
>>>>> expression) , then downsampling works fine. So it seems related to
>>>>> tonek, and does not occur with tone.
>>>>> However, working around this bug, I get further in my code and run into a:
>>>>>
>>>>> error: syntax error, unexpected T_OPCODEB  (token "deltapi") line 36:
>>>>>>>>    adist1          deltapi  <<<
>>>>> Unexpected untyped word adist1 when expecting a variable
>>>>> ... haven't tracked down where that one is yet, but it looks very
>>>>> similar, so perhaps also a problem with deltapi and expression as
>>>>> argument (?)
>>>>>
>>>>> Oeyvind
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Oeyvind Brandtsegg
>>>>> Professor of Music Technology
>>>>> NTNU
>>>>> 7491 Trondheim
>>>>> Norway
>>>>> Cell: +47 92 203 205
>>>>>
>>>>> http://flyndresang.no/
>>>>> http://www.partikkelaudio.com/
>>>>> http://soundcloud.com/brandtsegg
>>>>> http://soundcloud.com/t-emp
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>>>> organizations don't have a clear picture of how application performance
>>>>> affects their revenue. With AppDynamics, you get 100% visibility into your
>>>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>>> organizations don't have a clear picture of how application performance
>>>> affects their revenue. With AppDynamics, you get 100% visibility into your
>>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>> --
>>>
>>> Oeyvind Brandtsegg
>>> Professor of Music Technology
>>> NTNU
>>> 7491 Trondheim
>>> Norway
>>> Cell: +47 92 203 205
>>>
>>> http://flyndresang.no/
>>> http://www.partikkelaudio.com/
>>> http://soundcloud.com/brandtsegg
>>> http://soundcloud.com/t-emp
>>>
>>> ------------------------------------------------------------------------------
>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>> organizations don't have a clear picture of how application performance
>>> affects their revenue. With AppDynamics, you get 100% visibility into your
>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-08 11:49
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] parsing or opcode related?
AttachmentsNone  

Date2014-01-08 12:03
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] parsing or opcode related?
excellent, thanks!

2014/1/8  :
> i, k, a p and few others which I think d not occur yet
> Simple rule is any opcode that ends in a cs5 function will do this.
>
> Fixed in develop now anyway
>
>
> Quoting Oeyvind Brandtsegg :
>
>> ... and opcodes ending with i
>> (yes?)
>> Oeyvind
>>
>> 2014/1/8 jpff :
>>> yes it would.  Only affects opcodes that end in a or k and have an
>>> argument starting with an open bracket.
>>>
>>> I have it fixed here and in git/develop
>>>
>>>
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net