8000 Song: Add song_length getter · steeltrack/AbletonOSC@c908fc9 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Song: Add song_length getter
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Nov 19, 2023
1 parent d55400d commit c908fc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ for [Live Object Model - Song](https://docs.cycling74.com/max8/vignettes/live_ob
| /live/song/get/session_record | | session_record | Query whether session record is enabled |
| /live/song/get/signature_denominator | | denominator | Query the current time signature's denominator |
| /live/song/get/signature_numerator | | numerator | Query the current time signature's numerator |
| /live/song/get/song_length | | song_length | Query the song arrangement length, in beats |
| /live/song/get/tempo | | tempo_bpm | Query the current song tempo |

#### Setters
Expand Down
5 changes: 3 additions & 2 deletions abletonosc/song.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ def init_api(self):
]

#--------------------------------------------------------------------------------
# Callbacks for Song: properties (read-only)
# Callbacks for Songi: properties (read-only)
#--------------------------------------------------------------------------------
properties_r = [
"can_redo",
"can_undo",
"is_playing"
"is_playing",
"song_length",
]

for prop in properties_r + properties_rw:
Expand Down

0 comments on commit c908fc9

Please sign in to comment.
0