8000 Add clip.has_stop_button to track_data · steeltrack/AbletonOSC@96388d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit

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

0 comments on commit 96388d8

Please sign in to comment.
0