Csound Csound-dev Csound-tekno Search About

[Cs-dev] new parser request

Date2010-10-01 10:36
FromVictor Lazzarini
Subject[Cs-dev] new parser request
Would it be possible to implement the parsing of opcodes as functions  
now?

a1 = oscil(k1,k2,1)

a1 = oscil(k1, k2+oscil(k3,k2,1), 1)


That would be very nice.

Victor

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-10-01 11:13
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] new parser request
> Would it be possible to implement the parsing of opcodes as functions
> now?
>
> a1 = oscil(k1,k2,1)
>
> a1 = oscil(k1, k2+oscil(k3,k2,1), 1)
>
>
> That would be very nice.
>

Basically possible; need to kix the reported bug first but not much hassle


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-10-02 03:38
FromSteven Yi
SubjectRe: [Cs-dev] new parser request
I've wanted this ability too, but there's one tricky bit in what to do
about opcodes that return multiple values, particularly when in the
middle of an expression.  The simple way is just to disallow it and
allow only calling opcodes as functions if they have a single output
argument.  That seems fairly trivial to do.  If we want to allow
multi-arg return opcodes, then we'll have to come up with some sort of
rules for it.

Thoughts?

On Fri, Oct 1, 2010 at 6:13 AM,   wrote:
>> Would it be possible to implement the parsing of opcodes as functions
>> now?
>>
>> a1 = oscil(k1,k2,1)
>>
>> a1 = oscil(k1, k2+oscil(k3,k2,1), 1)
>>
>>
>> That would be very nice.
>>
>
> Basically possible; need to kix the reported bug first but not much hassle
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-10-02 03:43
FromJacob Joaquin
SubjectRe: [Cs-dev] new parser request
I would certainly love for Csound5 to have these types of abilities.
Though looking far into the future towards Csound6, I believe a
redesigned grammer that followed more modern programming conventions
would benefit Csound. For example, an opcode that returned multiple
arguments could return a list. Though that would obviously require
Csound to adopt new types of data structures. :)

Best,
Jake
-- 
The Csound Blog - http://csoundblog.com/
Slipmat - http://slipmat.noisepages.com/


On Fri, Oct 1, 2010 at 7:38 PM, Steven Yi  wrote:
> I've wanted this ability too, but there's one tricky bit in what to do
> about opcodes that return multiple values, particularly when in the
> middle of an expression.  The simple way is just to disallow it and
> allow only calling opcodes as functions if they have a single output
> argument.  That seems fairly trivial to do.  If we want to allow
> multi-arg return opcodes, then we'll have to come up with some sort of
> rules for it.
>
> Thoughts?

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge