Example MSB/LSB hack using ManipulatePlugin to do wide+fine tuning of video playback position, for #142

This commit is contained in:
Tristan Rowley
2020-08-06 23:22:52 +00:00
parent f68a18de9d
commit 9db0ff2fdd
2 changed files with 3 additions and 0 deletions

View File

@@ -60,6 +60,7 @@
"DEFAULT": ["set_the_shader_param_2_layer_offset_0_continuous","set_shader_speed_layer_1_amount"],
"NAV_DETOUR": ["set_detour_end_continuous"],
"NAV_WJMX": ["wj_set_colour_T:x"],
"NAV_MANI": ["set_variable_playheadmsb&&f:pc.actions.call_method_name('seek_to_location_on_player',((x*10) + playheadlsb)/11 ):|"],
"NAV_LFO": ["set_lfo_modulation_2_level"],
"NAV_SND": ["sound_set_config_energy_triggerthreshold"]
},
@@ -67,6 +68,7 @@
"DEFAULT": ["set_the_shader_param_3_layer_offset_0_continuous","set_shader_speed_layer_2_amount"],
"NAV_DETOUR": ["set_detour_end_continuous"],
"NAV_WJMX": ["wj_set_colour_T:y"],
"NAV_MANI": ["set_variable_playheadlsb&&f:pc.actions.call_method_name('seek_to_location_on_player',((playheadmsb*10) + x)/11 ):|"],
"NAV_LFO": ["set_lfo_modulation_3_level"]
},
"control_change 52": {

View File

@@ -48,6 +48,7 @@ class ManipulatePlugin(ActionsPlugin, DisplayPlugin, ModulationReceiverPlugin):
DEBUG = False
def __init__(self, plugin_collection):
globals()['pc'] = plugin_collection
super().__init__(plugin_collection)
# ActionsPlugin methods