A hands-on coding exploration of synthesizing musical instruments from scratch using additive synthesis. Starting with basic sine wave generation, the project tackles floating-point precision issues, implements ADSR envelopes with Bezier curve editors, adds harmonic overtone control, builds a dynamic audio compressor, and implements equal-temperament tuning with logarithmic pitch spacing. A MIDI keyboard is integrated for velocity-sensitive input. The piano is approximated by analyzing real recordings via a spectrogram tool, extracting harmonic amplitudes and decay characteristics per note, then interpolating between keyframes. The session ends with experiments producing flute and marimba-like sounds, illustrating the breadth of additive synthesis.

35m watch time

Sort: