Csound Csound-dev Csound-tekno Search About

[Cs-dev] functional syntax misinterpretation

Date2014-06-18 10:03
FromOeyvind Brandtsegg
Subject[Cs-dev] functional syntax misinterpretation
Hi,
It seems that there is a mix up between functional and normal statements.
This gives a syntax error:

instr 1
i1      = 1
a1      upsamp (i1*2)
endin

If I remove the parenthesis, it works fine.
In this simple case the parenthesis is obviously not needed, but in
some cases it might be needed.

A workaround is to do:
instr 1
i1      = 1
a1      upsamp 1*(i1*2)
endin
.. but it seems clumsy to have to resort to that trick

best
Oeyvind

-- 

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

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-06-18 11:21
FromVictor Lazzarini
SubjectRe: [Cs-dev] functional syntax misinterpretation
No syntax error here with the latest GIT
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 18 Jun 2014, at 10:03, Oeyvind Brandtsegg  wrote:

> Hi,
> It seems that there is a mix up between functional and normal statements.
> This gives a syntax error:
> 
> instr 1
> i1      = 1
> a1      upsamp (i1*2)
> endin
> 
> If I remove the parenthesis, it works fine.
> In this simple case the parenthesis is obviously not needed, but in
> some cases it might be needed.
> 
> A workaround is to do:
> instr 1
> i1      = 1
> a1      upsamp 1*(i1*2)
> endin
> .. but it seems clumsy to have to resort to that trick
> 
> best
> Oeyvind
> 
> -- 
> 
> 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
> 
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net