Csound Csound-dev Csound-tekno Search About

[Csnd] Test CSDs was:Indexing vectors and colon notation?

Date2008-05-31 11:53
From"Oeyvind Brandtsegg"
Subject[Csnd] Test CSDs was:Indexing vectors and colon notation?
AttachmentsNone  

Date2008-05-31 16:22
From"Steven Yi"
Subject[Csnd] Re: Test CSDs was:Indexing vectors and colon notation?
AttachmentsNone  

Date2008-06-01 01:47
Frompeiman khosravi
Subject[Csnd] Re: Re: Test CSDs was:Indexing vectors and colon notation?
This is off tracking from the topic and I have no authority here  
whatsoever! But since documentation was mentioned by Steve can I make  
one suggestion. Some opcodes' documentations do not include a whole  
CSD but just a snippet from the instrument. Although this is no  
problem for the experienced user, for the beginner it may be  
confusing particularly because some need f-statements in the score  
section. It also makes it harder if you just want to quickly try out  
how an opcode sounds but you have to spend some time (again this is  
more the case for the less experienced user) figuring out what goes  
where in the score.

So it would be better I think if all examples were in the form of  
CSDs that could simply be downloaded and rendered.

One example is the fog http://www.csounds.com/manual/html/fog.html
and another http://www.csounds.com/manual/html/fofilter.html

Thanks
Peiman


On 31 May 2008, at 16:22, Steven Yi wrote:

> Hi Oeyvind,
>
> Currently there is not a really formal practice, but I think for new
> opcodes the expectation is that it include documentation and an
> example CSD, both packaged with the manual project.  We could build a
> test runner or just modify test.py from csound5/test/test.py to do a
> search of all CSD's in a directory and run it in the examples folder
> of the manual.  This would test for errors where csound would crash,
> but not where csound runs correctly and the opcode code is wrong.
>
> Anyone think we should formalize a test suite?
> steven
>
> On Sat, May 31, 2008 at 3:53 AM, Oeyvind Brandtsegg  
>  wrote:
>> Is there a common practice for writing test csd files for opcodes ?
>> And a method of running all tests, returning the number of tests and
>> the number of successes/failures ?
>>
>> best
>> Oeyvind
>>
>> 2008/5/31, Steven Yi :
>>> It's not of major consequence to me either way and I can see it  
>>> being
>>> a good thing if we promote adding test CSD files anytime someone
>>> commits new opcodes.  Perhaps we should either create sub- 
>>> directories
>>> for tests or rename the test to not be numbered so as to be easy to
>>> differentiate between the compiler test suite and general tests?
>>>
>>> Thanks!
>>> steven
>>>
>>> On Fri, May 30, 2008 at 3:19 PM, Michael Gogins  
>>>  wrote:
>>>> Do you want me to move or remove the test?
>>>>
>>>> Mike
>>>>
>>>> ----- Original Message ----- From: "Steven Yi" 
>>>> To: 
>>>> Sent: Friday, May 30, 2008 5:28 PM
>>>> Subject: [Csnd] Re: Re: Indexing vectors and colon notation?
>>>>
>>>>
>>>>> Hi Michael,
>>>>>
>>>>> Just to note, the tests in the tests folder were originally put  
>>>>> there
>>>>> as part of a suite of tests for the new compiler.  So test1.csd
>>>>> through test23.csd each progressively add a language feature or  
>>>>> type,
>>>>> and the description of the test is in the test runner test.py  
>>>>> file in
>>>>> that directory.
>>>>>
>>>>> steven
>>>>>
>>>>> On Fri, May 30, 2008 at 1:41 PM, Michael Gogins  
>>>>> 
>>>>> wrote:
>>>>>>
>>>>>> You are aware of the linear algebra opcodes that I recently  
>>>>>> contributed
>>>>>> to
>>>>>> Csound?
>>>>>>
>>>>>> They don't have this kind of range indexing, but that could be  
>>>>>> added.
>>>>>>
>>>>>> I will be adding a manual page for these opcodes soon. In the  
>>>>>> meantime,
>>>>>> you
>>>>>> can look at tests/test24.csd, and the source code (the header  
>>>>>> of the
>>>>>> Opcodes/linear_algebra.cpp documents it pretty well).
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>>
>>>>>> Steven Yi wrote:
>>>>>>>
>>>>>>> Hi Dave,
>>>>>>>
>>>>>>> You could make a UDO that does something like:
>>>>>>>
>>>>>>> foo itable 1, 3, 6
>>>>>>>
>>>>>>> (though probably better to use an opcode name that doesn't  
>>>>>>> start with
>>>>>>> i).  The 3 and 6 could be a start/end index.
>>>>>>>
>>>>>>> Not quite the same syntax, but technically equivalent.
>>>>>>>
>>>>>>> steven
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, May 30, 2008 at 6:48 AM, David Akbari  
>>>>>>>  wrote:
>>>>>>>>
>>>>>>>> Hi List,
>>>>>>>>
>>>>>>>> I'm wondering how one might go about using features similar  
>>>>>>>> to GNU
>>>>>>>> Octave (or MATLAB) in Csound such as table indexing using  
>>>>>>>> the colon
>>>>>>>> notation... For example,
>>>>>>>>
>>>>>>>> If we had the table
>>>>>>>> itable ftgen 1, 0, 8, 2, 10, 13, 11, 14, 12, 16, 20, 9
>>>>>>>>
>>>>>>>> How could we index a _range_ of values? Is the only current  
>>>>>>>> way to use
>>>>>>>> Istvan's *_loop opcodes?
>>>>>>>>
>>>>>>>> Ideally, it would be nice in the above example to say  
>>>>>>>> something like
>>>>>>>>
>>>>>>>> foo = itable(1,3:6)
>>>>>>>>
>>>>>>>> where foo would in this case store values 3 through 6 in row  
>>>>>>>> 1 as a
>>>>>>>> new table. Is there a way to encapsulate this type of syntax  
>>>>>>>> into a
>>>>>>>> UDO?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Thank you for your time and consideration,
>>>>>>>>
>>>>>>>> David Akbari
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to this list.
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>> "unsubscribe
>>>>>>>> csound"
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to this list.
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/Indexing-vectors-and-colon-notation-- 
>>>>>> tp17559321p17567559.html
>>>>>> Sent from the Csound - General mailing list archive at  
>>>>>> Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to this list.
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe
>>>>>> csound"
>>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to this list.
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe
>>>>> csound"
>>>>
>>>>
>>>>
>>>> Send bugs reports to this list.
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe
>>>> csound"
>>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"


