Tagged: codemirror
Part 9: Code That Makes Music
The inputs make way for an editor. Its code describes a song through a small API that is built from a schema, running the code gives a patch of plain data, and an engine turns the patch into units that play. CodeMirror and two keys complete the page.
Intermediate45 minPart 11: When the Code Is Wrong
Catch every mistake the code can make: options are checked against the schema with a "did you mean", an error is marked at its line in the editor, and a worker with a timeout ends code that never ends. The music plays on through all of it.
Intermediate40 minPart 16: See What You Hear
Make the music visible: every step of a pattern lights up in the editor at the moment its note is heard, and a small display shows the wave and the spectrum of the sound. On the way you meet the decorations of CodeMirror and the AnalyserNode.
Intermediate35 minPart 17: An Editor That Helps
Teach the editor the words of the app: suggestions for functions, options, values and drum names while you type, and an explanation for the word under the mouse. All of it comes from the schema that already builds the API, and the syntax tree says where the cursor is.
Intermediate30 min