title: JS Audio - audioBuffer getChannelData to frequency
body: <p><em>bsd</em></p>
  
  <p>I am trying achieve pitch detection, and moreover learn some basic audio physics on the way, I am actually really new to this and just trying to understand how this whole thing works...</p>
  
  <p>My question is, What is exactly the audioBuffer and how is the data coming from getChannelData related to frequencies. and how can I extract frequency data from the audioBuffer...</p>
  
  <p>Also, if someone can explain just a bit about sample rates etc. also this would be great. </p>
  
  <p>Thanks!</p>