Do Parsers Dream of Electric Guitars?!
summary
A concrete demo of building a chord reader that parses chord sheets into structured data using Elm and the elm/parser library and not regex the code defines types for Note and Quality then composes parsers that recognize roots minors sevenths and optional brackets the program computes playable guitar fingerings chooses ergonomic voicings renders SVG chord diagrams and plays audio and the same pipeline extends to ukulele showing how the parser drives real output not just text matching
AI-written summary · about
chapters (19)
- 0:00Intro
- 0:38Welcome
- 1:24Song Sheet
- 2:12Regular Expression
- 3:48Emoji
- 4:32Wishful Programming
- 4:53Notes
- 5:07Chord
- 5:25Quality
- 5:46Building a parser
- 5:57Parser type
- 6:37Parser operator
- 7:14Note parser
- 7:46Quality parser
- 8:06Square brackets
- 8:35Compiler
- 8:53Chord Selection
- 9:12Demo
- 10:56I Will Survive
related talks
26mHow to teach your computer to play guitar
30mMusic Chord Chart in Elm
14mTaming the Guitar AND Functional Programming!
24mBuilding a Music Learning Game with Elm, Web MIDI, and SVG Animation
58mGoodbye Regex. Hello Parsers!
32mI wrote a Ruby Library to help me compose my music album
41mBuilding a Graphical IDE in Elm/Purescript
21mAnyone Can Play Guitar (With Ruby)
