Csound Csound-dev Csound-tekno Search About

[Cs-dev] filling arrays in csound6

Date2013-04-12 21:24
Fromjoachim heintz
Subject[Cs-dev] filling arrays in csound6
dear csound6 developers -

do you plan to implement a simple assignment of arrays like
iArr[] = [1, 2, 3, 4, 5]
or
SArr[] = ["Csound", "6", "is", "great", "!"]
?

from my point of view (using csound for my work and teaching students) 
this would be very necessary. or speaking the other way round: if we 
cannot give the user a simple way to fill data in an array by typing a 
sequence of durations, pitches etc, we would loose half of the gain at 
least for people who are learning csound.

but you implemented so many things we wished before we spoke them out 
that perhaps this is also already there ...

thanks -

	joachim

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-23 13:02
Fromjoachim heintz
SubjectRe: [Cs-dev] filling arrays in csound6
hi victor, steven, john -

my i repeat the question below?

i hope my insistent question on this is not too nerve-racking. i'd just 
like to know whether this is on the to-do-list. or do you want me to 
file this as a feature request?

thanks -

	joachim



Am 12.04.2013 22:24, schrieb joachim heintz:
> dear csound6 developers -
>
> do you plan to implement a simple assignment of arrays like
> iArr[] = [1, 2, 3, 4, 5]
> or
> SArr[] = ["Csound", "6", "is", "great", "!"]
> ?
>
> from my point of view (using csound for my work and teaching students)
> this would be very necessary. or speaking the other way round: if we
> cannot give the user a simple way to fill data in an array by typing a
> sequence of durations, pitches etc, we would loose half of the gain at
> least for people who are learning csound.
>
> but you implemented so many things we wished before we spoke them out
> that perhaps this is also already there ...
>
> thanks -
>
> 	joachim
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-23 14:04
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] filling arrays in csound6
At present the tabgen is the only initial value opcode.  I understand the
desire for iArr[] = [1, 2, 3, 4, 5] but I think this raises significant
parsing problems.  I had not forgotten this request.

We do have copying to a vector from a table, slicing and mapping over an
array.  Also array arithmetic -- unfinished but basically working.

==John ff

> hi victor, steven, john -
>
> my i repeat the question below?
>
> i hope my insistent question on this is not too nerve-racking. i'd just
> like to know whether this is on the to-do-list. or do you want me to
> file this as a feature request?
>
> thanks -
>
> 	joachim
>
>
>
> Am 12.04.2013 22:24, schrieb joachim heintz:
>> dear csound6 developers -
>>
>> do you plan to implement a simple assignment of arrays like
>> iArr[] = [1, 2, 3, 4, 5]
>> or
>> SArr[] = ["Csound", "6", "is", "great", "!"]
>> ?
>>
>> from my point of view (using csound for my work and teaching students)
>> this would be very necessary. or speaking the other way round: if we
>> cannot give the user a simple way to fill data in an array by typing a
>> sequence of durations, pitches etc, we would loose half of the gain at
>> least for people who are learning csound.
>>
>> but you implemented so many things we wished before we spoke them out
>> that perhaps this is also already there ...
>>
>> thanks -
>>
>> 	joachim
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for
>> building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring
> service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-23 14:32
Fromjoachim heintz
SubjectRe: [Cs-dev] filling arrays in csound6
thanks, john. good to know that it is on your list. i think, it is not 
important that this this feature is assigned to the '=' operator. 
something like
iArr[] fill [1, 2, 3, 4, 5]
or whatever would be fine, too, in my opinion, if it avoids parsing 
problems.

	joachim


