'Initializes a MelodyOneHotEncoding object.
Args:
min_note: The minimum midi pitch the encoded melody events can have.
max_note: The maximum midi pitch (exclusive) the encoded melody events
can have.
Raises:
ValueError: If `min_note` or `max_note` are outside the midi range, or if
`max_note` is not greater than `min_note`.'

def __init__(self, min_note, max_note):

    if (min_note < MIN_MIDI_PITCH):
        raise ValueError(('min_note    must    be    >=    0.    min_note    is    %d.' % min_note))
    if (max_note > (MAX_MIDI_PITCH + 1)):
        raise ValueError(('max_note    must    be    <=    128.    max_note    is    %d.' % max_note))
    if (max_note <= min_note):
        raise ValueError('max_note    must    be    greater    than    min_note')
    self._min_note = min_note
    self._max_note = max_note
