Example #1
0
def octave_set(oct_in, rebind=True):
    global octave
    octave = oct_in
    octave_clip()
    if rebind:
        bind_grid()
    lp_scaleedit.update_active()
    if lp_events.mode == "SCALEEDIT":
        lp_events.unbind_all(False)
        lp_scaleedit.bind_grid()
        lp_scaleedit.bind_function_keys()
    lp_colors.update()
    print("[LPMM] OCTAVE SET, NOW " + str(octave))
Example #2
0
def octave_down(rebind=True):
    global octave
    octave -= 1
    octave_clip()
    if(rebind):
        bind_grid()
    lp_scaleedit.update_active()
    if lp_events.mode == "SCALEEDIT":
        lp_events.unbind_all(False)
        lp_scaleedit.bind_grid()
        lp_scaleedit.bind_function_keys()
    lp_colors.update()
    print("[LPMM] OCTAVE DOWN, NOW " + str(octave))
Example #3
0
def scale_set(scale_in, rebind=True, print_mesg=True):
    global scale
    scale = globals()["SCALE_" + scale_in] #haha doing this just so I can print the name of the scale... and now it takes a string like the other funcs
    octave_clip()
    if rebind:
        bind_grid()
    lp_scaleedit.update_active()
    if lp_events.mode == "SCALEEDIT":
        lp_events.unbind_all(False)
        lp_scaleedit.bind_grid()
        lp_scaleedit.bind_function_keys()
    lp_colors.update()
    if print_mesg:
        print("[LPMM] SCALE SET, NOW " + str(scale_in))
Example #4
0
def mode_set(mode_in, rebind=True):
    global mode
    global octave
    mode = mode_in
    octave_clip()
    if rebind:
        bind_grid()
    lp_scaleedit.update_active()
    if lp_events.mode == "SCALEEDIT":
        lp_events.unbind_all(False)
        lp_scaleedit.bind_grid()
        lp_scaleedit.bind_function_keys()
    lp_colors.update()
    print("[LPMM] MODE SET, NOW " + mode)
Example #5
0
def key_set(key_in, rebind=True, print_mesg=True):
    global key
    key = key_in
    octave_clip()
    if rebind:
        bind_grid()
    lp_scaleedit.update_active()
    if lp_events.mode == "SCALEEDIT":
        lp_events.unbind_all(False)
        lp_scaleedit.bind_grid()
        lp_scaleedit.bind_function_keys()
    lp_colors.update()
    if print_mesg:
        print("[LPMM] KEY SET, NOW " + key)
Example #6
0
def start(lp_object):
    lp_colors.init(lp_object)
    init(lp_object)
    run(lp_object)
    lp_instrument.set_as_mode(False)
    lp_scaleedit.update_active()