Am 23.04.2013 15:04, schrieb jpff@cs.bath.ac.uk:
> At present the tabgen is the only initial value opcode.  I understand the
> desire for iArr[] = [1, 2, 3, 4, 5] but I think this raises significant
> parsing problems.  I had not forgotten this request.
>
> We do have copying to a vector from a table, slicing and mapping over an
> array.  Also array arithmetic -- unfinished but basically working.
>
> ==John ff
>
>> hi victor, steven, john -
>>
>> my i repeat the question below?
>>
>> i hope my insistent question on this is not too nerve-racking. i'd just
>> like to know whether this is on the to-do-list. or do you want me to
>> file this as a feature request?
>>
>> thanks -
>>
>> 	joachim
>>
>>
>>
>> Am 12.04.2013 22:24, schrieb joachim heintz:
>>> dear csound6 developers -
>>>
>>> do you plan to implement a simple assignment of arrays like
>>> iArr[] = [1, 2, 3, 4, 5]
>>> or
>>> SArr[] = ["Csound", "6", "is", "great", "!"]
>>> ?
>>>
>>> from my point of view (using csound for my work and teaching students)
>>> this would be very necessary. or speaking the other way round: if we
>>> cannot give the user a simple way to fill data in an array by typing a
>>> sequence of durations, pitches etc, we would loose half of the gain at
>>> least for people who are learning csound.
>>>
>>> but you implemented so many things we wished before we spoke them out
>>> that perhaps this is also already there ...
>>>
>>> thanks -
>>>
>>> 	joachim
>>>
>>> ------------------------------------------------------------------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for
>>> building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring
>> service
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-23 15:28
FromSteven Yi
SubjectRe: [Cs-dev] filling arrays in csound6
Hi John,

I think we might be able to parse the static initializer as an
expression, then map to an array_static_init opcode that's overloaded
with different var-arg types (all S, all k- and below, all a-). I
guess it depends if it'll clash with the array accessors. I'll try out
a quick test now to see if it'll cause an ambiguity or not.

steven

On Tue, Apr 23, 2013 at 2:04 PM,   wrote:
> At present the tabgen is the only initial value opcode.  I understand the
> desire for iArr[] = [1, 2, 3, 4, 5] but I think this raises significant
> parsing problems.  I had not forgotten this request.
>
> We do have copying to a vector from a table, slicing and mapping over an
> array.  Also array arithmetic -- unfinished but basically working.
>
> ==John ff
>
>> hi victor, steven, john -
>>
>> my i repeat the question below?
>>
>> i hope my insistent question on this is not too nerve-racking. i'd just
>> like to know whether this is on the to-do-list. or do you want me to
>> file this as a feature request?
>>
>> thanks -
>>
>>       joachim
>>
>>
>>
>> Am 12.04.2013 22:24, schrieb joachim heintz:
>>> dear csound6 developers -
>>>
>>> do you plan to implement a simple assignment of arrays like
>>> iArr[] = [1, 2, 3, 4, 5]
>>> or
>>> SArr[] = ["Csound", "6", "is", "great", "!"]
>>> ?
>>>
>>> from my point of view (using csound for my work and teaching students)
>>> this would be very necessary. or speaking the other way round: if we
>>> cannot give the user a simple way to fill data in an array by typing a
>>> sequence of durations, pitches etc, we would loose half of the gain at
>>> least for people who are learning csound.
>>>
>>> but you implemented so many things we wished before we spoke them out
>>> that perhaps this is also already there ...
>>>
>>> thanks -
>>>
>>>      joachim
>>>
>>> ------------------------------------------------------------------------------
>>> Precog is a next-generation analytics platform capable of advanced
>>> analytics on semi-structured data. The platform includes APIs for
>>> building
>>> apps and a phenomenal toolset for data science. Developers can use
>>> our toolset for easy data analysis & visualization. Get a free account!
>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring
>> service
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-23 16:08
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] filling arrays in csound6
Clearly a syntax of

kA[] tabfill 1,2,3,4,5,6,7,6,5,4,3,2,1

is "easy".  No parsing problems in that format. steven, let me know how
the experiments go

==John ff

