def selected_tracks(self): """ List of selected tracks (excluding master). :type: list of Track """ return [ reapy.Track(RPR.GetSelectedTrack(self.id, i)) for i in range(self.n_selected_tracks) ]
def get_selected_track(self, index): """ Return index-th selected track. Parameters ---------- index : int Track index. Returns ------- track : Track index-th selected track. """ track_id = RPR.GetSelectedTrack(self.id, index) track = reapy.Track(track_id) return track