3 ms·
> state( "Magic", { consume(16), toString(), assert("SPLICE") } ), > state( "Length", { consume( 1), fromOrd(), cropInput() } ), > state(
by peteretep 12y ago
> state( "Magic", { consume(16), toString(), assert("SPLICE") } ),
> state( "Length", { consume( 1), fromOrd(), cropInput() } ),
> state( "Version", { consume(32), toString(), setVersion() } ),
> state( "Tempo", { consume( 4), fromFloat(), setTempo() }),
> state( "Instruments", { exhaust([snip]) } ),
The layout, from my abortive attempt to write a parser.
http://en.wikipedia.org/wiki/Single-precision_floating-point_format http://en.wikipedia.org/wiki/Single-precision_floating-point...