Date2008-06-01 14:25
From"Andres Cabrera"
Subject[Csnd] Re: Re: Re: Test CSDs was:Indexing vectors and colon notation?
AttachmentsNone  None  

Date2008-06-01 14:25
From"Andres Cabrera"
Subject[Csnd] Re: Re: Re: Test CSDs was:Indexing vectors and colon notation?
AttachmentsNone  None  

Date2008-06-01 15:10
Frompeiman khosravi
Subject[Csnd] Re: Re: Re: Re: Test CSDs was:Indexing vectors and colon notation?
Hi Andrés,

I will be happy to contribute to this if needed.

Best
Peiman

On 1 Jun 2008, at 14:25, Andres Cabrera wrote:

Hi Peiman,
I completely agree, and the problem is mostly lack of time. Contributions are greatly appreciated. It's a lot easier for me to include a csd file that someone has tested than having to make it and test it myself....

Cheers,
Andrés


On Sat, May 31, 2008 at 7:47 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
This is off tracking from the topic and I have no authority here whatsoever! But since documentation was mentioned by Steve can I make one suggestion. Some opcodes' documentations do not include a whole CSD but just a snippet from the instrument. Although this is no problem for the experienced user, for the beginner it may be confusing particularly because some need f-statements in the score section. It also makes it harder if you just want to quickly try out how an opcode sounds but you have to spend some time (again this is more the case for the less experienced user) figuring out what goes where in the score.

So it would be better I think if all examples were in the form of CSDs that could simply be downloaded and rendered.

One example is the fog http://www.csounds.com/manual/html/fog.html
and another http://www.csounds.com/manual/html/fofilter.html

Thanks
Peiman



On 31 May 2008, at 16:22, Steven Yi wrote:

Hi Oeyvind,

Currently there is not a really formal practice, but I think for new
opcodes the expectation is that it include documentation and an
example CSD, both packaged with the manual project.  We could build a
test runner or just modify test.py from csound5/test/test.py to do a
search of all CSD's in a directory and run it in the examples folder
of the manual.  This would test for errors where csound would crash,
but not where csound runs correctly and the opcode code is wrong.

Anyone think we should formalize a test suite?
steven

On Sat, May 31, 2008 at 3:53 AM, Oeyvind Brandtsegg <obrandts@gmail.com> wrote:
Is there a common practice for writing test csd files for opcodes ?
And a method of running all tests, returning the number of tests and
the number of successes/failures ?

best
Oeyvind

2008/5/31, Steven Yi <stevenyi@gmail.com>:
It's not of major consequence to me either way and I can see it being
a good thing if we promote adding test CSD files anytime someone
commits new opcodes.  Perhaps we should either create sub-directories
for tests or rename the test to not be numbered so as to be easy to
differentiate between the compiler test suite and general tests?

