(event_list, transpose_amount)
return [_decode_event(e) 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.
Translates a sequence generated by RLTuner to MonophonicMelody form.
Translates a sequence generated by RLTuner to MonophonicMelody form .
def decoder(event_list, transpose_amount):
  """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 _decode_event(e):
    if e < NUM_SPECIAL_EVENTS:
      return e - NUM_SPECIAL_EVENTS
    else:
      return e + INITIAL_MIDI_VALUE - transpose_amount
  return [_decode_event(e) for e in event_list]
def decoder ( event_list , transpose_amount ) : def _decode_event ( e ) : if e < NUM_SPECIAL_EVENTS : return e - NUM_SPECIAL_EVENTS else : return e + INITIAL_MIDI_VALUE - transpose_amount return [ _decode_event ( e ) for e in event_list ]