This is just a subset of Audio DSP and MIDI related AssemblyScript code from @petersalomonsen's awesome javascriptmusic project's "synth1". It's purpose is to make it easier to compile a wasm file for use in the dart_synth project.
node_modules/.bin/asc --runtime stub assembly/index.ts -b build/osc.wasm -Oz --use abort=