function noteToFreq(note) {
  if (typeof note !== 'string') {
    return note;
  }
  var wholeNotes = {
    A: 33,
    B: 35,
    C: 24,
    D: 26,
    E: 28,
    F: 29,
    G: 31
  };
  var value = wholeNotes[note[0].toUpperCase()];
  var octave = ~~note.slice(-1);
  value += 12 * (octave - 1);
  switch (note[1]) {
    case '#':
      value += 1;
      break;
    case 'b':
      value -= 1;
      break;
    default:
      break;
  }
  return midiToFreq(value);
}
Returns the frequency value of a note. This
 the method converts ANSI notes specified as a
 string "C4", "Eb3" etc to a frequency.

 @method  noteToFreq
 @param  {String} ansiNote The string of a ANSI note
 @return {Number} Frequency value of the given ANSI note