Sound design tools: M2/M3 interactive views
Created by: jedmund
Summary
- SynthPlayground engine: new audio engine for sound design tools with real-time filters (MoogLadder LP, Butterworth HP/BP, notch), ADSR amplitude envelope via AudioKit AmplitudeEnvelope, software-driven filter envelope and LFO at 120Hz, modulation routing system, and RawDataTap/FFTTap for live visualization data
- Shared components: WaveformView (Canvas-based 60fps waveform renderer), SpectrumView (log-scale FFT with cutoff line overlay), XYPadView (2D touch control), ADSRGraphView (draggable 4-point envelope editor), SignalFlowView (tappable signal chain diagram)
- 4 tool views: filter_playground (XY pad + spectrum), envelope_editor (ADSR graph + trigger), virtual_synth (signal flow + keyboard), mod_matrix (wire-drawing routing + LFO/envelope controls + keyboard)
- All 4 registered in ToolViewFactory, SynthPlayground injected via environment key in AppView
Test plan
-
Build succeeds on iPad simulator -
filter_playground: XY pad controls cutoff/resonance, source/filter pills switch audio, spectrum updates with cutoff line -
envelope_editor: drag ADSR control points, long-press trigger fires envelope, presets snap values -
virtual_synth: tap signal flow stages to switch panels, play keyboard through full chain -
mod_matrix: tap source then destination to draw wire, adjust amount slider, LFO rate/shape controls work, keyboard triggers modulated sound