Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions FX/graysonsolis_Add JS Humanizer to top of track chain.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
-- @description Add JS Humanizer to top of track chain
-- @author Grayson Solis
-- @version 1.0
-- @about Inserts the built-in JS humanizer at slot 1 on the selected track’s FX chain.
-- @website https://graysonsolis.com
-- @donations https://paypal.me/GrayTunes?country.x=US&locale.x=en_US

local tr = reaper.GetSelectedTrack(0, 0)
if not tr then return end

reaper.Undo_BeginBlock()
-- add the JS humanizer to the TRACK FX chain (recFX = false), always at end (pos = -1)
local fx = reaper.TrackFX_AddByName(
tr,
"JS: MIDI Velocity and Timing Humanizer",
false, -- false = normal FX chain (not Input FX)
-1 -- -1 = always add new instance at end
)
if fx >= 0 then
-- move it into slot 0 (top of chain), shifting others down
reaper.TrackFX_CopyToTrack(tr, fx, tr, 0, true)
end
reaper.Undo_EndBlock("Add JS MIDI Velocity and Timing Humanizer to top", -1)