I need to get the end of a *PROJECT*. It doesn't appear there is a simple answer. Instead, I calculate if from the end of the project tracks, which is not too complicated:
Code: Select all
(setf proj-tracks (aud-get-info "tracks")) (defun track-end (track-property) (setf end-time (cadr (assoc 'end track-property))) (if (null end-time) 0 end-time)) (setf cur-tracks-end (apply 'max (mapcar 'track-end proj-tracks)))
My current project is 1h15m32s0228samples long. The valuer returned by the code above is 4532.050000. That's not right.
The value returned by selecting everything and getting the selection end [get '*selection*' end] is 4532.051882, which is correct.
So, is there a way to get the correct project length?