heuermh / lick

LiCK, Library for ChucK
GNU General Public License v3.0
147 stars 21 forks source link

CSV/JSON/etc classes? #4

Closed rolodato closed 7 years ago

rolodato commented 7 years ago

Hi @heuermh, LicK looks great. I've recently started diving into ChucK and found the need to read structured data from external files, but couldn't find a way and ended up doing something like this.

Do you know if there's a way to read from a CSV, JSON or other structured format using LicK or straight ChucK? If not, let me know and I can contribute a reader if this is something people could find useful. Thanks!

heuermh commented 7 years ago

File I/O in ChucK is not so great generally, so often I use Processing or Java to do parsing and then communicate with ChucK via MIDI or OSC.

That said, some library code to read structured formats, especially relevant things like MIDI mappings, drum machine patterns, musical scales, muscial notation, etc. would certainly be welcome here!

Some simple I/O examples here http://chuck.cs.princeton.edu/doc/examples/io/

I thought there was a ChucK StringTokenizer but now I can't find mention of it.

heuermh commented 7 years ago

Closing issue as WontFix. If you come up with any reader implementations and want to contribute them to LiCK, please create a pull request!