[Cs-dev] New type system in Csound 6
Date | 2013-04-13 21:37 |
From | Michael Gogins |
Subject | [Cs-dev] New type system in Csound 6 |
Attachments | None None |
Where can I find documentation and examples on how to use the new type system?
Regards, Mike Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-04-13 21:48 |
From | Steven Yi |
Subject | Re: [Cs-dev] New type system in Csound 6 |
Hi Michael, The new type system isn't fully documented at this time. The relevant files are csound_type_system.c/.h (contains the basis of the type and var code) and csound_standard_types.c/.h (contains the definitions for the basic types of csound). After that, the type information is discovered and used mostly in csound_orc_semantics.c and csound_orc_compile.c, where the former uses CS_VAR_POOL's to fill with var definitions and uses the var pools to lookup var's being defined and/or their types, and the latter using the var pool total size to help calculate the size of memBlock to allocate for the instrument. The unit test in tests/c might be useful to see about adding custom types and how the vars are defined via CS_TYPE's. If you have any questions, I'll try to answer them here. I had chatted with John and Victor and we had discussed putting together a developer's documentation in LaTeX in the CS6 repo, but we haven't gotten around to doing that yet. Thanks! steven On Sat, Apr 13, 2013 at 9:37 PM, Michael Gogins |
Date | 2013-04-13 22:01 |
From | Michael Gogins |
Subject | Re: [Cs-dev] New type system in Csound 6 |
Attachments | None None |
Thanks, a test or example should certainly help. Best, Mike On Sat, Apr 13, 2013 at 4:48 PM, Steven Yi <stevenyi@gmail.com> wrote: Hi Michael, Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |