AsyncIO + Music
summary
Python uses AsyncIO plus uvloop and RTMidi to read MIDI, forward a hardware clock, and schedule generators; the demo builds a sequencer that forwards the Novation circuit clock to a mono analog synth, runs a drum task and an arpeggiator, and adapts tempo live. MIDI clock resolution is 24 pulses per quarter note, timing uses asyncio queues, thread-safe call_soon and futures (a metronome/countdown) and the system stays in sync and production‑usable.
AI-written summary · about
chapters (15)
- 0:00Intro
- 1:17Overview
- 1:39Synthesizers
- 2:38The instruments
- 6:32AsyncIO
- 7:55Music Theory
- 9:53MIDI
- 13:15Synchronous
- 17:05Clock
- 18:50Coding
- 21:25Scripting
- 27:12MIDI callback
- 34:58Error Handling
- 41:46Demonstration
- 58:19Metronome
related talks
31mLive audio synthesis with Synchrotron
31mA Really Gentle Introduction to Asyncio
26mWhy computer science matters to musicians
03mBuild a Synthesizer with Python
42mBeating Threads - live coding with real time
45mAI Lofi HipHop - How Not To Generate AI-Music
52mAI Lofi HipHop - How (Not) To Generate AI Music
31mSounds good!