> Hi John,
>
> I think we might be able to parse the static initializer as an
> expression, then map to an array_static_init opcode that's overloaded
> with different var-arg types (all S, all k- and below, all a-). I
> guess it depends if it'll clash with the array accessors. I'll try out
> a quick test now to see if it'll cause an ambiguity or not.
>
> steven
>
> On Tue, Apr 23, 2013 at 2:04 PM,   wrote:
>> At present the tabgen is the only initial value opcode.  I understand
>> the
>> desire for iArr[] = [1, 2, 3, 4, 5] but I think this raises significant
>> parsing problems.  I had not forgotten this request.
>>
>> We do have copying to a vector from a table, slicing and mapping over an
>> array.  Also array arithmetic -- unfinished but basically working.
>>
>> ==John ff
>>
>>> hi victor, steven, john -
>>>
>>> my i repeat the question below?
>>>
>>> i hope my insistent question on this is not too nerve-racking. i'd just
>>> like to know whether this is on the to-do-list. or do you want me to
>>> file this as a feature request?
>>>
>>> thanks -
>>>
>>>       joachim
>>>
>>>
>>>
>>> Am 12.04.2013 22:24, schrieb joachim heintz:
>>>> dear csound6 developers -
>>>>
>>>> do you plan to implement a simple assignment of arrays like
>>>> iArr[] = [1, 2, 3, 4, 5]
>>>> or
>>>> SArr[] = ["Csound", "6", "is", "great", "!"]
>>>> ?
>>>>
>>>> from my point of view (using csound for my work and teaching students)
>>>> this would be very necessary. or speaking the other way round: if we
>>>> cannot give the user a simple way to fill data in an array by typing a
>>>> sequence of durations, pitches etc, we would loose half of the gain at
>>>> least for people who are learning csound.
>>>>
>>>> but you implemented so many things we wished before we spoke them out
>>>> that perhaps this is also already there ...
>>>>
>>>> thanks -
>>>>
>>>>      joachim
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Precog is a next-generation analytics platform capable of advanced
>>>> analytics on semi-structured data. The platform includes APIs for
>>>> building
>>>> apps and a phenomenal toolset for data science. Developers can use
>>>> our toolset for easy data analysis & visualization. Get a free
>>>> account!
>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Try New Relic Now & We'll Send You this Cool Shirt
>>> New Relic is the only SaaS-based application performance monitoring
>>> service
>>> that delivers powerful full stack analytics. Optimize and monitor your
>>> browser, app, & servers with just a few lines of code. Try New Relic
>>> and get this awesome Nerd Life shirt!
>>> http://p.sf.net/sfu/newrelic_d2d_apr
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring
>> service
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt!
>> http://p.sf.net/sfu/newrelic_d2d_apr
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring
> service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-23 17:07
FromSteven Yi
SubjectRe: [Cs-dev] filling arrays in csound6
Hi John,

I gave it a shot but things didn't work out so well.  Things certainly
got ambiguous.  I used a rule like this:

staticArrayInit : '[' exprlist ']' { $$ = make_node(csound, LINE,
LOCN, T_ARRAY_INIT, NULL, $2); }

but that caused issues when using this in a csd:

SArr[] = [ "Test", "test2", "test 3"]

I think the array initializer rule is correct, and that the problem
might lie with the rest of the grammar.  One of the things I had been
thinking about lately is that with the semantic analyzer in place,
there may be a way to simplify the grammar further, but I'm unsure of
this.

I'm at a stopping point for now.  I'll move on to other work for the
day but will continue to think about this one. It could be that the
way I had done array identifiers and array expressions could be redone
too.

Thanks!
steven


