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))
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))
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))
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)
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)