def create_settings(preferences=None):
    preferences = preferences if preferences != None else {}
    pad_settings = _create_pad_settings()
    return {
        SETTING_WORKFLOW:
        OnOffSetting(name='Workflow',
                     value_labels=['Scene', 'Clip'],
                     default_value=True,
                     preferences=preferences),
        SETTING_THRESHOLD:
        EnumerableSetting(name='Pad Threshold',
                          values=range(consts.MIN_THRESHOLD_STEP,
                                       consts.MAX_THRESHOLD_STEP + 1),
                          default_value=0,
                          preferences=preferences,
                          value_formatter=_threshold_formatter),
        SETTING_CURVE:
        EnumerableSetting(name='Velocity Curve',
                          values=pad_settings,
                          default_value=pad_settings[1],
                          preferences=preferences),
        SETTING_AFTERTOUCH_THRESHOLD:
        EnumerableSetting(name='Aftertouch Threshold',
                          values=range(128),
                          default_value=consts.INSTRUMENT_AFTERTOUCH_THRESHOLD,
                          preferences=preferences)
    }
def create_settings(preferences=None):
    preferences = preferences if preferences != None else {}
    pad_settings = _create_pad_settings()
    return {
        'SceneList':
        OnOffSetting(name='Scene List',
                     default_value=True,
                     preferences=preferences),
        'PadParams':
        EnumerableSetting(name='Pad Sensitivity',
                          values=pad_settings,
                          default_value=pad_settings[1],
                          preferences=preferences)
    }