How smileybones/oscillo-synth works
oscillo-synth is a client-side oscilloscope-art instrument paired with a synthesizer, available in browser and Electron desktop shells. The main workflow configures trace sources and effects in the shared UI, renders paths into X/Y samples, and displays the trace; the synth has its own DSP and audio-worklet path, with MIDI input and live waveform preview. The README documents several capabilities whose detailed wiring was not sampled; those are represented as subsystem nodes without speculative internal call edges.
Main entry points: app.ts Instrument UI · audio-graph.ts Audio graph · synth-worklet.ts Synth worklet · geometry Path geometry
Components 24
Shared instrument UI
- Instrument UI
packages/ui-web/src/app.ts - Knob controls
packages/ui-web/src/knob.ts - XY pad
packages/ui-web/src/xy-pad.ts
Trace engine
- Trace sources
packages/engine/src/sources - SVG path parser
packages/engine/src/sources/svg-path-parser.ts - 3D mesh source
packages/engine/src/sources/mesh-source.ts - Video tracing
packages/engine/src/render/trace-pixels.ts - Path geometry
packages/engine/src/geometry - Trace effects
packages/engine/src/effects - Sample renderer
packages/engine/src/render/path-to-samples.ts - Travel optimizer
packages/engine/src/render/travel-optimizer.ts
Synth engine
- Synth DSP
packages/engine/src/synth/voice.ts
Web platform
- Synth worklet
packages/platform-web/src/synth/synth-worklet.ts - Audio graph
packages/platform-web/src/audio/audio-graph.ts - Trace worklet
packages/platform-web/src/audio/render-worklet.ts - MIDI manager
packages/platform-web/src/midi/midi-manager.ts - X/Y preview
packages/platform-web/src/canvas/xy-preview.ts - Waveform preview
packages/platform-web/src/canvas/waveform-preview.ts
App shells
- Browser entry
apps/web/src/main.ts - Desktop renderer
apps/desktop/src/renderer/src/main.ts - Electron shell
apps/desktop/src/main/index.ts
Other components
- Musician
- MIDI keyboard
- Oscilloscope
Connections 23
- Musician → Instrument UI: configures
- Browser entry → Instrument UI: starts
apps/web/src/main.ts - Desktop renderer → Instrument UI: starts
apps/desktop/src/renderer/src/main.ts - Electron shell → Desktop renderer: hosts
- Instrument UI → Knob controls: enhances controls
packages/ui-web/src/app.ts - Instrument UI → XY pad: configures pad
packages/ui-web/src/app.ts - Instrument UI → Trace sources: creates sources
packages/ui-web/src/app.ts - Instrument UI → Sample renderer: renders paths
packages/ui-web/src/app.ts - Instrument UI → Trace effects: applies effects
packages/ui-web/src/app.ts - Instrument UI → MIDI manager: manages input
packages/ui-web/src/app.ts - Instrument UI → X/Y preview: previews trace
packages/ui-web/src/app.ts - SVG path parser → Path geometry: builds commands
packages/engine/src/sources/svg-path-parser.ts - 3D mesh source → Path geometry: builds paths
packages/engine/src/sources/mesh-source.ts - Video tracing → Path geometry: produces paths
packages/engine/src/render/trace-pixels.ts - Sample renderer → Travel optimizer: optimizes travel
packages/engine/src/render/path-to-samples.ts - MIDI keyboard → MIDI manager: sends notes
- Instrument UI → Synth worklet: controls synth
- Synth worklet → Synth DSP: runs DSP
packages/platform-web/src/synth/synth-worklet.ts - Instrument UI → Audio graph: controls audio
- Audio graph → Synth worklet: hosts
- Audio graph → Trace worklet: hosts
- Instrument UI → Waveform preview: previews waveform
packages/ui-web/src/app.ts - X/Y preview → Oscilloscope: visualizes trace