Thanks!
steven

On Fri, May 30, 2008 at 3:19 PM, Michael Gogins <gogins@pipeline.com> wrote:
Do you want me to move or remove the test?

Mike

----- Original Message ----- From: "Steven Yi" <stevenyi@gmail.com>
To: <csound@lists.bath.ac.uk>
Sent: Friday, May 30, 2008 5:28 PM
Subject: [Csnd] Re: Re: Indexing vectors and colon notation?


Hi Michael,

Just to note, the tests in the tests folder were originally put there
as part of a suite of tests for the new compiler.  So test1.csd
through test23.csd each progressively add a language feature or type,
and the description of the test is in the test runner test.py file in
that directory.

steven

On Fri, May 30, 2008 at 1:41 PM, Michael Gogins <gogins@pipeline.com>
wrote:

You are aware of the linear algebra opcodes that I recently contributed
to
Csound?

They don't have this kind of range indexing, but that could be added.

I will be adding a manual page for these opcodes soon. In the meantime,
you
can look at tests/test24.csd, and the source code (the header of the
Opcodes/linear_algebra.cpp documents it pretty well).

Regards,
Mike


Steven Yi wrote:

Hi Dave,

You could make a UDO that does something like:

foo itable 1, 3, 6

(though probably better to use an opcode name that doesn't start with
i).  The 3 and 6 could be a start/end index.

Not quite the same syntax, but technically equivalent.

steven



On Fri, May 30, 2008 at 6:48 AM, David Akbari <dakbari@gmail.com> wrote:

Hi List,

I'm wondering how one might go about using features similar to GNU
Octave (or MATLAB) in Csound such as table indexing using the colon
notation... For example,

If we had the table
itable ftgen 1, 0, 8, 2, 10, 13, 11, 14, 12, 16, 20, 9

How could we index a _range_ of values? Is the only current way to use
Istvan's *_loop opcodes?

Ideally, it would be nice in the above example to say something like

foo = itable(1,3:6)

where foo would in this case store values 3 through 6 in row 1 as a
new table. Is there a way to encapsulate this type of syntax into a
UDO?



Thank you for your time and consideration,

David Akbari


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body
"unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



--
View this message in context:
http://www.nabble.com/Indexing-vectors-and-colon-notation--tp17559321p17567559.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2008-06-01 20:37
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: Re: Test CSDs was:Indexing vectors and colon notation?
AttachmentsNone  

Date2008-06-01 23:31
From"Andres Cabrera"
Subject[Csnd] Re: Re: Re: Re: Re: Test CSDs was:Indexing vectors and colon notation?
AttachmentsNone  None  

Date2008-06-02 00:36
Frompeiman khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Test CSDs was:Indexing vectors and colon notation?
great! Just let me know what to do :-)

Best
Peiman

On 1 Jun 2008, at 23:31, Andres Cabrera wrote:

It is very needed =)

Cheers,
Andrés

On Sun, Jun 1, 2008 at 9:10 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:
Hi Andrés,

I will be happy to contribute to this if needed.

Best
Peiman

On 1 Jun 2008, at 14:25, Andres Cabrera wrote:

Hi Peiman,
I completely agree, and the problem is mostly lack of time. Contributions are greatly appreciated. It's a lot easier for me to include a csd file that someone has tested than having to make it and test it myself....

Cheers,
Andrés


On Sat, May 31, 2008 at 7:47 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
This is off tracking from the topic and I have no authority here whatsoever! But since documentation was mentioned by Steve can I make one suggestion. Some opcodes' documentations do not include a whole CSD but just a snippet from the instrument. Although this is no problem for the experienced user, for the beginner it may be confusing particularly because some need f-statements in the score section. It also makes it harder if you just want to quickly try out how an opcode sounds but you have to spend some time (again this is more the case for the less experienced user) figuring out what goes where in the score.

So it would be better I think if all examples were in the form of CSDs that could simply be downloaded and rendered.

One example is the fog http://www.csounds.com/manual/html/fog.html
and another http://www.csounds.com/manual/html/fofilter.html

Thanks
Peiman



On 31 May 2008, at 16:22, Steven Yi wrote:

Hi Oeyvind,

Currently there is not a really formal practice, but I think for new
opcodes the expectation is that it include documentation and an
example CSD, both packaged with the manual project.  We could build a
test runner or just modify test.py from csound5/test/test.py to do a
search of all CSD's in a directory and run it in the examples folder
of the manual.  This would test for errors where csound would crash,
but not where csound runs correctly and the opcode code is wrong.

