AUDIO
Source snapshot · 12 October 2026

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.

FileWalkthroughLines
src/bin/effect.rsDelay example entry point34
src/bin/midi-synth.rsSubtractive synth entry point47
src/bin/mpe.rsMPE expression entry point83
src/bin/midi2.rsMIDI 2.0 and UMP entry point97
src/lib.rsTutorial package and platform entry point20
src/support/mod.rsOffline rendering and WAV helpers133
src/delay.rsPortable stereo delay processor191
src/synth.rsPortable subtractive synthesizer326
src/ui/audio.rsBounded live audio adapter561
src/ui/mod.rsMain-thread UI and device owner914
tests/delay.rsDelay regression tests207
tests/subtractive.rsSubtractive synth regression tests153
tests/walkthroughs.rsExecutable tutorial fixtures134
editor/index.htmlHTML editor, controls and native messages84

Read the example setup and validation guide