Make creation of sound classes more generic