How rafe34201/subtractive-synthesizer-diy works
Project type and purpose
• This is a standalone desktop application—a subtractive software synthesizer written entirely in Python.
• It reads live MIDI input, provides a graphical UI for parameter control, generates waveforms, applies filtering and envelopes, and outputs audio in real time without external plugins.
File structure
• Top-level:
• README.md — documents features, installation, usage
• synth.py — the single Python entry point containing UI, MIDI handling, DSP, plotting, and audio I/O
• No separate frontend/backend folders; it’s a monolithic script organized into logical classes or functions for each synthesizer stage.
• Dependencies in README: numpy, sounddevice, mido/python-rtmidi, matplotlib, scipy.
README for additional insights
• Core functionality:
• Five oscillators (Sin, Square, Saw, Triangle, Noise)
• Four filters (Highpass, Lowpass, Bandpass, Bandreject) with cutoff and slope controls
• ADS envelope (Attack, Decay, Sustain)
• Master volume and pitch fine-tune
• Real-time waveform and ADS curve plotting
• On-screen keyboard display
• Workflow: connect MIDI controller → launch synth.py → confirm device → play/adjust.
Detail
• Processing stage explicitly rather than lumping into one block.
• Configuration or setup steps (e.g., “Confirm MIDI Device” before input flow).
• Real-time constraints (e.g., callback buffer size).