Skip to content

Commit 116e2b2

Browse files
authored
Release FX chain A-B v1.03 (ReaTeam#1171)
Added visual feedback on loaded A and B buttons (white border) Added target platform: All (tested on Windows and Ubuntu linux) Removed in description about copying to another track - waiting for a solution on possible bug in ultraschall.SetFXStateChunk.
1 parent 4e37a49 commit 116e2b2

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

Diff for: FX/tompad_FX chain AB.lua

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
-- @description FX chain A-B
22
-- @author Thomas Dahl
3-
-- @version 1.02
4-
-- @changelog Some bugs and forgotten reaper.ShowConsoleMsg :-)
5-
-- @provides [windows] .
3+
-- @version 1.03
4+
-- @changelog
5+
-- Added visual feedback on loaded A and B buttons (white border)
6+
-- Added target platform: All (tested on Windows and Ubuntu linux)
7+
--
8+
-- Removed in description about copying to another track - waiting for
9+
-- a solution on possible bug in ultraschall.SetFXStateChunk.
610
-- @about
7-
-- # tompad_FXchain_A-B
11+
-- # tompad_FX_chain_AB
812
-- Reascript for A/B-ing FX chains in Reaper DAW
913
--
10-
-- Use tompad_FXchain_A-B to compare different fx chains you create on a track.
11-
-- You can also use it to copy a fx chain to another track.
14+
-- Use tompad_FX_chain_AB to compare different fx chains you create on a track.
15+
--
1216
--
1317
-- How to use:
1418
-- 1. Create a fx chain on a track.
15-
-- 2. Run tompad_FXchain_A-B.
19+
-- 2. Run tompad_FXchain_AB.
1620
-- 3. Make sure the track with the fx chain is selected and press Inject A-button.
1721
-- 4. Make a new fx chain on track OR make some adjustments to the fx chain and press Inject B-button.
1822
-- 5. Its now possible to compare the two fx chains by pressing the two big buttons A and B.
@@ -24,6 +28,7 @@
2428
-- Ultraschall API package from https://github.com/Ultraschall/ultraschall-lua-api-for-reaper/raw/master/ultraschall_api_index.xml
2529

2630

31+
2732
-- Setup package path locations to find rtk via ReaPack
2833
local entrypath = ({reaper.get_action_context()})[2]:match('^.+[\\//]')
2934
package.path = string.format('%s/Scripts/rtk/1/?.lua;%s?.lua;', reaper.GetResourcePath(), entrypath)
@@ -114,12 +119,12 @@ fx_chain2 = nil
114119

115120
local hbox1 = window:add(rtk.HBox{spacing=20, margin=20})
116121

117-
local btn_a = hbox1:add(rtk.Button{"A",fontscale=7, h=140, w=86, color='red',border='white',})
122+
local btn_a = hbox1:add(rtk.Button{"A",fontscale=7, h=140, w=86, color='red',border='black',})
118123
btn_a.onclick = function()
119124
loadFXChain1()
120125
end
121126

122-
local btn_b = hbox1:add(rtk.Button{"B",fontscale=7,h=140, w=86, color='blue',border='white',})
127+
local btn_b = hbox1:add(rtk.Button{"B",fontscale=7,h=140, w=86, color='blue',border='black',})
123128
btn_b.onclick = function()
124129
loadFXChain2()
125130
end
@@ -128,11 +133,13 @@ local hbox2 = window:add(rtk.HBox{spacing=40, tmargin=170, lmargin=30})
128133
local btn_inject_a = hbox2:add(rtk.Button{"Inject A"})
129134
btn_inject_a.onclick = function()
130135
saveFXChain1()
136+
btn_a:attr('border', 'white')
131137
end
132138

133139
local btn_inject_b = hbox2:add(rtk.Button{"Inject B"})
134140
btn_inject_b.onclick = function()
135141
saveFXChain2()
142+
btn_b:attr('border', 'white')
136143
end
137144

138145
-- Save the current FX chain to a string variable (Inject)

0 commit comments

Comments
 (0)