Csound Csound-dev Csound-tekno Search About

[Cs-dev] Problem with arrays

Date2013-06-01 14:52
FromFrancois PINOT
Subject[Cs-dev] Problem with arrays
AttachmentsNone  None  
Hello devs,

the following instructions yield an error:

kS[]   fillarray  1, 2, 3
kT[]   = 2 - kS

and these as well:

kS[]   fillarray  1, 2, 3
kT[]   = -kS

The same lines with a + sign instead of a - sign don't cause any trouble.

Regards

Francois

Date2013-06-01 15:06
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Problem with arrays
Thanks; will ake a look after lunch
==John ff

> Hello devs,
>
> the following instructions yield an error:
>
> kS[]   fillarray  1, 2, 3
> kT[]   = 2 - kS
>
> and these as well:
>
> kS[]   fillarray  1, 2, 3
> kT[]   = -kS
>
> The same lines with a + sign instead of a - sign don't cause any trouble.
>
> Regards
>
> Francois
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-06-01 15:07
Frompeiman khosravi
SubjectRe: [Cs-dev] Problem with arrays
AttachmentsNone  None  
How doe this work?

kT[]   = 2 - kS










www.peimankhosravi.co.uk || Subscribe to RSS Feed

To receive emails about upcoming concerts visit this page & enter your email address in the 'follow' section.



On 1 June 2013 14:52, Francois PINOT <fggpinot@gmail.com> wrote:
Hello devs,

the following instructions yield an error:

kS[]   fillarray  1, 2, 3
kT[]   = 2 - kS

and these as well:

kS[]   fillarray  1, 2, 3
kT[]   = -kS

The same lines with a + sign instead of a - sign don't cause any trouble.

Regards

Francois

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-06-01 16:10
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Problem with arrays
> How doe this work?
>
> kT[]   = 2 - kS

it shpild do kT[i] = 2-kS[i] for i upto size of kS



------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-06-01 16:18
Frompeiman khosravi
SubjectRe: [Cs-dev] Problem with arrays
AttachmentsNone  None  
Aha,  I see. That's nice!

Thanks for the explanation. 

P






www.peimankhosravi.co.uk || Subscribe to RSS Feed

To receive emails about upcoming concerts visit this page & enter your email address in the 'follow' section.



On 1 June 2013 16:10, <jpff@cs.bath.ac.uk> wrote:
> How doe this work?
>
> kT[]   = 2 - kS

it shpild do kT[i] = 2-kS[i] for i upto size of kS



------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-06-01 16:28
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Problem with arrays
believed fixed in git -- my typo

 Hello devs,
>
> the following instructions yield an error:
>
> kS[]   fillarray  1, 2, 3
> kT[]   = 2 - kS
>
> and these as well:
>
> kS[]   fillarray  1, 2, 3
> kT[]   = -kS
>
> The same lines with a + sign instead of a - sign don't cause any trouble.
>
> Regards
>
> Francois
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-06-01 16:53
FromPINOT Francois
SubjectRe: [Cs-dev] Problem with arrays
kT[] = 2 - kS works now.

But kT[] = -kS still raises an error:

Parsing successful!
error:  Unable to find opcode entry for '##mul' with matching argument 
types:
Found: k ##mul c[k]
Line: 13 Loc: 1
Parsing failed due to 1 semantic error!
cannot compile orchestra

Le 01/06/2013 17:28, jpff@cs.bath.ac.uk a écrit :
> believed fixed in git -- my typo
>
>   Hello devs,
>> the following instructions yield an error:
>>
>> kS[]   fillarray  1, 2, 3
>> kT[]   = 2 - kS
>>
>> and these as well:
>>
>> kS[]   fillarray  1, 2, 3
>> kT[]   = -kS
>>
>> The same lines with a + sign instead of a - sign don't cause any trouble.
>>
>> Regards
>>
>> Francois
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>> It's a free troubleshooting tool designed for production
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-06-01 19:35
FromSteven Yi
SubjectRe: [Cs-dev] Problem with arrays
I think unary minus with arrays is now fixed.  It had some of the
older semantic handling code and updating to the newer arg synthesis
code seems to have fixed it.  Could you please confirm Francois?

Thanks!
steven

On Sat, Jun 1, 2013 at 11:53 AM, PINOT Francois  wrote:
> kT[] = 2 - kS works now.
>
> But kT[] = -kS still raises an error:
>
> Parsing successful!
> error:  Unable to find opcode entry for '##mul' with matching argument
> types:
> Found: k ##mul c[k]
> Line: 13 Loc: 1
> Parsing failed due to 1 semantic error!
> cannot compile orchestra
>
> Le 01/06/2013 17:28, jpff@cs.bath.ac.uk a écrit :
>> believed fixed in git -- my typo
>>
>>   Hello devs,
>>> the following instructions yield an error:
>>>
>>> kS[]   fillarray  1, 2, 3
>>> kT[]   = 2 - kS
>>>
>>> and these as well:
>>>
>>> kS[]   fillarray  1, 2, 3
>>> kT[]   = -kS
>>>
>>> The same lines with a + sign instead of a - sign don't cause any trouble.
>>>
>>> Regards
>>>
>>> Francois
>>> ------------------------------------------------------------------------------
>>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>>> It's a free troubleshooting tool designed for production
>>> Get down to code-level detail for bottlenecks, with <2% overhead.
>>> Download for free and get started troubleshooting in minutes.
>>> http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>> It's a free troubleshooting tool designed for production
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap2
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-06-01 20:21
FromFrancois PINOT
SubjectRe: [Cs-dev] Problem with arrays
AttachmentsNone  None  
Ok, unary minus with arrays works now. Many thanks John and Steven for fixing this.

