getPitch() {
    var freqValue = this.rate() * midiToFreq(60);
    return freqToMidi(freqValue);
  }
Returns the current pitch of a sound file as a MIDI note.

@method getPitch
@for p5.SoundFile
@return {Number}  Current pitch of the SoundFile. The default note is assumed to
                  be 60 (middle C).