Aidan H. answered 12/03/20
A passionate student looking to help others achieve their best
Hi, there are several libraries and enviorments related to what you're talking about. A tool you can check out is Sonic Pi. It's used for live coding music and can be used to great effect; however, it has it's own interface. If you want to be strict about the CLI, you could try writing a wrapper around it or something similar. If you're newer to audio synthesis and audio programing, I recommend checking out Pure Data. It's a visual programing language, but it can really help in learning the subject.