def make_configurable_button(cc_no, name, type=MIDI_NOTE_TYPE, channel=0):
    button = ConfigurableButtonElement(IS_MOMENTARY, type, channel, cc_no)
    button.name = name
    return button
예제 #2
0
def make_button(type, cc_no):
    # ConfigurableButtonElement( is_momentary, msg_type, channel, identifier )
    return ConfigurableButtonElement(True, type, 0, cc_no)
예제 #3
0
파일: Launchkey.py 프로젝트: cce/buttons
def make_configurable_button(cc_no, name, type = MIDI_NOTE_TYPE, channel = 0):
    button = ConfigurableButtonElement(IS_MOMENTARY, type, channel, cc_no)
    button.name = name
    return button
def make_configurable_button(cc_no, name):
    button = ConfigurableButtonElement(IS_MOMENTARY, MIDI_NOTE_TYPE, 0, cc_no)
    button.name = name
    return button
예제 #5
0
def make_configurable_button(cc_no, name):
    button = ConfigurableButtonElement(IS_MOMENTARY, MIDI_NOTE_TYPE, 0, cc_no)
    button.name = name
    return button