code: function from_frequency(frequency) {
  			var log2 = Math.log2;
  			var round = Math.round;
  
  			return round(log2(frequency / A4_frequency) * 12);
  		}
docs: / Computes the index of the note with frequency nearest to the specified / value (in Hz).