def pydaw_midi_learn(self, a_is_on): self.send_configure("ml", bool_to_int(a_is_on))
def pydaw_open_song(self, a_project_folder, a_first_open=True): self.send_configure("os", "{}|{}".format(bool_to_int(a_first_open), a_project_folder))
def pydaw_update_plugin_control(self, a_is_instrument, a_track_type, a_track_num, a_port, a_val): self.send_configure( "pc", "|".join(str(x) for x in (bool_to_int(a_is_instrument), a_track_type, a_track_num, a_port, a_val)))
def pydaw_configure_plugin(self, a_is_instrument, a_track_type, a_track_num, a_key, a_message): self.send_configure( "co", "|".join(str(x) for x in (bool_to_int(a_is_instrument), a_track_type, a_track_num, a_key, a_message)))
def pydaw_set_overdub_mode(self, a_is_on): """ a_is_on should be a bool """ self.send_configure("od", bool_to_int(a_is_on))
def pydaw_ab_set(self, a_bool): self.send_configure("abs", bool_to_int(a_bool))
def pydaw_set_mute(self, a_track_num, a_bool, a_track_type): self.send_configure( "mute", "{}|{}|{}".format(a_track_num, bool_to_int(a_bool), a_track_type))
def pydaw_set_track_rec(self, a_track_type, a_track_num, a_bool): self.send_configure( "tr", "{}|{}|{}".format(a_track_type, a_track_num, bool_to_int(a_bool)))
def pydaw_set_plugin(self, a_track_num, a_index, a_plugin_index, a_uid, a_on): self.send_configure( "pi", "|".join( str(x) for x in (a_track_num, a_index, a_plugin_index, a_uid, bool_to_int(a_on))))
def pydaw_set_mute(self, a_track_num, a_bool): self.send_configure( "mute", "|".join(str(x) for x in (a_track_num, bool_to_int(a_bool))))
def pydaw_open_song(self, a_project_folder, a_first_open=True): self.send_configure( "os", "|".join( str(x) for x in (bool_to_int(a_first_open), a_project_folder)))
def pydaw_midi_device(self, a_is_on, a_device_num, a_track_num): self.send_configure( "md", "|".join( str(x) for x in (bool_to_int(a_is_on), a_device_num, a_track_num)))