Regards

Francois


2013/6/1 Steven Yi <stevenyi@gmail.com>
I think unary minus with arrays is now fixed.  It had some of the
older semantic handling code and updating to the newer arg synthesis
code seems to have fixed it.  Could you please confirm Francois?

Thanks!
steven

On Sat, Jun 1, 2013 at 11:53 AM, PINOT Francois <fggpinot@gmail.com> wrote:
> kT[] = 2 - kS works now.
>
> But kT[] = -kS still raises an error:
>
> Parsing successful!
> error:  Unable to find opcode entry for '##mul' with matching argument
> types:
> Found: k ##mul c[k]
> Line: 13 Loc: 1
> Parsing failed due to 1 semantic error!
> cannot compile orchestra
>
> Le 01/06/2013 17:28, jpff@cs.bath.ac.uk a écrit :
>> believed fixed in git -- my typo
>>
>>   Hello devs,
>>> the following instructions yield an error:
>>>
>>> kS[]   fillarray  1, 2, 3
>>> kT[]   = 2 - kS
>>>
>>> and these as well:
>>>
>>> kS[]   fillarray  1, 2, 3
>>> kT[]   = -kS
>>>
>>> The same lines with a + sign instead of a - sign don't cause any trouble.
>>>
>>> Regards
>>>
>>> Francois
>>> ------------------------------------------------------------------------------
>>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>>> It's a free troubleshooting tool designed for production
>>> Get down to code-level detail for bottlenecks, with <2% overhead.
>>> Download for free and get started troubleshooting in minutes.
>>> http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>> It's a free troubleshooting tool designed for production
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap2
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-06-01 20:22
FromSteven Yi
SubjectRe: [Cs-dev] Problem with arrays
Thanks for reporting and confirming!

On Sat, Jun 1, 2013 at 3:21 PM, Francois PINOT  wrote:
> Ok, unary minus with arrays works now. Many thanks John and Steven for
> fixing this.
>
> Regards
>
> Francois
>
>
> 2013/6/1 Steven Yi 
>>
>> I think unary minus with arrays is now fixed.  It had some of the
>> older semantic handling code and updating to the newer arg synthesis
>> code seems to have fixed it.  Could you please confirm Francois?
>>
>> Thanks!
>> steven
>>
>> On Sat, Jun 1, 2013 at 11:53 AM, PINOT Francois 
>> wrote:
>> > kT[] = 2 - kS works now.
>> >
>> > But kT[] = -kS still raises an error:
>> >
>> > Parsing successful!
>> > error:  Unable to find opcode entry for '##mul' with matching argument
>> > types:
>> > Found: k ##mul c[k]
>> > Line: 13 Loc: 1
>> > Parsing failed due to 1 semantic error!
>> > cannot compile orchestra
>> >
>> > Le 01/06/2013 17:28, jpff@cs.bath.ac.uk a écrit :
>> >> believed fixed in git -- my typo
>> >>
>> >>   Hello devs,
>> >>> the following instructions yield an error:
>> >>>
>> >>> kS[]   fillarray  1, 2, 3
>> >>> kT[]   = 2 - kS
>> >>>
>> >>> and these as well:
>> >>>
>> >>> kS[]   fillarray  1, 2, 3
>> >>> kT[]   = -kS
>> >>>
>> >>> The same lines with a + sign instead of a - sign don't cause any
>> >>> trouble.
>> >>>
>> >>> Regards
>> >>>
>> >>> Francois
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>> >>> It's a free troubleshooting tool designed for production
>> >>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> >>> Download for free and get started troubleshooting in minutes.
>> >>>
>> >>> http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Get 100% visibility into Java/.NET code with AppDynamics Lite
>> >> It's a free troubleshooting tool designed for production
>> >> Get down to code-level detail for bottlenecks, with <2% overhead.
>> >> Download for free and get started troubleshooting in minutes.
>> >> http://p.sf.net/sfu/appdyn_d2d_ap2
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Get 100% visibility into Java/.NET code with AppDynamics Lite
>> > It's a free troubleshooting tool designed for production
>> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> > Download for free and get started troubleshooting in minutes.
>> > http://p.sf.net/sfu/appdyn_d2d_ap2
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>> It's a free troubleshooting tool designed for production
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap2
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net