On Tue, Apr 23, 2013 at 4:08 PM,   wrote:
> Clearly a syntax of
>
> kA[] tabfill 1,2,3,4,5,6,7,6,5,4,3,2,1
>
> is "easy".  No parsing problems in that format. steven, let me know how
> the experiments go
>
> ==John ff
>
>> Hi John,
>>
>> I think we might be able to parse the static initializer as an
>> expression, then map to an array_static_init opcode that's overloaded
>> with different var-arg types (all S, all k- and below, all a-). I
>> guess it depends if it'll clash with the array accessors. I'll try out
>> a quick test now to see if it'll cause an ambiguity or not.
>>
>> steven
>>
>> On Tue, Apr 23, 2013 at 2:04 PM,   wrote:
>>> At present the tabgen is the only initial value opcode.  I understand
>>> the
>>> desire for iArr[] = [1, 2, 3, 4, 5] but I think this raises significant
>>> parsing problems.  I had not forgotten this request.
>>>
>>> We do have copying to a vector from a table, slicing and mapping over an
>>> array.  Also array arithmetic -- unfinished but basically working.
>>>
>>> ==John ff
>>>
>>>> hi victor, steven, john -
>>>>
>>>> my i repeat the question below?
>>>>
>>>> i hope my insistent question on this is not too nerve-racking. i'd just
>>>> like to know whether this is on the to-do-list. or do you want me to
>>>> file this as a feature request?
>>>>
>>>> thanks -
>>>>
>>>>       joachim
>>>>
>>>>
>>>>
>>>> Am 12.04.2013 22:24, schrieb joachim heintz:
>>>>> dear csound6 developers -
>>>>>
>>>>> do you plan to implement a simple assignment of arrays like
>>>>> iArr[] = [1, 2, 3, 4, 5]
>>>>> or
>>>>> SArr[] = ["Csound", "6", "is", "great", "!"]
>>>>> ?
>>>>>
>>>>> from my point of view (using csound for my work and teaching students)
>>>>> this would be very necessary. or speaking the other way round: if we
>>>>> cannot give the user a simple way to fill data in an array by typing a
>>>>> sequence of durations, pitches etc, we would loose half of the gain at
>>>>> least for people who are learning csound.
>>>>>
>>>>> but you implemented so many things we wished before we spoke them out
>>>>> that perhaps this is also already there ...
>>>>>
>>>>> thanks -
>>>>>
>>>>>      joachim
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Precog is a next-generation analytics platform capable of advanced
>>>>> analytics on semi-structured data. The platform includes APIs for
>>>>> building
>>>>> apps and a phenomenal toolset for data science. Developers can use
>>>>> our toolset for easy data analysis & visualization. Get a free
>>>>> account!
>>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Try New Relic Now & We'll Send You this Cool Shirt
>>>> New Relic is the only SaaS-based application performance monitoring
>>>> service
>>>> that delivers powerful full stack analytics. Optimize and monitor your
>>>> browser, app, & servers with just a few lines of code. Try New Relic
>>>> and get this awesome Nerd Life shirt!
>>>> http://p.sf.net/sfu/newrelic_d2d_apr
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Try New Relic Now & We'll Send You this Cool Shirt
>>> New Relic is the only SaaS-based application performance monitoring
>>> service
>>> that delivers powerful full stack analytics. Optimize and monitor your
>>> browser, app, & servers with just a few lines of code. Try New Relic
>>> and get this awesome Nerd Life shirt!
>>> http://p.sf.net/sfu/newrelic_d2d_apr
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring
>> service
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-23 17:57
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] filling arrays in csound6
OK; I have committed a fill opcode to initialise a 1-d k-array.
Not done it for strings yet -- will consider adding that
==John ff


