Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ableton Live 12 compatibility #19

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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