Parameterize tone generation.