Pitch detection in JavaScript.