Re: Macro selection help for crossfading multiple audio clips
Posted: Sat Jan 18, 2020 1:32 pm
I did the suggested troubleshooting. The error seems to come after a 2nd crossfade command. This means it is happening when the macro is trying to crossfade the clip that has previously been crossfaded.
I found that the error does not occur when an extra SelNextClip: statement is inserted so that the macro is never trying to crossfade the clip that has previously been crossfaded. But this means that we're skipping a clip.
So that you can reproduce exactly, I'm attaching a compressed version of a test project (Archive.zip -- it's just something very small I found) and the text for the macros I used. I used 3 macros:
1) OneCrossFade.txt (works)
2) TwoCrossFades.txt (errors at 2nd crossfade step)
3) TwoCrossFadesExtraSelect.txt (works, but skips a clip)
Here are screenshots showing:
(A) before running any macro
(B) after running TwoCrossFades.txt (which gives the error)
(C) after running TwoCrossFadesExtraSelect.txt (which works, but skips a clip)
I found that the error does not occur when an extra SelNextClip: statement is inserted so that the macro is never trying to crossfade the clip that has previously been crossfaded. But this means that we're skipping a clip.
So that you can reproduce exactly, I'm attaching a compressed version of a test project (Archive.zip -- it's just something very small I found) and the text for the macros I used. I used 3 macros:
1) OneCrossFade.txt (works)
Code: Select all
SelectAll:
TruncateSilence:Action="Truncate Detected Silence" Compress="50" Independent="0" Minimum="0.001" Threshold="-60" Truncate="0"
SelNextClip:
SelectTime:End="0.2" RelativeTo="SelectionStart" Start="-0.2"
CrossfadeClips:Use_Preset="<Factory Defaults>"Code: Select all
SelectAll:
TruncateSilence:Action="Truncate Detected Silence" Compress="50" Independent="0" Minimum="0.001" Threshold="-60" Truncate="0"
SelNextClip:
SelectTime:End="0.2" RelativeTo="SelectionStart" Start="-0.2"
CrossfadeClips:Use_Preset="<Factory Defaults>"
SelNextClip:
SelectTime:End="0.2" RelativeTo="SelectionStart" Start="-0.2"
CrossfadeClips:Use_Preset="<Factory Defaults>"Code: Select all
SelectAll:
TruncateSilence:Action="Truncate Detected Silence" Compress="50" Independent="0" Minimum="0.001" Threshold="-60" Truncate="0"
SelNextClip:
SelectTime:End="0.2" RelativeTo="SelectionStart" Start="-0.2"
CrossfadeClips:Use_Preset="<Factory Defaults>"
SelNextClip:
SelNextClip:
SelectTime:End="0.2" RelativeTo="SelectionStart" Start="-0.2"
CrossfadeClips:Use_Preset="<Factory Defaults>"(A) before running any macro
(B) after running TwoCrossFades.txt (which gives the error)
(C) after running TwoCrossFadesExtraSelect.txt (which works, but skips a clip)