Added setpitch and setAmplitude and tests