forked from ReaTeam/ReaScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release two new scripts: (reset stereo width) and (remove hardware ou…
…tputs)
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
Tracks Properties/cfillion_Remove hardware outputs of selected tracks.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
-- @description Remove hardware outputs of selected tracks | ||
-- @version 1.0 | ||
-- @author cfillion | ||
-- @website http://forum.cockos.com/showthread.php?t=189761 | ||
-- @donation https://www.paypal.me/cfillion | ||
|
||
local self = ({reaper.get_action_context()})[2]:match('([^/\\_]+).lua$') | ||
local UNDO_STATE_TRACKCFG = 1 | ||
local HARDWARE_OUT = 1 -- > 0 | ||
|
||
local seltracks = reaper.CountSelectedTracks() | ||
if seltracks < 1 then return reaper.defer(function() end) end | ||
|
||
reaper.Undo_BeginBlock() | ||
|
||
for ti=0, seltracks-1 do | ||
local track = reaper.GetSelectedTrack(0, ti) | ||
for si=0, reaper.GetTrackNumSends(track, HARDWARE_OUT)-1 do | ||
reaper.RemoveTrackSend(track, HARDWARE_OUT, 0) | ||
end | ||
end | ||
|
||
reaper.Undo_EndBlock(self, UNDO_STATE_TRACKCFG) |
20 changes: 20 additions & 0 deletions
20
Tracks Properties/cfillion_Reset stereo width of selected tracks to 100%.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- @description Reset stereo width of selected tracks to 100% | ||
-- @version 1.0 | ||
-- @author cfillion | ||
-- @website http://forum.cockos.com/showthread.php?t=189761 | ||
-- @donation https://www.paypal.me/cfillion | ||
|
||
local self = ({reaper.get_action_context()})[2]:match('([^/\\_]+).lua$') | ||
local UNDO_STATE_TRACKCFG = 1 | ||
|
||
local seltracks = reaper.CountSelectedTracks() | ||
if seltracks < 1 then return reaper.defer(function() end) end | ||
|
||
reaper.Undo_BeginBlock() | ||
|
||
for i=0, seltracks-1 do | ||
local track = reaper.GetSelectedTrack(0, i) | ||
reaper.SetMediaTrackInfo_Value(track, 'D_WIDTH', 1) | ||
end | ||
|
||
reaper.Undo_EndBlock(self, UNDO_STATE_TRACKCFG) |