minor changes to SoundGenerator