JuanSOLO wrote:Is there a way to edit the script so that when in Sequencer mode, the Bank Up and Down buttons increment by 5?
Okay, as promised, here's how to get the step sequencer to Navigate Up/Down 5 rows at a time:
In the file
StepSequencerComponent.py, change the following lines:
Code: Select all
def _nav_up_value(self, value):
assert (self._nav_up_button != None)
assert (value in range(128))
if self.is_enabled() and self._is_active:
button_is_momentary = self._nav_up_button.is_momentary()
if button_is_momentary:
if (value != 0):
self._scroll_up_ticks_delay = INITIAL_SCROLLING_DELAY
else:
self._scroll_up_ticks_delay = -1
if ((value != 0) or (not self._nav_up_button.is_momentary())):
if self._key_index < (123 - self._height): #<------------------- Change from 128 to 123
self._key_index += 5 #<------------------------------------- Change from 1 to 5
self._update_matrix()
def _nav_down_value(self, value):
assert (self._nav_down_button != None)
assert (value in range(128))
if self.is_enabled() and self._is_active:
button_is_momentary = self._nav_down_button.is_momentary()
if button_is_momentary:
if (value != 0):
self._scroll_down_ticks_delay = INITIAL_SCROLLING_DELAY
else:
self._scroll_down_ticks_delay = -1
if ((value != 0) or (not self._nav_down_button.is_momentary())):
if self._key_index > 4: #<-------------------------------------- Change from 0 to 4
self._key_index -= 5 #<------------------------------------- Change from 1 to 5
self._update_matrix()
And for rapid scrolling 5 rows at a time (via Press and Hold Nav buttons), in the same file, further down in the
def _on_timer(self): method, change the following lines:
Code: Select all
if (self._scroll_down_ticks_delay > -1):
if self._is_scrolling():
key_increment -= 5 #<----------------------------------- Change from 1 to 5
self._scroll_down_ticks_delay = INTERVAL_SCROLLING_DELAY
self._scroll_down_ticks_delay -= 1
if (self._scroll_up_ticks_delay > -1):
if self._is_scrolling():
key_increment += 5 #<----------------------------------- Change from 1 to 5
self._scroll_up_ticks_delay = INTERVAL_SCROLLING_DELAY
self._scroll_up_ticks_delay -= 1
You should be able to make these changes with any simple text editor, but let me know if you have any trouble. I suppose I could make these changes a permanent "feature" for a future release, if there's general agreement that this behaviour is an improvement.
Best,
Hanz