added the extra functionality in changing the pitch of the sounds