def METHOD_NAME(min_note, max_note):
  """Return a OneHotEventSequenceEncoderDecoder for melodies.
  Args:
    min_note: The minimum midi pitch the encoded melodies can have.
    max_note: The maximum midi pitch (exclusive) the encoded melodies can have.
  Returns:
    A melody OneHotEventSequenceEncoderDecoder.
  """
  return note_seq.OneHotEventSequenceEncoderDecoder(
      note_seq.MelodyOneHotEncoding(min_note, max_note))