Skip to content

Commit

Permalink
🎨 Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
leolabs committed Oct 24, 2023
1 parent a7b84e2 commit f06d3d0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions midi-script/Song.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
from .Track import Track
import Live

INSERT_MODES = {'default':Live.Track.DeviceInsertMode.default,
'left':Live.Track.DeviceInsertMode.selected_left,
'right':Live.Track.DeviceInsertMode.selected_right}
INSERT_MODES = {'default': Live.Track.DeviceInsertMode.default,
'left': Live.Track.DeviceInsertMode.selected_left,
'right': Live.Track.DeviceInsertMode.selected_right}


class Song(Interface):
def __init__(self, c_instance, socket):
Expand Down Expand Up @@ -66,8 +67,9 @@ def get_current_smpte_song_time(self, ns, timeFormat):
def set_appointed_device(self, ns, device_id):
ns.appointed_device = Interface.get_obj(device_id)

def set_insert_mode(self,ns, args):
self._insert_mode = INSERT_MODES.get(str(args), INSERT_MODES['default'])
def set_insert_mode(self, ns, args):
self._insert_mode = INSERT_MODES.get(
str(args), INSERT_MODES['default'])
self.song.view.selected_track.view.device_insert_mode = self._insert_mode

def safe_stop_playing(self, ns):
Expand Down

0 comments on commit f06d3d0

Please sign in to comment.