Skip to content

Commit

Permalink
Update amagalma_Delete all envelope points inside Razor Edit areas (d…
Browse files Browse the repository at this point in the history
…o not add edge points).lua
  • Loading branch information
amagalma authored Apr 24, 2024
1 parent e495940 commit 2412d6a
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
-- @description Delete all envelope points inside Razor Edit areas (do not add edge points)
-- @author amagalma
-- @version 1.00
-- @version 1.01
-- @changelog Added support for Master Track
-- @link https://forum.cockos.com/showthread.php?t=250759
-- @donation https://www.paypal.me/amagalma
-- @about Differs from the native action because it does not add edge points.


local track_cnt = reaper.CountTracks(0)
if track_cnt == 0 then return reaper.defer(function() end) end

local envs, env_cnt = {}, 0
local tracks = {}

for tr = 0, track_cnt - 1 do
local track = reaper.GetTrack(0, tr)
tracks[tr+1] = reaper.GetTrack(0, tr)
end
tracks[track_cnt+1] = reaper.GetMasterTrack( 0 )

for tr = 1, track_cnt + 1 do
local track = tracks[tr]
local _, area = reaper.GetSetMediaTrackInfo_String(track, "P_RAZOREDITS", "", false)
if area ~= "" then
local arSt, arEn
Expand Down

0 comments on commit 2412d6a

Please sign in to comment.