Skip to content

Commit

Permalink
Update ableton.py
Browse files Browse the repository at this point in the history
Updated MasterTrack finder for Ableton 12
  • Loading branch information
angeloruggieridj authored Mar 9, 2024
1 parent 03d9c7a commit faea3a2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dawtool/daw/ableton.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,12 @@ def _parse_automation(self, contents):
if self.version.minorA < 10:
events = self._parse_arranger_automation_events(contents)
else:
# TODO: need better code structure to manage diff Ableton version
# This only applies to Ableton 10
master_track_chunk = self._find_tag(contents, 'MasterTrack')
if self.version.minorA in [10,11]:
# This only applies to Ableton 10 and 11
master_track_chunk = self._find_tag(contents, 'MasterTrack')
else:
# This only applies to Ableton 12
master_track_chunk = self._find_tag(contents, 'MainTrack')
try:
master_track = ET.fromstring(master_track_chunk)
except ParseError:
Expand Down

0 comments on commit faea3a2

Please sign in to comment.