8000 Add clip_slot support to track_data · steeltrack/AbletonOSC@c46f2b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Add clip_slot support to track_data
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Jan 1, 2024
1 parent ccd678b commit c46f2b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions abletonosc/song.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ def song_get_track_data(params):
rv.append(value)
elif obj == "clip":
for clip_slot in track.clip_slots:
if property_name == "has_stop_button":
rv.append(clip_slot.has_stop_button)
if clip_slot.clip is not None:
rv.append(getattr(clip_slot.clip, property_name))
else:
if clip_slot.clip is not None:
rv.append(getattr(clip_slot.clip, property_name))
else:
rv.append(None)
rv.append(None)
elif obj == "clip_slot":
for clip_slot in track.clip_slots:
rv.append(getattr(clip_slot, property_name))
elif obj == "device":
for device in track.devices:
rv.append(getattr(device, property_name))
Expand Down

0 comments on commit c46f2b1

Please sign in to comment.
0