> Hi John,
>
> I gave it a shot but things didn't work out so well.  Things certainly
> got ambiguous.  I used a rule like this:
>
> staticArrayInit : '[' exprlist ']' { $$ = make_node(csound, LINE,
> LOCN, T_ARRAY_INIT, NULL, $2); }
>
> but that caused issues when using this in a csd:
>
> SArr[] = [ "Test", "test2", "test 3"]
>
> I think the array initializer rule is correct, and that the problem
> might lie with the rest of the grammar.  One of the things I had been
> thinking about lately is that with the semantic analyzer in place,
> there may be a way to simplify the grammar further, but I'm unsure of
> this.
>
> I'm at a stopping point for now.  I'll move on to other work for the
> day but will continue to think about this one. It could be that the
> way I had done array identifiers and array expressions could be redone
> too.
>
> Thanks!
> steven
>
>
> On Tue, Apr 23, 2013 at 4:08 PM,   wrote:
>> Clearly a syntax of
>>
>> kA[] tabfill 1,2,3,4,5,6,7,6,5,4,3,2,1
>>
>> is "easy".  No parsing problems in that format. steven, let me know how
>> the experiments go
>>
>> ==John ff
>>
>>> Hi John,
>>>
>>> I think we might be able to parse the static initializer as an
>>> expression, then map to an array_static_init opcode that's overloaded
>>> with different var-arg types (all S, all k- and below, all a-). I
>>> guess it depends if it'll clash with the array accessors. I'll try out
>>> a quick test now to see if it'll cause an ambiguity or not.
>>>
>>> steven
>>>
>>> On Tue, Apr 23, 2013 at 2:04 PM,   wrote:
>>>> At present the tabgen is the only initial value opcode.  I understand
>>>> the
>>>> desire for iArr[] = [1, 2, 3, 4, 5] but I think this raises
>>>> significant
>>>> parsing problems.  I had not forgotten this request.
>>>>
>>>> We do have copying to a vector from a table, slicing and mapping over
>>>> an
>>>> array.  Also array arithmetic -- unfinished but basically working.
>>>>
>>>> ==John ff
>>>>
>>>>> hi victor, steven, john -
>>>>>
>>>>> my i repeat the question below?
>>>>>
>>>>> i hope my insistent question on this is not too nerve-racking. i'd
>>>>> just
>>>>> like to know whether this is on the to-do-list. or do you want me to
>>>>> file this as a feature request?
>>>>>
>>>>> thanks -
>>>>>
>>>>>       joachim
>>>>>
>>>>>
>>>>>
>>>>> Am 12.04.2013 22:24, schrieb joachim heintz:
>>>>>> dear csound6 developers -
>>>>>>
>>>>>> do you plan to implement a simple assignment of arrays like
>>>>>> iArr[] = [1, 2, 3, 4, 5]
>>>>>> or
>>>>>> SArr[] = ["Csound", "6", "is", "great", "!"]
>>>>>> ?
>>>>>>
>>>>>> from my point of view (using csound for my work and teaching
>>>>>> students)
>>>>>> this would be very necessary. or speaking the other way round: if we
>>>>>> cannot give the user a simple way to fill data in an array by typing
>>>>>> a
>>>>>> sequence of durations, pitches etc, we would loose half of the gain
>>>>>> at
>>>>>> least for people who are learning csound.
>>>>>>
>>>>>> but you implemented so many things we wished before we spoke them
>>>>>> out
>>>>>> that perhaps this is also already there ...
>>>>>>
>>>>>> thanks -
>>>>>>
>>>>>>      joachim
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Precog is a next-generation analytics platform capable of advanced
>>>>>> analytics on semi-structured data. The platform includes APIs for
>>>>>> building
>>>>>> apps and a phenomenal toolset for data science. Developers can use
>>>>>> our toolset for easy data analysis & visualization. Get a free
>>>>>> account!
>>>>>> http://www2.precog.com/precogplatform/slashdotnewsletter
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Try New Relic Now & We'll Send You this Cool Shirt
>>>>> New Relic is the only SaaS-based application performance monitoring
>>>>> service
>>>>> that delivers powerful full stack analytics. Optimize and monitor
>>>>> your
>>>>> browser, app, & servers with just a few lines of code. Try New Relic
>>>>> and get this awesome Nerd Life shirt!
>>>>> http://p.sf.net/sfu/newrelic_d2d_apr
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Try New Relic Now & We'll Send You this Cool Shirt
>>>> New Relic is the only SaaS-based application performance monitoring
>>>> service
>>>> that delivers powerful full stack analytics. Optimize and monitor your
>>>> browser, app, & servers with just a few lines of code. Try New Relic
>>>> and get this awesome Nerd Life shirt!
>>>> http://p.sf.net/sfu/newrelic_d2d_apr
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Try New Relic Now & We'll Send You this Cool Shirt
>>> New Relic is the only SaaS-based application performance monitoring
>>> service
>>> that delivers powerful full stack analytics. Optimize and monitor your
>>> browser, app, & servers with just a few lines of code. Try New Relic
>>> and get this awesome Nerd Life shirt!
>>> http://p.sf.net/sfu/newrelic_d2d_apr
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring
>> service
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt!
>> http://p.sf.net/sfu/newrelic_d2d_apr
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring
> service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net