def decoder(event_list, transpose_amount):
    'Translates a sequence generated by RLTuner to MonophonicMelody form.\n\n  Args:\n    event_list: Integer list of encoded notes.\n    transpose_amount: Key to transpose to.\n  Returns:\n    Integer list of MIDI values.\n  '
    return [((e - NUM_SPECIAL_EVENTS) if (e < NUM_SPECIAL_EVENTS) else ((e + INITIAL_MIDI_VALUE) - transpose_amount)) for e in event_list]
Translates a sequence generated by RLTuner to MonophonicMelody form.

Args:
  event_list: Integer list of encoded notes.
  transpose_amount: Key to transpose to.
Returns:
  Integer list of MIDI values.
def decoder(event_list, transpose_amount):
    'Translates a sequence generated by RLTuner to MonophonicMelody form.\n\n  Args:\n    event_list: Integer list of encoded notes.\n    transpose_amount: Key to transpose to.\n  Returns:\n    Integer list of MIDI values.\n  '
    return [((e - NUM_SPECIAL_EVENTS) if (e < NUM_SPECIAL_EVENTS) else ((e + INITIAL_MIDI_VALUE) - transpose_amount)) for e in event_list]