Skip to content

Commit

Permalink
Merge pull request #19 from angeloruggieridj/master
Browse files Browse the repository at this point in the history
Ableton Live 12 compatibility
  • Loading branch information
offlinemark authored Mar 12, 2024
2 parents 03d9c7a + faea3a2 commit b3a512a
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 b3a512a

Please sign in to comment.