added toggle_x3_as_speed as a command available to midi map, and added a script to generate a helpful list of available actions

This commit is contained in:
Tristan Rowley
2019-12-14 16:32:36 +00:00
parent 6c3848cf6c
commit 28b610d01e
3 changed files with 11 additions and 0 deletions

View File

@@ -352,6 +352,12 @@ class Actions(object):
def clear_shader_bank(self): def clear_shader_bank(self):
self.data.clear_all_shader_slots() self.data.clear_all_shader_slots()
def toggle_x3_as_speed(self):
if self.data.settings['shader']['X3_AS_SPEED']['value'] == 'enabled':
self.shaders.set_x3_as_speed(False)
else:
self.shaders.set_x3_as_speed(True)
def toggle_detour_record(self): def toggle_detour_record(self):
if self.data.settings['detour']['TRY_DEMO']['value'] == 'enabled': if self.data.settings['detour']['TRY_DEMO']['value'] == 'enabled':
is_recording = not self.data.detour_settings['is_recording'] is_recording = not self.data.detour_settings['is_recording']

View File

@@ -0,0 +1,2 @@
#!/bin/sh
grep " def " actions.py | sed -e 's/ def //' | sed -e 's/self//' | sed -e 's/(, /(/' | sed -e 's/()//' | sort -n

View File

@@ -139,6 +139,9 @@ class Shaders(object):
else: else:
self.set_speed_to_amount(0.75) self.set_speed_to_amount(0.75)
def set_x3_as_speed(self, status):
self.data.settings['shader']['X3_AS_SPEED']['value'] = 'enabled' if status else 'disabled'
@staticmethod @staticmethod
def get_new_param_amount(current, change): def get_new_param_amount(current, change):
if current + change > 1: if current + change > 1: