Taming the Guitar AND Functional Programming!
summary
A small TypeScript app implements an improvisation helper that connects Web Audio nodes into a composable pipeline and plays sine tones in the browser. It applies fp-ts-style functional patterns (reimplementing Option/Maybe and Either/Left/Right via TDD) to chain guitar → effects → amp, propagate None for missing chord dictionary entries, and validate user input to log errors or produce frequencies. The repository and tests demonstrate the approach end-to-end.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:45Generate sound with JavaScript
- 3:09Guitar and Web Audio API
- 5:16Compose with pipe in FP
- 7:01Sound demo
- 8:03Error handling with Option
- 10:28User input validation
- 12:35Conclusion
related talks
26mHow to teach your computer to play guitar
19mComposing music with composed functions
21mChanging live audio with the web-audio-api
25mJavaScript, JavaScript…. Rocks You!
07mTyped Functional Programming in TypeScript with fp-ts
33mCode, Play & Rock 'n' Roll: A WebAudio Experiment
10mA Multitrack Reactive Music Player For The Browser
29mCode, Play & Rock 'n' Roll: A WebAudio Experiment
