Add comments to pitch.js to explain for reference.