Csound Csound-dev Csound-tekno Search About

[Cs-dev] functional syntax in manual

Date2015-05-11 22:11
FromOeyvind Brandtsegg
Subject[Cs-dev] functional syntax in manual
Just a thought (and even just a half thought thought..),
if we should start teaching the functional syntax, maybe the manual
should be updated with syntax examples for each opcode?

for example in the page for oscil

ares oscil xamp, xcps [, ifn, iphs]

ares = oscil(xamp,xcps)

or something along those lines?


-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-12 17:21
FromDave Seidel
SubjectRe: [Cs-dev] functional syntax in manual
AttachmentsNone  None  
+1

I have recently made the switch and strongly prefer this syntax. Looking forward to being able to use it even more consistently (e.g., with opcodes that return multiple values).

On Mon, May 11, 2015 at 5:11 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Just a thought (and even just a half thought thought..),
if we should start teaching the functional syntax, maybe the manual
should be updated with syntax examples for each opcode?

for example in the page for oscil

ares oscil xamp, xcps [, ifn, iphs]

ares = oscil(xamp,xcps)

or something along those lines?


--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2015-05-12 17:40
FromVictor Lazzarini
SubjectRe: [Cs-dev] functional syntax in manual
AttachmentsNone  None  
I think you can already use multiple value returns in Csound 6.05 (Steven might confirm this)

a1, a2 = opcode(...)

What you can't and will probably not be able to do is to use them inline as input to functions. That is one problem that has not got an easy solution, and many languages do not actually allow it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 May 2015, at 17:21, Dave Seidel <dave.seidel@gmail.com> wrote:

+1

I have recently made the switch and strongly prefer this syntax. Looking forward to being able to use it even more consistently (e.g., with opcodes that return multiple values).

On Mon, May 11, 2015 at 5:11 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Just a thought (and even just a half thought thought..),
if we should start teaching the functional syntax, maybe the manual
should be updated with syntax examples for each opcode?

for example in the page for oscil

ares oscil xamp, xcps [, ifn, iphs]

ares = oscil(xamp,xcps)

or something along those lines?


--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2015-05-12 17:44
FromDave Seidel
SubjectRe: [Cs-dev] functional syntax in manual
AttachmentsNone  None  
Thanks, Victor, good to know and I will give it a try. I am not concerned about the other case you mention, as it does not tend to enhance readability.

- Dave

On Tue, May 12, 2015 at 12:40 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I think you can already use multiple value returns in Csound 6.05 (Steven might confirm this)

a1, a2 = opcode(...)

What you can't and will probably not be able to do is to use them inline as input to functions. That is one problem that has not got an easy solution, and many languages do not actually allow it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 May 2015, at 17:21, Dave Seidel <dave.seidel@gmail.com> wrote:

+1

I have recently made the switch and strongly prefer this syntax. Looking forward to being able to use it even more consistently (e.g., with opcodes that return multiple values).

On Mon, May 11, 2015 at 5:11 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Just a thought (and even just a half thought thought..),
if we should start teaching the functional syntax, maybe the manual
should be updated with syntax examples for each opcode?

for example in the page for oscil

ares oscil xamp, xcps [, ifn, iphs]

ares = oscil(xamp,xcps)

or something along those lines?


