Improvements to tonegenerator