def note_to_val(note):
if note not in NOTE_VAL_DICT:<EOL><INDENT>raise ValueError("<STR_LIT>".format(note))<EOL><DEDENT>return NOTE_VAL_DICT[note]<EOL>
Convert note to int

    >>> note_to_val("C")
    0
    >>> note_to_val("B")
    11

    :type note: str
    :rtype: int