Beginning to write chirp fn generator