C++ music generator