Composing music with composed functions
summary
Functional code turns short strings like "C4@8N" into scheduled note objects and a playable sequence using Ramda and Tone.js. The demo shows pure functions for parsing name octave and duration, map filter and reduce to compute a note's start time, composition and partial application to build detune and transpose pipelines, and a runnable player via the Web Audio API; examples sound live though one timing display briefly reports 1.625 due to an on-screen update issue with the parse shorthand pipeline.
AI-written summary · about
chapters (7)
- 0:00Intro
- 3:09Tools
- 5:18Arrays
- 9:21Partial Application
- 10:51Composition
- 12:33Putting it all together
- 18:06Outro
related talks
22mComposing music with composed functions
39mFunctional Composition
25mDemo: Composable Compositions in Tonart
32mScala, Sound, and Structure - Composing Music through FP
13mMake Fun, Make Music with Node.js
14mTaming the Guitar AND Functional Programming!
42mSounds of Structure - Music Modelling with ADT's
37mHow to code music?
