Difference between revisions of "C"

From CCRMA Wiki
Jump to: navigation, search
m
m
Line 21: Line 21:
 
Run Javascript from commandline (Node):
 
Run Javascript from commandline (Node):
 
  http://javascript.cs.lmu.edu/notes/commandlinejs/
 
  http://javascript.cs.lmu.edu/notes/commandlinejs/
 +
 +
Read text-file into buffer:
 +
http://stackoverflow.com/questions/3747086/reading-the-whole-text-file-into-a-char-array-in-c

Revision as of 05:40, 25 September 2014

Arrays

http://www.cs.swarthmore.edu/~newhall/unixhelp/C_arrays.html#dynamic2D

http://web.stanford.edu/~fringer/teaching/operating_systems_03/handouts/lecture8.pdf

JSON parsing (MIT license):

http://zserge.com/jsmn.html

JSON parsing example explained:

http://alisdair.mcdiarmid.org/2012/08/14/jsmn-example.html

Midi to Json converter:

https://github.com/mobyvb/midi-converter

convert midi to json: > node midi-to-json.js

> node midi-to-json.js scale_t0.mid scale_t0.json
> node midi-to-json.js scale_t1.mid scale_t1.json

Run Javascript from commandline (Node):

http://javascript.cs.lmu.edu/notes/commandlinejs/

Read text-file into buffer:

http://stackoverflow.com/questions/3747086/reading-the-whole-text-file-into-a-char-array-in-c