C++ library for granular synthesis