CmdSynth

The command line synthesizer built in C++ that effortlessly generates customizable audio, featuring a built-in sequencer. Explore the code on GitHub.

CmdSynth logo
Sine Wave A4
Square Wave A4
Sawtooth Wave A4
Triangle Wave A4
C major scale sequence
Video game powerup sequence

What it does

CmdSynth can be used as a single-tone generator or as a single-voice sequencer. It supports all four basic wave types (Sine, Square, Sawtooth, and Triangle) and all the notes in the western musical scale. It also has a built-in cutoff filter that prevents aliasing and can be moved by the user to change the synthesizer's timbre.

How it works

This project is built in C++ and only uses standard libraries for its Audio DSP and signal generation, and as a result it is very lightweight. Under the hood it generates the basic waveforms and performs basic processing to them such as filters and fades to ensure that the final file is audible, un-aliased, and does not cause speakers to click or pop in any way.

Use cases

CmdSynth can be used to quickly generate tones for use in music or sound design. It is especially useful for generating large sample libraries all at once with just a few parameters and a custom script. It can also be used in sequencer mode to generate audio assets for video games, just like the powerup example on the left.