How to teach your computer to play guitar
summary
A working pipeline turns bracketed chord sheets into structured tokens using parser combinators rather than a giant regex, implemented in Elm with the parser library (P.run). Code parses notes and qualities, converts chords to integer semitone notation, builds an in‑memory guitar tuning model, enumerates playable fingerings and selects the easiest, then triggers a JavaScript synth to play the result. Live demos compile and run in the browser, and the repo includes the slides and two demo apps.
AI-written summary · about
chapters (9)
- 0:00Introduction to the talk
- 2:08Live coding setup
- 7:26Limitations of regex
- 8:30What are parser combinators
- 12:07Building a chord parser
- 15:16Parsing full sheet lines
- 19:32Why parser combinators matter
- 22:01Live demo with guitar chords
- 25:00Q&A and resources
related talks
12mDo Parsers Dream of Electric Guitars?!
21mAnyone Can Play Guitar (With Ruby)
14mTaming the Guitar AND Functional Programming!
30mMusic Chord Chart in Elm
24mBuilding a Music Learning Game with Elm, Web MIDI, and SVG Animation
13mMake Fun, Make Music with Node.js
24mPlay Them Off, Keyboard App: Building a virtual piano in JavaScript
19mComposing music with composed functions
