chnget with function syntax?
Date | 2017-03-04 16:39 |
From | Dave Seidel |
Subject | chnget with function syntax? |
I am working on a csd with a bunch of control channels, and when I switched from
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
k1 chnget "foo" to k1 = chnget("foo") it stopped working. I've experienced this with a few other opcodes as well Is there a list somewhere of opcode that don't work with function syntax? I understand that opcodes with multiple outputs are not expected to work, but chnget doesn't seem to fall into that category. |
Date | 2017-03-04 16:49 |
From | Victor Lazzarini |
Subject | Re: chnget with function syntax? |
chnget:k(…) ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 4 Mar 2017, at 16:39, Dave Seidel |
Date | 2017-03-04 16:51 |
From | Aaron Krister Johnson |
Subject | Re: chnget with function syntax? |
Dave, now that you mention it: I'm curious why multiple outputs couldn't be designed to work, a la Python? In Python, you can have a function that returns a tuple or list, etc. etc. e.g.: alpha, beta = myfunction(gamma, theta) On Sat, Mar 4, 2017 at 10:39 AM, Dave Seidel <dave.seidel@gmail.com> wrote:
|
Date | 2017-03-04 17:01 |
From | Victor Lazzarini |
Subject | Re: chnget with function syntax? |
in this case, because both k1 = ivar and k1 = kvar are valid, the compiler can’t tell which one of polymorphic opcode forms the user wants and falls back to chnset:i(). So we need the type hint. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 4 Mar 2017, at 16:51, Aaron Krister Johnson |
Date | 2017-03-04 17:16 |
From | John ff |
Subject | Re: chnget with function syntax? |
If we rewrote the entire parser and engine it should be possible. You got a spare year or two,?
Sent from TypeApp
On 4 Mar 2017, at 16:51, Aaron Krister Johnson <akjmicro@GMAIL.COM> wrote:
|
Date | 2017-03-04 17:42 |
From | Steven Yi |
Subject | Re: chnget with function syntax? |
Well the x,y = opcodes() does work in the parser3 branch. On Sat, Mar 4, 2017, 12:16 PM John ff <jpff@codemist.co.uk> wrote:
|
Date | 2017-03-04 20:33 |
From | Dave Seidel |
Subject | Re: chnget with function syntax? |
Thanks, Victor! On Sat, Mar 4, 2017 at 11:49 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: chnget:k(…) |