Skip to content

Commit

Permalink
🐛 Fix master track erroring because it doesn't have solo/mute properties
Browse files Browse the repository at this point in the history
  • Loading branch information
leolabs committed Nov 11, 2023
1 parent 46e1354 commit 3b58e72
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions midi-script/Track.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,25 @@ def serialize_track(track):
return None

track_id = Interface.save_obj(track)

solo = False
mute = False

try:
solo = track.solo
except:
pass

try:
mute = track.mute
except:
pass

return {
"id": track_id,
"name": track.name,
"solo": track.solo,
"mute": track.mute,
"solo": solo,
"mute": mute,
"color": track.color,
"color_index": track.color_index,
"is_foldable": track.is_foldable,
Expand Down

0 comments on commit 3b58e72

Please sign in to comment.