--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2015-05-12 17:50
FromDave Seidel
SubjectRe: [Cs-dev] functional syntax in manual
AttachmentsNone  None  
Alas, this is not working yet (I'm on the develop branch, so I would presume post-6.05, and the displayed version is 6.05.

The statement

    aLeft, aRight = pan2(aout, ipan)



results in


    error: syntax error, unexpected '=', expecting T_OPCODE or T_FUNCTION or ',' or '['  (token "= ") from file imaginary_harmony.csd (1)
     line 124:
    >>> aLeft, aRight =  <<<
    Unexpected untyped word aRight when expecting a variable


On Tue, May 12, 2015 at 12:44 PM, Dave Seidel <dave.seidel@gmail.com> wrote:
Thanks, Victor, good to know and I will give it a try. I am not concerned about the other case you mention, as it does not tend to enhance readability.

- Dave

On Tue, May 12, 2015 at 12:40 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I think you can already use multiple value returns in Csound 6.05 (Steven might confirm this)

a1, a2 = opcode(...)

What you can't and will probably not be able to do is to use them inline as input to functions. That is one problem that has not got an easy solution, and many languages do not actually allow it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 May 2015, at 17:21, Dave Seidel <dave.seidel@gmail.com> wrote:

+1

I have recently made the switch and strongly prefer this syntax. Looking forward to being able to use it even more consistently (e.g., with opcodes that return multiple values).

On Mon, May 11, 2015 at 5:11 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Just a thought (and even just a half thought thought..),
if we should start teaching the functional syntax, maybe the manual
should be updated with syntax examples for each opcode?

for example in the page for oscil

ares oscil xamp, xcps [, ifn, iphs]

ares = oscil(xamp,xcps)

or something along those lines?


--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel




Date2015-05-12 17:50
FromVictor Lazzarini
SubjectRe: [Cs-dev] functional syntax in manual
AttachmentsNone  None  
That's exactly the point. Anyway, I think Steven added the case, but I am not quite sure.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 May 2015, at 17:44, Dave Seidel <dave.seidel@gmail.com> wrote:

Thanks, Victor, good to know and I will give it a try. I am not concerned about the other case you mention, as it does not tend to enhance readability.

- Dave

On Tue, May 12, 2015 at 12:40 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I think you can already use multiple value returns in Csound 6.05 (Steven might confirm this)

a1, a2 = opcode(...)

What you can't and will probably not be able to do is to use them inline as input to functions. That is one problem that has not got an easy solution, and many languages do not actually allow it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 May 2015, at 17:21, Dave Seidel <dave.seidel@gmail.com> wrote:

+1

I have recently made the switch and strongly prefer this syntax. Looking forward to being able to use it even more consistently (e.g., with opcodes that return multiple values).

On Mon, May 11, 2015 at 5:11 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Just a thought (and even just a half thought thought..),
if we should start teaching the functional syntax, maybe the manual
should be updated with syntax examples for each opcode?

for example in the page for oscil

ares oscil xamp, xcps [, ifn, iphs]

ares = oscil(xamp,xcps)

or something along those lines?


--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2015-05-12 17:54
FromVictor Lazzarini
SubjectRe: [Cs-dev] functional syntax in manual
AttachmentsNone  None  
Ah, it must be parser3 then. Csound 7. 

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 May 2015, at 17:50, Dave Seidel <dave.seidel@gmail.com> wrote:

Alas, this is not working yet (I'm on the develop branch, so I would presume post-6.05, and the displayed version is 6.05.

The statement

    aLeft, aRight = pan2(aout, ipan)



results in


    error: syntax error, unexpected '=', expecting T_OPCODE or T_FUNCTION or ',' or '['  (token "= ") from file imaginary_harmony.csd (1)
     line 124:
    >>> aLeft, aRight =  <<<
    Unexpected untyped word aRight when expecting a variable


On Tue, May 12, 2015 at 12:44 PM, Dave Seidel <dave.seidel@gmail.com> wrote:
Thanks, Victor, good to know and I will give it a try. I am not concerned about the other case you mention, as it does not tend to enhance readability.

- Dave

On Tue, May 12, 2015 at 12:40 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I think you can already use multiple value returns in Csound 6.05 (Steven might confirm this)

a1, a2 = opcode(...)

What you can't and will probably not be able to do is to use them inline as input to functions. That is one problem that has not got an easy solution, and many languages do not actually allow it.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 May 2015, at 17:21, Dave Seidel <dave.seidel@gmail.com> wrote:

+1

I have recently made the switch and strongly prefer this syntax. Looking forward to being able to use it even more consistently (e.g., with opcodes that return multiple values).

On Mon, May 11, 2015 at 5:11 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Just a thought (and even just a half thought thought..),
if we should start teaching the functional syntax, maybe the manual
should be updated with syntax examples for each opcode?

for example in the page for oscil

ares oscil xamp, xcps [, ifn, iphs]

ares = oscil(xamp,xcps)

or something along those lines?


--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2015-05-12 19:02
FromSteven Yi
SubjectRe: [Cs-dev] functional syntax in manual
I had to check but it is implemented in the parser3 branch, and has a test file:

https://github.com/csound/csound/blob/feature/parser3/tests/commandline/test_multiple_return.csd



On Tue, May 12, 2015 at 12:54 PM, Victor Lazzarini
 wrote:
> Ah, it must be parser3 then. Csound 7.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 12 May 2015, at 17:50, Dave Seidel  wrote:
>
> Alas, this is not working yet (I'm on the develop branch, so I would presume
> post-6.05, and the displayed version is 6.05.
>
> The statement
>
>     aLeft, aRight = pan2(aout, ipan)
>
>
>
> results in
>
>
>     error: syntax error, unexpected '=', expecting T_OPCODE or T_FUNCTION or
> ',' or '['  (token "= ") from file imaginary_harmony.csd (1)
>      line 124:
>     >>> aLeft, aRight =  <<<
>     Unexpected untyped word aRight when expecting a variable
>
>
> On Tue, May 12, 2015 at 12:44 PM, Dave Seidel  wrote:
>>
>> Thanks, Victor, good to know and I will give it a try. I am not concerned
>> about the other case you mention, as it does not tend to enhance
>> readability.
>>
>> - Dave
>>
>> On Tue, May 12, 2015 at 12:40 PM, Victor Lazzarini
>>  wrote:
>>>
>>> I think you can already use multiple value returns in Csound 6.05 (Steven
>>> might confirm this)
>>>
>>> a1, a2 = opcode(...)
>>>
>>> What you can't and will probably not be able to do is to use them inline
>>> as input to functions. That is one problem that has not got an easy
>>> solution, and many languages do not actually allow it.
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>> On 12 May 2015, at 17:21, Dave Seidel  wrote:
>>>
>>> +1
>>>
>>> I have recently made the switch and strongly prefer this syntax. Looking
>>> forward to being able to use it even more consistently (e.g., with opcodes
>>> that return multiple values).
>>>
>>> On Mon, May 11, 2015 at 5:11 PM, Oeyvind Brandtsegg
>>>  wrote:
>>>>
>>>> Just a thought (and even just a half thought thought..),
>>>> if we should start teaching the functional syntax, maybe the manual
>>>> should be updated with syntax examples for each opcode?
>>>>
>>>> for example in the page for oscil
>>>>
>>>> ares oscil xamp, xcps [, ifn, iphs]
>>>>
>>>> ares = oscil(xamp,xcps)
>>>>
>>>> or something along those lines?
>>>>
>>>>
>>>> --
>>>>
>>>> Oeyvind Brandtsegg
>>>> Professor of Music Technology
>>>> NTNU
>>>> 7491 Trondheim
>>>> Norway
>>>> Cell: +47 92 203 205
>>>>
>>>> http://flyndresang.no/
>>>> http://www.partikkelaudio.com/
>>>> http://soundcloud.com/brandtsegg
>>>> http://soundcloud.com/t-emp
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2015-05-12 20:53
FromDave Seidel
SubjectRe: [Cs-dev] functional syntax in manual
AttachmentsNone  None  
Good to know, thanks. I may try building that branch locally.

On Tue, May 12, 2015 at 2:02 PM, Steven Yi <stevenyi@gmail.com> wrote:
I had to check but it is implemented in the parser3 branch, and has a test file:

https://github.com/csound/csound/blob/feature/parser3/tests/commandline/test_multiple_return.csd



On Tue, May 12, 2015 at 12:54 PM, Victor Lazzarini
<Victor.Lazzarini@nuim.ie> wrote:
> Ah, it must be parser3 then. Csound 7.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 12 May 2015, at 17:50, Dave Seidel <dave.seidel@gmail.com> wrote:
>
> Alas, this is not working yet (I'm on the develop branch, so I would presume
> post-6.05, and the displayed version is 6.05.
>
> The statement
>
>     aLeft, aRight = pan2(aout, ipan)
>
>
>
> results in
>
>
>     error: syntax error, unexpected '=', expecting T_OPCODE or T_FUNCTION or
> ',' or '['  (token "= ") from file imaginary_harmony.csd (1)
>      line 124:
>     >>> aLeft, aRight =  <<<
>     Unexpected untyped word aRight when expecting a variable
>
>
> On Tue, May 12, 2015 at 12:44 PM, Dave Seidel <dave.seidel@gmail.com> wrote:
>>
>> Thanks, Victor, good to know and I will give it a try. I am not concerned
>> about the other case you mention, as it does not tend to enhance
>> readability.
>>
>> - Dave
>>
>> On Tue, May 12, 2015 at 12:40 PM, Victor Lazzarini
>> <Victor.Lazzarini@nuim.ie> wrote:
>>>
>>> I think you can already use multiple value returns in Csound 6.05 (Steven
>>> might confirm this)
>>>
>>> a1, a2 = opcode(...)
>>>
>>> What you can't and will probably not be able to do is to use them inline
>>> as input to functions. That is one problem that has not got an easy
>>> solution, and many languages do not actually allow it.
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>> On 12 May 2015, at 17:21, Dave Seidel <dave.seidel@gmail.com> wrote:
>>>
>>> +1
>>>
>>> I have recently made the switch and strongly prefer this syntax. Looking
>>> forward to being able to use it even more consistently (e.g., with opcodes
>>> that return multiple values).
>>>
>>> On Mon, May 11, 2015 at 5:11 PM, Oeyvind Brandtsegg
>>> <oyvind.brandtsegg@ntnu.no> wrote:
>>>>
>>>> Just a thought (and even just a half thought thought..),
>>>> if we should start teaching the functional syntax, maybe the manual
>>>> should be updated with syntax examples for each opcode?
>>>>
>>>> for example in the page for oscil
>>>>
>>>> ares oscil xamp, xcps [, ifn, iphs]
>>>>
>>>> ares = oscil(xamp,xcps)
>>>>
>>>> or something along those lines?
>>>>
>>>>
>>>> --
>>>>
>>>> Oeyvind Brandtsegg
>>>> Professor of Music Technology
>>>> NTNU
>>>> 7491 Trondheim
>>>> Norway
>>>> Cell: +47 92 203 205
>>>>
>>>> http://flyndresang.no/
>>>> http://www.partikkelaudio.com/
>>>> http://soundcloud.com/brandtsegg
>>>> http://soundcloud.com/t-emp
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>>> Widest out-of-the-box monitoring support with 50+ applications
>>>> Performance metrics, stats and reports that give you Actionable Insights
>>>> Deep dive visibility with transaction tracing using APM Insight.
>>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel