Csound Csound-dev Csound-tekno Search About

[Cs-dev] New type system in Csound 6

Date2013-04-13 21:37
FromMichael Gogins
Subject[Cs-dev] New type system in Csound 6
AttachmentsNone  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

Date2013-04-13 21:48
FromSteven Yi
SubjectRe: [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
 wrote:
> 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
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-13 22:01
FromMichael Gogins
SubjectRe: [Cs-dev] New type system in Csound 6
AttachmentsNone  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,

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
<michael.gogins@gmail.com> wrote:
> 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
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com