'Constructs an EncoderPipeline.
Args:
config: A MelodyRnnConfig that specifies the encoder/decoder, pitch range,
and what key to transpose into.
name: A unique pipeline name.'

def __init__(self, config, name):

    super(EncoderPipeline, self).__init__(input_type=magenta.music.Melody, output_type=tf.train.SequenceExample, name=name)
    self._melody_encoder_decoder = config.encoder_decoder
    self._min_note = config.min_note
    self._max_note = config.max_note
    self._transpose_to_key = config.transpose_to_key
