Skip to content

Commit

Permalink
some fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
hdavid committed Sep 26, 2023
1 parent 10449ea commit a6b6704
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions InstrumentControllerComponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
from _Framework.ButtonElement import ButtonElement
from _Framework.Util import find_if, clamp
try:
from itertools import imap
from itertools import imap
except ImportError:
# Python 3...
imap=map
# Python 3...
imap=map

from .TrackControllerComponent import TrackControllerComponent
from .ScaleComponent import ScaleComponent,CIRCLE_OF_FIFTHS,MUSICAL_MODES,KEY_NAMES
try:
from .Settings import Settings
from .Settings import Settings
except ImportError:
from .Settings import *
from .Settings import *

#fix for python3
try:
xrange
xrange
except NameError:
xrange = range
xrange = range

from _Framework.ButtonMatrixElement import ButtonMatrixElement
KEY_MODE = 0
Expand Down Expand Up @@ -341,7 +341,6 @@ def _matrix_value_quickscale(self, value, x, y, is_momentary): # matrix buttons
if root != -1:
self._scales.set_modus(selected_modus, False)
self._scales.set_key(root, False)
self._scales.update_object_name(self._track_controller.selected_clip)
self.update()

elif self._quick_scale_root==1:
Expand Down
2 changes: 1 addition & 1 deletion Settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Settings():
STEPSEQ__LINK_WITH_SESSION = False

# Should the step sequencer scroll automatically to the currently playing page
STEP_SEQ_AUTO_SCROLL = False
STEPSEQ__AUTO_SCROLL = False

# configure what user modes buttons do.
# the 3 first value configure the 3 sub modes of button user mode 1,
Expand Down

0 comments on commit a6b6704

Please sign in to comment.