I need to generate musical notes of a given frequency on the command line
Here is a list of the frequencies of notes http://www.phy.mtu.edu/~suits/notefreqs.html
It's simple, old and unmaintained but take a look at https://github.com/psycotica0/tone-generator
$ brew install sdl $ git clone https://github.com/psycotica0/tone-generator.git $ cd tone-generator && make $ ./generator 2600 2