Anyone think we should formalize a test suite?
steven

On Sat, May 31, 2008 at 3:53 AM, Oeyvind Brandtsegg <obrandts@gmail.com> wrote:
Is there a common practice for writing test csd files for opcodes ?
And a method of running all tests, returning the number of tests and
the number of successes/failures ?

best
Oeyvind

2008/5/31, Steven Yi <stevenyi@gmail.com>:
It's not of major consequence to me either way and I can see it being
a good thing if we promote adding test CSD files anytime someone
commits new opcodes.  Perhaps we should either create sub-directories
for tests or rename the test to not be numbered so as to be easy to
differentiate between the compiler test suite and general tests?

Thanks!
steven

On Fri, May 30, 2008 at 3:19 PM, Michael Gogins <gogins@pipeline.com> wrote:
Do you want me to move or remove the test?

Mike

----- Original Message ----- From: "Steven Yi" <stevenyi@gmail.com>
To: <csound@lists.bath.ac.uk>
Sent: Friday, May 30, 2008 5:28 PM
Subject: [Csnd] Re: Re: Indexing vectors and colon notation?


Hi Michael,

Just to note, the tests in the tests folder were originally put there
as part of a suite of tests for the new compiler.  So test1.csd
through test23.csd each progressively add a language feature or type,
and the description of the test is in the test runner test.py file in
that directory.

steven

On Fri, May 30, 2008 at 1:41 PM, Michael Gogins <gogins@pipeline.com>
wrote:

You are aware of the linear algebra opcodes that I recently contributed
to
Csound?

They don't have this kind of range indexing, but that could be added.

I will be adding a manual page for these opcodes soon. In the meantime,
you
can look at tests/test24.csd, and the source code (the header of the
Opcodes/linear_algebra.cpp documents it pretty well).

Regards,
Mike


Steven Yi wrote:

Hi Dave,

You could make a UDO that does something like:

foo itable 1, 3, 6

(though probably better to use an opcode name that doesn't start with
i).  The 3 and 6 could be a start/end index.

Not quite the same syntax, but technically equivalent.

steven



On Fri, May 30, 2008 at 6:48 AM, David Akbari <dakbari@gmail.com> wrote:

Hi List,

I'm wondering how one might go about using features similar to GNU
Octave (or MATLAB) in Csound such as table indexing using the colon
notation... For example,

If we had the table
itable ftgen 1, 0, 8, 2, 10, 13, 11, 14, 12, 16, 20, 9

How could we index a _range_ of values? Is the only current way to use
Istvan's *_loop opcodes?

Ideally, it would be nice in the above example to say something like

foo = itable(1,3:6)

where foo would in this case store values 3 through 6 in row 1 as a
new table. Is there a way to encapsulate this type of syntax into a
UDO?



Thank you for your time and consideration,

David Akbari


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body
"unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



--
View this message in context:
http://www.nabble.com/Indexing-vectors-and-colon-notation--tp17559321p17567559.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2008-06-02 01:03
Fromluis jure
Subject[Csnd] Re: Re: Re: Re: Test CSDs was:Indexing vectors and colon notation?
El Sun, 1 Jun 2008 08:25:38 -0500
"Andres Cabrera"  escribió:

> Examples for the pvs opcodes are particularly necessary.

i have some of these, i think i can submit a couple of examples soon
(tomorrow or tuesday)


Date2008-06-02 03:37
From"Andres Cabrera"
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Test CSDs was:Indexing vectors and colon notation?
AttachmentsNone  None  

Date2008-06-02 03:37
From"Andres Cabrera"
Subject[Csnd] Re: Re: Re: Re: Re: Test CSDs was:Indexing vectors and colon notation?
AttachmentsNone  None  

Date2008-06-02 10:41
Frompeiman khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Test CSDs was:Indexing vectors and colon notation?
Thanks for the instructions. I will start :-)

Peiman

On 2 Jun 2008, at 03:37, Andres Cabrera wrote:

Hi Peiman,

Thanks for the offer. Whenever you come across an opcode which doesn't have a csd example, or which has a poor one, just submit the example here. That's all. If you want to get down and dirty editing the manual, that would be even better, but more time consuming. If you want to take that route, see:
http://csound.cvs.sourceforge.net/csound/manual/readme.txt?revision=1.11&view=markup
or grab the manual as described here, and start hacking...
http://sourceforge.net/cvs/?group_id=81968


Cheers,
Andrés


On Sun, Jun 1, 2008 at 6:36 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
great! Just let me know what to do :-)

Best
Peiman

On 1 Jun 2008, at 23:31, Andres Cabrera wrote:

