Skip to content

Commit

Permalink
Use new reaper API to reorder track FX
Browse files Browse the repository at this point in the history
Requires Reaper 5.95, which is fine because the next release
will require 5.97 anyway.

Fixes #1
  • Loading branch information
jtackaberry committed Jun 18, 2019
1 parent e37466a commit ad5d776
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/screens/installer.lua
Expand Up @@ -40,9 +40,7 @@ function screen.init()
reaper.PreventUIRefresh(1)
reaper.Undo_BeginBlock()
local fx = reaper.TrackFX_AddByName(app.track, 'Reaticulate.jsfx', 0, 1)
for fx = fx, 0, -1 do
reaper.SNM_MoveOrRemoveTrackFX(app.track, fx, -1)
end
reaper.TrackFX_CopyToTrack(app.track, fx, app.track, 0, true)
reaper.Undo_EndBlock("Add Reaticulate FX", -1)
reaper.PreventUIRefresh(-1)
rfx.sync(rfx.track, true)
Expand Down

0 comments on commit ad5d776

Please sign in to comment.