Csound Csound-dev Csound-tekno Search About

[Cs-dev] csound+json

Date2013-05-01 21:34
FromBen Hackbarth
Subject[Cs-dev] csound+json
AttachmentsNone  None  
hi,

i know that i'm way late to the csound6 wishlist party, but i am just curious if there are any plans to support external file formats for data storage (other than SDIF, which i find to be a bit obtuse). 

in light of the possibility of working multidimensional arrays, perhaps it would be nice to have other ways of storing and retrieving numerical data than just using tables and textfiles.  recently i've been using parsing JSON data via the python opcodes, and i am actually achieving faster read times when compared to reading the same data into ftables with csound opcodes.

would there be any interest in including a json (or json-like) list of objects for loading files and reading data into arrays by key?  is there another method for reading/writing data that others are already using?

as max6 now supports json parsing with the dict object, it also might make exchanging data between csound easier.

cheers,
--  ben

Date2013-05-01 22:00
FromAndres Cabrera
SubjectRe: [Cs-dev] csound+json
AttachmentsNone  None  
I think this might not be too far away, but what Csound is currently lacking is a dictionary type. It's likely not too hard to add it with the new flexible type system.

Cheers,
Andrés


On Wed, May 1, 2013 at 1:34 PM, Ben Hackbarth <hackbarth@gmail.com> wrote:
hi,

i know that i'm way late to the csound6 wishlist party, but i am just curious if there are any plans to support external file formats for data storage (other than SDIF, which i find to be a bit obtuse). 

in light of the possibility of working multidimensional arrays, perhaps it would be nice to have other ways of storing and retrieving numerical data than just using tables and textfiles.  recently i've been using parsing JSON data via the python opcodes, and i am actually achieving faster read times when compared to reading the same data into ftables with csound opcodes.

would there be any interest in including a json (or json-like) list of objects for loading files and reading data into arrays by key?  is there another method for reading/writing data that others are already using?

as max6 now supports json parsing with the dict object, it also might make exchanging data between csound easier.

cheers,
--  ben

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2013-05-03 21:44
Fromjoachim heintz
SubjectRe: [Cs-dev] csound+json
not sure if you mean this, but there is also readf/readfi:
http://www.csounds.com/manual/html/readf.html
http://www.csounds.com/manual/html/readfi.html

	joachim

Am 01.05.2013 22:34, schrieb Ben Hackbarth:
> hi,
>
> i know that i'm way late to the csound6 wishlist party, but i am just
> curious if there are any plans to support external file formats for data
> storage (other than SDIF, which i find to be a bit obtuse).
>
> in light of the possibility of working multidimensional arrays, perhaps
> it would be nice to have other ways of storing and retrieving numerical
> data than just using tables and textfiles.  recently i've been using
> parsing JSON data via the python opcodes, and i am actually achieving
> faster read times when compared to reading the same data into ftables
> with csound opcodes.
>
> would there be any interest in including a json (or json-like) list of
> objects for loading files and reading data into arrays by key?  is there
> another method for reading/writing data that others are already using?
>
> as max6 now supports json parsing with the dict object, it also might
> make exchanging data between csound easier.
>
> cheers,
> --  ben
>
>
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
>
>
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net