A useful Tip for users of this component: I often listen to full length DJ Tracks which usually have a long intros and outros for syncing mixing and transitions. When i listen to such tracks i normally want to skip the first and the last Minute of the track.
Setting the Skip Tag for the first Minute is no problem with this component. Setting the last Minute is the trickier Part because you have to calculate the Time one Minute (or whatever you want to skip)
i solved this with the "Automatically fill values..." Tool in the Tag editor Window.
i chose source -> Other: and used this script
-1:00;$sub($cut(%length%,$sub($strchr(%length%,:),1)),1):$right(%length%,$strchr(%length%,:))-
Pattern is then the Tag Name
%skip%
With this examples foo_skip skips the first and last minute of each chosen (tagged) track
%length_seconds% might make your life easier.
Thank you for your suggestion!
I also noticed that this component accepts positions such as 61:1 or 3661.
With all this new information, now the code is much simpler.
A is the duration you want to skip at the beginning. Format in minutes or in seconds
B is the duration you want to skip at the end. Format in seconds (example: 151). Make sure it's shorter than your track length.
recommended formula:
-A;$div($sub(%length_seconds%,B),60):$mod($sub(%length_seconds%,B),60)-
or even (format in seconds):
-A;$sub(%length_seconds%,B)-
or the universal formula (if you want to format hours):
-A;$ifgreater($sub(%length_seconds%,B),3599,$div($sub(%length_seconds%,B),3600):$div($sub($mod(%length_seconds%,3600),B),60):$mod($sub(%length_seconds%,B),60),$div($sub(%length_seconds%,B),60):$mod($sub(%length_seconds%,B),60))-
Now it becomes a bit more difficult to follow this last code, but, for your understanding, the formula is
if(final position greater than 1 hour)
then (length-B)/3600 : ((length-B) mod 3600)/60 : (length-B) mod 60
else (length-B)/60 : (length-B) mod 60