Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev]

Date2013-02-22 09:13
Frommichael.gogins@gmail.com
SubjectRe: [Cs-dev]
AttachmentsNone  None  None  None  

Date2013-02-22 09:25
Frompeiman khosravi
SubjectRe: [Cs-dev] Array syntax
AttachmentsNone  None  
+1

On 22 February 2013 09:13, michael.gogins@gmail.com <michael.gogins@gmail.com> wrote:
It is indeed confusing.

T-Mobile. America’s First Nationwide 4G Network


----- Reply message -----
From: "Andres Cabrera" <mantaraya36@gmail.com>
To: "Developer discussions" <csound-devel@lists.sourceforge.net>
Subject: [Cs-dev] Array syntax
Date: Fri, Feb 22, 2013 1:35 am


Hi,

Array notation is currently:
kvar[] init 6

I think using:
Kvar dim 6

(BTW I think using init here is confusing, and something like "dim" or
"alloc" or "size" would be more appropriate)

would be better because it makes it clear that it is an array of k
variables. That way, it would eventually allow syntax like:

Ksigs portk Ksigs, 0.02

My proposal for array syntax:

http://sourceforge.net/apps/mediawiki/csound/index.php?title=RFC_1-Arrays

Cheers,
Andres

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-02-22 09:30
FromRichard Dobson
SubjectRe: [Cs-dev] Array syntax
Just checking:

in:

kvar[] init 6

is 6 meant to signify the size of the array, or the value with which to 
initialise each element?

Both are important/useful things to be able to do.

Richard Dobson


On 22/02/2013 09:13, michael.gogins@gmail.com wrote:
> It is indeed confusing.
>
> T-Mobile. America’s First Nationwide 4G Network
>
> ----- Reply message -----
> From: "Andres Cabrera" 
> To: "Developer discussions" 
> Subject: [Cs-dev] Array syntax
> Date: Fri, Feb 22, 2013 1:35 am
>
>
> Hi,
>
> Array notation is currently:
> kvar[] init 6
>


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-02-22 09:51
Frompeiman khosravi
SubjectRe: [Cs-dev] Array syntax
AttachmentsNone  None  
That is exactly why the syntax is confusing. This is meant to be the size I think. 

P

On 22 February 2013 09:30, Richard Dobson <richarddobson@blueyonder.co.uk> wrote:
Just checking:

in:

kvar[] init 6

is 6 meant to signify the size of the array, or the value with which to
initialise each element?

Both are important/useful things to be able to do.

Richard Dobson


On 22/02/2013 09:13, michael.gogins@gmail.com wrote:
> It is indeed confusing.
>
> T-Mobile. America’s First Nationwide 4G Network
>
> ----- Reply message -----
> From: "Andres Cabrera" <mantaraya36@gmail.com>
> To: "Developer discussions" <csound-devel@lists.sourceforge.net>
> Subject: [Cs-dev] Array syntax
> Date: Fri, Feb 22, 2013 1:35 am
>
>
> Hi,
>
> Array notation is currently:
> kvar[] init 6
>


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-02-22 10:00
Frompeiman khosravi
SubjectRe: [Cs-dev] Array syntax
AttachmentsNone  None  
I think "alloc" or "defarray" would be better because "size" or "dim" could easily be confused with "return the size".

Then "resize" could be used to resize already allocated arrays.  

P    

On 22 February 2013 09:51, peiman khosravi <peimankhosravi@gmail.com> wrote:
That is exactly why the syntax is confusing. This is meant to be the size I think. 

P


On 22 February 2013 09:30, Richard Dobson <richarddobson@blueyonder.co.uk> wrote:
Just checking:

in:

kvar[] init 6

is 6 meant to signify the size of the array, or the value with which to
initialise each element?

Both are important/useful things to be able to do.

Richard Dobson


On 22/02/2013 09:13, michael.gogins@gmail.com wrote:
> It is indeed confusing.
>
> T-Mobile. America’s First Nationwide 4G Network
>
> ----- Reply message -----
> From: "Andres Cabrera" <mantaraya36@gmail.com>
> To: "Developer discussions" <csound-devel@lists.sourceforge.net>
> Subject: [Cs-dev] Array syntax
> Date: Fri, Feb 22, 2013 1:35 am
>
>
> Hi,
>
> Array notation is currently:
> kvar[] init 6
>


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel