def create_encoder(identifier, name):
    encoder = IdentifyingEncoderElement(
        MIDI_CC_TYPE, GLOBAL_CHANNEL, identifier,
        MidiMap.MapMode.relative_smooth_two_compliment, 12)
    encoder.name = name
    encoder.set_feedback_delay(-1)
    return encoder
def create_encoder(identifier, name):
    encoder = IdentifyingEncoderElement(
        MIDI_CC_TYPE, GLOBAL_CHANNEL, identifier, MidiMap.MapMode.relative_smooth_two_compliment, 12
    )
    encoder.name = name
    encoder.set_feedback_delay(-1)
    return encoder
def create_slider(identifier, name):
    slider = IdentifyingEncoderElement(MIDI_CC_TYPE, GLOBAL_CHANNEL,
                                       identifier, MidiMap.MapMode.absolute)
    slider.name = name
    slider.set_feedback_delay(-1)
    return slider
def create_slider(identifier, name):
    slider = IdentifyingEncoderElement(MIDI_CC_TYPE, GLOBAL_CHANNEL, identifier, MidiMap.MapMode.absolute)
    slider.name = name
    slider.set_feedback_delay(-1)
    return slider