Skip to content

Commit

Permalink
Update amagalma_Smart Crossfade.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
amagalma authored Sep 25, 2024
1 parent 5f3e27c commit 181c4d6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Items Editing/amagalma_Smart Crossfade.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-- @description Smart Crossfade
-- @author amagalma
-- @version 1.72
-- @version 1.73
-- @changelog
-- - added User Setting (inside the script) for maximum gap allowance between two selected items that will crossfade (fill-in gaps)
-- - set default for User Setting for maximum gap allowance between two selected items that will crossfade (fill-in gaps) to the default split crossfade length
-- @link https://forum.cockos.com/showthread.php?t=195490
-- @donation https://www.paypal.me/amagalma
-- @about
Expand Down Expand Up @@ -34,7 +34,7 @@ local remove_RE_area = 1 -- Set to 1 if you want to remove the Razor Edit area (
--
-- Maximum gap between two selected items (not in time selection or RE area) that can crossfade --
-- (set it to -1, if you want it to be equal to the default split crossfade length) --
local maximum_gap = 125 -- ms. --
local maximum_gap = -1 -- in ms. --
--
---------------------------------------------------------------------------------------------------

Expand All @@ -58,8 +58,7 @@ if xfadeshape < 0 or xfadeshape > 7 then
xfadeshape = tonumber(({reaper.get_config_var_string( "defxfadeshape" )})[2]) or 7
end

maximum_gap = maximum_gap/1000
maximum_gap = maximum_gap > -1 and maximum_gap or xfadetime
maximum_gap = maximum_gap > -1 and maximum_gap/1000 or xfadetime


-- Razor Edit
Expand Down

0 comments on commit 181c4d6

Please sign in to comment.