Example tutorials
Complete walkthroughs of the teaching package: portable processors, four executable examples, offline helpers, the native UI/audio adapter, the HTML editor and regression tests.
Every source line is numbered and has an expandable explanation. Chapters describe the signal flow, validation, ownership and behavior before the corresponding code.
The processors and offline traces work without native devices. The live editor requires macOS and the default live-ui feature. Explicit --render or --offline arguments select the hardware-free entry points.
| File | Walkthrough | Lines |
|---|---|---|
src/bin/effect.rs | Delay example entry point | 34 |
src/bin/midi-synth.rs | Subtractive synth entry point | 47 |
src/bin/mpe.rs | MPE expression entry point | 83 |
src/bin/midi2.rs | MIDI 2.0 and UMP entry point | 97 |
src/lib.rs | Tutorial package and platform entry point | 20 |
src/support/mod.rs | Offline rendering and WAV helpers | 133 |
src/delay.rs | Portable stereo delay processor | 191 |
src/synth.rs | Portable subtractive synthesizer | 326 |
src/ui/audio.rs | Bounded live audio adapter | 561 |
src/ui/mod.rs | Main-thread UI and device owner | 914 |
tests/delay.rs | Delay regression tests | 207 |
tests/subtractive.rs | Subtractive synth regression tests | 153 |
tests/walkthroughs.rs | Executable tutorial fixtures | 134 |
editor/index.html | HTML editor, controls and native messages | 84 |