noteToValue(text) {
    const normalizedText = text.trim().toUpperCase();
    const i = FieldPitch.NOTES.indexOf(normalizedText);
    return i > -1 ? i : undefined;
  }
Convert the human-readable text (C3-A4) to machine-readable value (0-12).
@param {string} text The provided pitch.
@returns {number|undefined} The respective value, or undefined if invalid.