OK my name's not Robert, but what he is (correctly) saying is that once Audacity 2.1 is released, this limitation can be easily fixed.Gale Andrews wrote:Sorry Robert can you explain that in more detail. What are you suggesting can be changed?
Audacity 2.1 supports version 4 plugins, which give Nyquist access to additional information from Audacity, including the start/end time of the selection in seconds.
The current version of the Equal Labels plugin has to calculate the start / end times either from the (get-duration) function, or from the 'LEN' (number of selected samples) variable, both of which amount to much the same thing because they both depend on the sample count.
To fix this limitation, the plugin version needs to be changed from version 3 to version 4, and then instead of
Code: Select all
(get-duration 1)Code: Select all
(- (get '*selection* 'end)(get '*selection* 'start))