Proposal: Optional Named Arguments for Notes

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Proposal: Optional Named Arguments for Notes

Steven Yi
Hi All,

I've been thinking about some use cases for some instrument designs of
mine and have been contemplating optional named arguments for notes.
The idea I had was something like:

i1 0 4 3 articulation=4 label="test"

with instrument code such as:

instr 1
ival arg "articulation", 0  ; where 0 is a default value
Sval arg "label", "" ; where "" is a default
endin

This would be per-note values, and would be carried over when notes are tied.

Any thoughts on this?

Thanks!
steven


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Proposal: Optional Named Arguments for Notes

Adam Puckett-2
That would mean a potential rewrite of sread.c to accomodate for
argument names like this. Remember the score is not parser with
Flex/Bison.

On 2/7/12, Steven Yi <[hidden email]> wrote:

> Hi All,
>
> I've been thinking about some use cases for some instrument designs of
> mine and have been contemplating optional named arguments for notes.
> The idea I had was something like:
>
> i1 0 4 3 articulation=4 label="test"
>
> with instrument code such as:
>
> instr 1
> ival arg "articulation", 0  ; where 0 is a default value
> Sval arg "label", "" ; where "" is a default
> endin
>
> This would be per-note values, and would be carried over when notes are
> tied.
>
> Any thoughts on this?
>
> Thanks!
> steven
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email [hidden email] with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Proposal: Optional Named Arguments for Notes

Steven Yi
Yes, but that's not an issue.  Either updating sread or reimplementing
scores with flex/bison isn't going to interfere as things are going to
change up quite a bit all around for Csound 6.  I'm more interested in
comments on the syntax and mechanism of this, if anyone has
alternative suggestions or can see it useful for themselves as well.

On Tue, Feb 7, 2012 at 8:10 PM, Adam Puckett <[hidden email]> wrote:

> That would mean a potential rewrite of sread.c to accomodate for
> argument names like this. Remember the score is not parser with
> Flex/Bison.
>
> On 2/7/12, Steven Yi <[hidden email]> wrote:
>> Hi All,
>>
>> I've been thinking about some use cases for some instrument designs of
>> mine and have been contemplating optional named arguments for notes.
>> The idea I had was something like:
>>
>> i1 0 4 3 articulation=4 label="test"
>>
>> with instrument code such as:
>>
>> instr 1
>> ival arg "articulation", 0  ; where 0 is a default value
>> Sval arg "label", "" ; where "" is a default
>> endin
>>
>> This would be per-note values, and would be carried over when notes are
>> tied.
>>
>> Any thoughts on this?
>>
>> Thanks!
>> steven
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email [hidden email] with body "unsubscribe
>> csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email [hidden email] with body "unsubscribe csound"
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Proposal: Optional Named Arguments for Notes

Tarmo Johannes-2
In reply to this post by Steven Yi

Hello,
It seems  a very welcome option to me - makes the score more readable and one does not need to worry in which p-field which parametwr sits.
Of course it would mean more typing and possible typos and with very many arguments it will become clumsy, but overall I personally like this idea very much!
Tarmo

On 07.02.2012 18:38, "Steven Yi" <[hidden email]> wrote:
Hi All,

I've been thinking about some use cases for some instrument designs of
mine and have been contemplating optional named arguments for notes.
The idea I had was something like:

i1 0 4 3 articulation=4 label="test"

with instrument code such as:

instr 1
ival arg "articulation", 0  ; where 0 is a default value
Sval arg "label", "" ; where "" is a default
endin

This would be per-note values, and would be carried over when notes are tied.

Any thoughts on this?

Thanks!
steven


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Loading...