It is very needed =)

Cheers,
Andrés

On Sun, Jun 1, 2008 at 9:10 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:
Hi Andrés,

I will be happy to contribute to this if needed.

Best
Peiman

On 1 Jun 2008, at 14:25, Andres Cabrera wrote:

Hi Peiman,
I completely agree, and the problem is mostly lack of time. Contributions are greatly appreciated. It's a lot easier for me to include a csd file that someone has tested than having to make it and test it myself....

Cheers,
Andrés


On Sat, May 31, 2008 at 7:47 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
This is off tracking from the topic and I have no authority here whatsoever! But since documentation was mentioned by Steve can I make one suggestion. Some opcodes' documentations do not include a whole CSD but just a snippet from the instrument. Although this is no problem for the experienced user, for the beginner it may be confusing particularly because some need f-statements in the score section. It also makes it harder if you just want to quickly try out how an opcode sounds but you have to spend some time (again this is more the case for the less experienced user) figuring out what goes where in the score.

So it would be better I think if all examples were in the form of CSDs that could simply be downloaded and rendered.

One example is the fog http://www.csounds.com/manual/html/fog.html
and another http://www.csounds.com/manual/html/fofilter.html

Thanks
Peiman



On 31 May 2008, at 16:22, Steven Yi wrote:

Hi Oeyvind,

Currently there is not a really formal practice, but I think for new
opcodes the expectation is that it include documentation and an
example CSD, both packaged with the manual project.  We could build a
test runner or just modify test.py from csound5/test/test.py to do a
search of all CSD's in a directory and run it in the examples folder
of the manual.  This would test for errors where csound would crash,
but not where csound runs correctly and the opcode code is wrong.

Anyone think we should formalize a test suite?
steven

On Sat, May 31, 2008 at 3:53 AM, Oeyvind Brandtsegg <obrandts@gmail.com> wrote:
Is there a common practice for writing test csd files for opcodes ?
And a method of running all tests, returning the number of tests and
the number of successes/failures ?

best
Oeyvind

2008/5/31, Steven Yi <stevenyi@gmail.com>:
It's not of major consequence to me either way and I can see it being
a good thing if we promote adding test CSD files anytime someone
commits new opcodes.  Perhaps we should either create sub-directories
for tests or rename the test to not be numbered so as to be easy to
differentiate between the compiler test suite and general tests?

Thanks!
steven

On Fri, May 30, 2008 at 3:19 PM, Michael Gogins <gogins@pipeline.com> wrote:
Do you want me to move or remove the test?

Mike

----- Original Message ----- From: "Steven Yi" <stevenyi@gmail.com>
To: <csound@lists.bath.ac.uk>
Sent: Friday, May 30, 2008 5:28 PM
Subject: [Csnd] Re: Re: Indexing vectors and colon notation?


Hi Michael,

Just to note, the tests in the tests folder were originally put there
as part of a suite of tests for the new compiler.  So test1.csd
through test23.csd each progressively add a language feature or type,
and the description of the test is in the test runner test.py file in
that directory.

steven

On Fri, May 30, 2008 at 1:41 PM, Michael Gogins <gogins@pipeline.com>
wrote:

You are aware of the linear algebra opcodes that I recently contributed
to
Csound?

They don't have this kind of range indexing, but that could be added.

I will be adding a manual page for these opcodes soon. In the meantime,
you
can look at tests/test24.csd, and the source code (the header of the
Opcodes/linear_algebra.cpp documents it pretty well).

Regards,
Mike


Steven Yi wrote:

Hi Dave,

You could make a UDO that does something like:

foo itable 1, 3, 6

(though probably better to use an opcode name that doesn't start with
i).  The 3 and 6 could be a start/end index.

Not quite the same syntax, but technically equivalent.

steven



On Fri, May 30, 2008 at 6:48 AM, David Akbari <dakbari@gmail.com> wrote:

Hi List,

I'm wondering how one might go about using features similar to GNU
Octave (or MATLAB) in Csound such as table indexing using the colon
notation... For example,

If we had the table
itable ftgen 1, 0, 8, 2, 10, 13, 11, 14, 12, 16, 20, 9

How could we index a _range_ of values? Is the only current way to use
Istvan's *_loop opcodes?

Ideally, it would be nice in the above example to say something like

foo = itable(1,3:6)

where foo would in this case store values 3 through 6 in row 1 as a
new table. Is there a way to encapsulate this type of syntax into a
UDO?



Thank you for your time and consideration,

David Akbari


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body
"unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



--
View this message in context:
http://www.nabble.com/Indexing-vectors-and-colon-notation--tp17559321p17567559.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"