Browse Source

4PointCutting: Add crossfade not only on first destination track but on all.

master
Ludwig Frühschütz 4 years ago
parent
commit
df9ea26ba6
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      4PointCutting/4Pcut_execute.lua

+ 7
- 0
4PointCutting/4Pcut_execute.lua View File

@ -177,6 +177,13 @@ reaper.Main_OnCommand(40058, 0) -- paste item
--reaper.Main_OnCommand( reaper.NamedCommandLookup('_SWS_AWPASTE'), 0 ) -- SWS Paste
-- Crossfade (only with SWS extensions, "fill gaps")
if sws_present then
-- select track with selected items
local selected_items_count = reaper.CountSelectedMediaItems(0)
for i = 0, selected_items_count - 1 do
local item = reaper.GetSelectedMediaItem(0, i)
local track = reaper.GetMediaItem_Track(item)
reaper.SetTrackSelected(track, true)
end
reaper.Main_OnCommand( 40290, 0 ) -- set time selection to selected items
reaper.Main_OnCommand( 40320, 0 ) -- nudge left edge of time selection left
reaper.Main_OnCommand( 40323, 0 ) -- nudge right edge of time selection right


Loading…
Cancel
Save