a question about notefreq1

That code is obviously for a Teensy 3.x with audio board so you would be better off asking this question in the Teensy Forums - in this case the Audio Projects forum.

Pete