|
|
|
12-24-2018, 02:04 PM
|
#1
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Toggle enclose selected or focused FX in visible chain with AB_LM Level Matching
With julian's extension, I can finally do this:
The script encloses the selected FX (if more than 1) or the focused FX in the visible FX chain with TBProAudio's AB Level Matching VST or JSFX
It automatically understands which formats of the plugin you have installed. Out of the box it favours the JSFX format (if you have all of them installed), but you can set in the script to prefer the VST2 or the VST3 format. If you have only one format installed, it understands which one it is.
In Reapack.. The old versions of this script are obsolete.
Last edited by amagalma; 12-30-2018 at 06:01 AM.
|
|
|
12-25-2018, 03:20 AM
|
#2
|
Human being with feelings
Join Date: Oct 2016
Location: Germany
Posts: 157
|
Hi amagalma,
thanks a lot for your skripts. I used the old ones all the time.
Unfortunately I get this error using the new ones:
"...n vsible chain with AB_LM Level Matching VST or JSFX.lua:37: attempt to index a nil value (local 'file')"
Any hints?
Thanks!
|
|
|
12-25-2018, 07:27 AM
|
#3
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Are you on OSX?
I think v1.1 should fix it.. Furthermore, the checks are now run only the first time the script is run. (there is no need to check if everything exists every time the script is run, no?)
Last edited by amagalma; 12-25-2018 at 08:07 AM.
|
|
|
12-25-2018, 09:31 AM
|
#4
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,159
|
ooo ... I use AB_LM all the time.
QUESTION: I was looking through the Action code:
@description amagalma_Toggle enclose focused FX chain with AB Level Matching JSFX
What I use is the LITE version [pt-2] of the plugin pair.
? How/where can I edit make that change ?
Thanks
|
|
|
12-25-2018, 10:16 AM
|
#5
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
v1.2 adds the ability to state if you prefer the Lite version of the cntrl jsfx plugin. You can state it in the script by setting lite = 1 (default is lite = 0)
|
|
|
12-25-2018, 03:07 PM
|
#6
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,159
|
Quote:
Originally Posted by amagalma
v1.2 adds the ability to state if you prefer the Lite version of the cntrl jsfx plugin. You can state it in the script by setting lite = 1 (default is lite = 0)
|
hmmm ... getting an error message.
...cused FX chain with AB_LM Level Matching VST or JSFX.lua:27: attempt to call a nil value (field 'JS_ReaScriptAPI_Version')
|
|
|
12-25-2018, 05:05 PM
|
#7
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
You need to have js_ReaScriptAPI extension installed from Reapack
|
|
|
12-25-2018, 05:37 PM
|
#8
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,159
|
Quote:
Originally Posted by amagalma
You need to have js_ReaScriptAPI extension installed from Reapack
|
Hi amagalma,
I think I have everything from ReaPack installed. [not totally sure].
I updated the Reapack contents [again] ... still get same error message.
Wondering ... I'm using Reaper[64] v:5.40 Might this be the issue ?
--- edit ---
doing some research on what to do to install these API extensions. I've gone to this web page:
https://github.com/juliansader/ReaEx...riptAPI/v0.962
I see several files there. Am I in the right spot? If so ... can anyone share some directions for the rookie ?
thanks
|
|
|
12-26-2018, 12:43 AM
|
#9
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Quote:
Originally Posted by RJHollins
Wondering ... I'm using Reaper[64] v:5.40 Might this be the issue ?
|
Ah yes! The latest js_ReascriptAPI requires v5.965 to function. I forgot to add this check in the scripts...
|
|
|
12-26-2018, 02:09 PM
|
#10
|
Human being with feelings
Join Date: Jan 2015
Posts: 794
|
mhhh it doesn't actually work for me
this error
...n vsible chain with AB_LM Level Matching VST or JSFX.lua:63: attempt to index a nil value (local 'file')
Could you re-publish again the Toggle insert-remove AB level Matching JSFX to focused FX.lua script? It was very useful to me... now nothing is working anymore..
g
|
|
|
12-26-2018, 04:33 PM
|
#11
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
What OS and what plugin formats do you use? VST?
|
|
|
12-26-2018, 04:48 PM
|
#12
|
Human being with feelings
Join Date: Jan 2015
Posts: 794
|
Quote:
Originally Posted by amagalma
What OS and what plugin formats do you use? VST?
|
Win10
JSFX
g
|
|
|
12-27-2018, 03:11 PM
|
#13
|
Human being with feelings
Join Date: Jan 2015
Posts: 794
|
Quote:
Originally Posted by amagalma
What OS and what plugin formats do you use? VST?
|
Could you just re-publish your former scripts, for the moment being?
g
|
|
|
12-27-2018, 05:33 PM
|
#14
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Sorry! I will the day after tomorrow as I am away
|
|
|
12-28-2018, 01:09 AM
|
#15
|
Human being with feelings
Join Date: Jan 2015
Posts: 794
|
Quote:
Originally Posted by amagalma
Sorry! I will the day after tomorrow as I am away
|
no problems! Thanks!
|
|
|
12-29-2018, 03:01 AM
|
#16
|
Human being with feelings
Join Date: Oct 2016
Location: Germany
Posts: 157
|
Still get "...n vsible chain with AB_LM Level Matching VST or JSFX.lua:37: attempt to index a nil value (local 'file')" on Windows 10... :/
|
|
|
12-29-2018, 06:39 AM
|
#17
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Guys, are you both in x64 architecture?
The errors you got were from the error-checking part of the code - which is supposedly there in order to prevent users seeing errors like the ones you saw! :S This error-checking code is almost 50% of the total code and is there to give users info like required version of Reaper, of the js_extension, AB_LM presence etc.
Hopefully, v1.27 fixes the error-checking code.
|
|
|
12-29-2018, 12:52 PM
|
#18
|
Human being with feelings
Join Date: Oct 2016
Location: Germany
Posts: 157
|
Quote:
Originally Posted by amagalma
Guys, are you both in x64 architecture?
The errors you got were from the error-checking part of the code - which is supposedly there in order to prevent users seeing errors like the ones you saw! :S This error-checking code is almost 50% of the total code and is there to give users info like required version of Reaper, of the js_extension, AB_LM presence etc.
Hopefully, v1.27 fixes the error-checking code.
|
Thanks a lot now it works far better. The jsfx and jsfx-lite are added correctly.
Unfortunately my .vst3- version is not added correctly after choosing pref = 3. In this case still the jsfx-version is used.
my reaper-vstplugins64.ini contains the line "AB_LM_x64.vst3=####,###,AB_LM (TBProAudio)" (big numbers replaced by '') .
To you have an Idea what went wrong?
Thanks!
|
|
|
12-29-2018, 01:43 PM
|
#19
|
Human being with feelings
Join Date: Dec 2009
Location: Oblivion
Posts: 10,248
|
So is this all automatic now or do you still have to update the level matching manually?
|
|
|
12-29-2018, 02:17 PM
|
#20
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Quote:
Originally Posted by multibody
Thanks a lot now it works far better. The jsfx and jsfx-lite are added correctly.
Unfortunately my .vst3- version is not added correctly after choosing pref = 3. In this case still the jsfx-version is used.
my reaper-vstplugins64.ini contains the line "AB_LM_x64.vst3=####,###,AB_LM (TBProAudio)" (big numbers replaced by '') .
To you have an Idea what went wrong?
Thanks!
|
Yes! It checks only the first time what formats are available and taking into account your preference, it sets once the preferred format. If you want to check again, as if it were the first time, then open your reaper-extstate.ini, delete these lines:
Code:
[AB_LM Toggle]
format=(number)
and save.
|
|
|
12-29-2018, 02:19 PM
|
#21
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Quote:
Originally Posted by foxAsteria
So is this all automatic now or do you still have to update the level matching manually?
|
Automatic as AB_LM works. This script automates the insertion and deletion of AB_LM.
|
|
|
12-29-2018, 02:53 PM
|
#22
|
Human being with feelings
Join Date: Oct 2016
Location: Germany
Posts: 157
|
Quote:
Originally Posted by amagalma
Yes! It checks only the first time what formats are available and taking into account your preference, it sets once the preferred format. If you want to check again, as if it were the first time, then open your reaper-extstate.ini, delete these lines:
Code:
[AB_LM Toggle]
format=(number)
and save.
|
Perfect, thanks!
Would it be possible to assign the a/b-toggle (bypass in jsfx) to a keyboard shortcut automatically each time the script is applied? I need this blind-test for the decision whether effects are benificial for a track.
I do this at the moment with midi learn and my midi-controller, but that takes some clicks each time - a quite awkward worklflow compared to the beautiful scipt...
|
|
|
12-29-2018, 02:57 PM
|
#23
|
Human being with feelings
Join Date: Dec 2009
Location: Oblivion
Posts: 10,248
|
Quote:
Originally Posted by amagalma
Automatic as AB_LM works. This script automates the insertion and deletion of AB_LM.
|
I get it, but last time I tried AB the matching did not happen in realtime. Just wondering if it had changed.
|
|
|
12-29-2018, 03:17 PM
|
#24
|
Human being with feelings
Join Date: Oct 2016
Location: Germany
Posts: 157
|
Quote:
Originally Posted by foxAsteria
I get it, but last time I tried AB the matching did not happen in realtime. Just wondering if it had changed.
|
I believe real time is not possible since it needs to integrate the signal for a certain time depending on the alghorithm to calculate the loudness.
For mixing this might be possible via lookahead (with added latency)?
|
|
|
12-29-2018, 04:31 PM
|
#25
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Quote:
Originally Posted by multibody
Perfect, thanks!
Would it be possible to assign the a/b-toggle (bypass in jsfx) to a keyboard shortcut automatically each time the script is applied? I need this blind-test for the decision whether effects are benificial for a track.
I do this at the moment with midi learn and my midi-controller, but that takes some clicks each time - a quite awkward worklflow compared to the beautiful scipt...
|
This is very difficult to do, especially with JSFX. I did the best I could..
Code:
-- Toggle Pre/Post FX for AB_LM JSFX
--AB_LM Receive must be floating and starting from PreFX state
local w = reaper.JS_Window_Find( "-- AB_LM Receive --", false )
if w then
local _, leftX, topY, rightX, bottomY = reaper.JS_Window_GetRect(w)
local w2 = reaper.JS_Window_FromPoint(leftX + 366, topY + 109)
local state = reaper.GetExtState( "AB_LM toggle", "state" )
reaper.JS_WindowMessage_Post(w2, "WM_LBUTTONDOWN", 0x0001, 0, 47, 14)
reaper.JS_WindowMessage_Post(w2, "WM_LBUTTONUP", 0x0000, 0, 47,14)
if state ~= "Post" then
reaper.JS_WindowMessage_Post(w2, "WM_KEYDOWN", 40, 0, 0, 0)
reaper.SetExtState( "AB_LM toggle", "state", "Post", false )
else
reaper.JS_WindowMessage_Post(w2, "WM_KEYDOWN", 38, 0, 0, 0)
reaper.SetExtState( "AB_LM toggle", "state", "Pre", false )
end
reaper.JS_WindowMessage_Post(w2, "WM_KEYDOWN", 13, 0, 0, 0)
end
reaper.defer(function() end)
Limitations:
- The --AB_LM Receive -- must be floating
- It must start from a PreFX state for the script to work
Paste the code to a txt file, save it with a .lua extension, import it to Action List and assign a key to it. Done!
|
|
|
12-29-2018, 04:40 PM
|
#26
|
Human being with feelings
Join Date: Dec 2009
Location: Oblivion
Posts: 10,248
|
Man... sure would a great internal feature. Don't think any other DAW has that, but some plugins do. Sorry, not to diminish the ways in which you guys are making it more streamlined here. I just think a lot of people would benefit from not needing to be convinced of the importance of level matching...
|
|
|
12-31-2018, 03:06 AM
|
#27
|
Human being with feelings
Join Date: Oct 2016
Location: Germany
Posts: 157
|
Quote:
Originally Posted by amagalma
This is very difficult to do, especially with JSFX. I did the best I could..
Code:
-- Toggle Pre/Post FX for AB_LM JSFX
--AB_LM Receive must be floating and starting from PreFX state
local w = reaper.JS_Window_Find( "-- AB_LM Receive --", false )
if w then
local _, leftX, topY, rightX, bottomY = reaper.JS_Window_GetRect(w)
local w2 = reaper.JS_Window_FromPoint(leftX + 366, topY + 109)
local state = reaper.GetExtState( "AB_LM toggle", "state" )
reaper.JS_WindowMessage_Post(w2, "WM_LBUTTONDOWN", 0x0001, 0, 47, 14)
reaper.JS_WindowMessage_Post(w2, "WM_LBUTTONUP", 0x0000, 0, 47,14)
if state ~= "Post" then
reaper.JS_WindowMessage_Post(w2, "WM_KEYDOWN", 40, 0, 0, 0)
reaper.SetExtState( "AB_LM toggle", "state", "Post", false )
else
reaper.JS_WindowMessage_Post(w2, "WM_KEYDOWN", 38, 0, 0, 0)
reaper.SetExtState( "AB_LM toggle", "state", "Pre", false )
end
reaper.JS_WindowMessage_Post(w2, "WM_KEYDOWN", 13, 0, 0, 0)
end
reaper.defer(function() end)
Limitations:
- The --AB_LM Receive -- must be floating
- It must start from a PreFX state for the script to work
Paste the code to a txt file, save it with a .lua extension, import it to Action List and assign a key to it. Done!
|
1000*thanks!
I will check this and might try to convert it for the vst3-version when I have some time.
|
|
|
12-31-2018, 06:53 AM
|
#28
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Quote:
Originally Posted by multibody
1000*thanks!
I will check this and might try to convert it for the vst3-version when I have some time.
|
You are welcome
Here is the code for the VST version:
Code:
-- Toggle Pre/Post FX for AB_LM VST
-- AB_LM Receive must be floating
local w = reaper.JS_Window_Find( "-- AB_LM Receive --", false )
if w then
local _, leftX, topY, rightX, bottomY = reaper.JS_Window_GetRect(w)
local w2 = reaper.JS_Window_FromPoint(leftX + 280, topY + 330)
reaper.JS_WindowMessage_Post(w2, "WM_LBUTTONDOWN", 0x0001, 0, 280, 330)
reaper.JS_WindowMessage_Post(w2, "WM_LBUTTONUP", 0x0000, 0, 280, 330)
end
reaper.defer(function() end)
|
|
|
01-05-2019, 07:58 AM
|
#29
|
Human being with feelings
Join Date: Oct 2016
Location: Germany
Posts: 157
|
Quote:
Originally Posted by amagalma
You are welcome
Here is the code for the VST version:
Code:
-- Toggle Pre/Post FX for AB_LM VST
-- AB_LM Receive must be floating
local w = reaper.JS_Window_Find( "-- AB_LM Receive --", false )
if w then
local _, leftX, topY, rightX, bottomY = reaper.JS_Window_GetRect(w)
local w2 = reaper.JS_Window_FromPoint(leftX + 280, topY + 330)
reaper.JS_WindowMessage_Post(w2, "WM_LBUTTONDOWN", 0x0001, 0, 280, 330)
reaper.JS_WindowMessage_Post(w2, "WM_LBUTTONUP", 0x0000, 0, 280, 330)
end
reaper.defer(function() end)
|
Thanks a lot again!
|
|
|
05-23-2020, 05:32 PM
|
#30
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,159
|
finally found this thread.
Been using the TBPro AB_LM vst-3 plugins to bookend an EFX.
Then to find this Action that will do this. nice.
Couple questions, request.
1. First, it seems we can only add a single pair of AB's ... running the action again will remove the AB's.
REQ: can the function to 'remove' the pair be stopped ? I need to bookend as many plugins in the chain that I need ... I then might also bookend the Entire chain with an A/B [to a/b what the whole chain or portions of the chain are doing].
If I need to Remove the AB pair ... I can manually do that .. no problem.
2. Some of the AB's get inserted with particular Settings.
How can we change these settings, so that when the action is called, the A/B's are configured to the desired Meter settings, the Modes, the base Level, whether HelpTips are active or not.
Thanks for this Script as is .... much appreciate any help to get it more to my need.
Thank-You !
|
|
|
05-24-2020, 12:43 AM
|
#31
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Quote:
Originally Posted by RJHollins
1. First, it seems we can only add a single pair of AB's ... running the action again will remove the AB's.
REQ: can the function to 'remove' the pair be stopped ? I need to bookend as many plugins in the chain that I need ... I then might also bookend the Entire chain with an A/B [to a/b what the whole chain or portions of the chain are doing].
If I need to Remove the AB pair ... I can manually do that .. no problem.
|
Open/Edit "amagalma_Toggle enclose selected or focused FX in visible chain with AB_LM Level Matching VST or JSFX" and go to the end of the script. Delete the following:
Code:
local ok, value = reaper.GetProjExtState(0, "AB_LM Toggle", trackGUID)
if ok and value == "1" then
reaper.Undo_BeginBlock()
RemoveAB(track, what, take)
reaper.SetProjExtState(0, "AB_LM Toggle", trackGUID, "0")
reaper.Undo_EndBlock("Remove AB_LM from focused FX Chain", 2)
else
reaper.Undo_BeginBlock()
InsertAB(fxid, track, what, trackGUID, take, firstselFX, lastselFX)
reaper.SetProjExtState(0, "AB_LM Toggle", trackGUID, "1")
reaper.Undo_EndBlock("Enclose selected/focused FX in Chain with AB_LM", 2)
end
Open/Edit "amagalma_Toggle enclose focused FX chain with AB_LM Level Matching VST or JSFX" and go to the end of the script. Delete the following:
Code:
local ok, value = reaper.GetProjExtState(0, "AB_LM Toggle", trackGUID)
if ok and value == "1" then
reaper.Undo_BeginBlock()
RemoveAB(track, what, take)
reaper.SetProjExtState(0, "AB_LM Toggle", trackGUID, "0")
reaper.Undo_EndBlock("Remove AB_LM from focused FX Chain", 2)
else
reaper.Undo_BeginBlock()
InsertAB(fxid, track, what, trackGUID, take)
reaper.SetProjExtState(0, "AB_LM Toggle", trackGUID, "1")
reaper.Undo_EndBlock("Enclose selected/focused FX in Chain with AB_LM", 2)
end
Quote:
2. Some of the AB's get inserted with particular Settings.
How can we change these settings, so that when the action is called, the A/B's are configured to the desired Meter settings, the Modes, the base Level, whether HelpTips are active or not.
Thanks for this Script as is .... much appreciate any help to get it more to my need.
Thank-You !
|
This is very tricky and I don't know if it will work... What kind of settings would you like as default? (screenshot)
|
|
|
05-24-2020, 01:50 AM
|
#32
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,159
|
Thank you for the script info ... I'll look to make those changes.
I've post a screen shot of settings.
One I would like to add ... have 'Enable Tooltips' = OFF [no tick]
appreciated !
Last edited by RJHollins; 05-24-2020 at 01:55 AM.
|
|
|
05-24-2020, 02:20 AM
|
#33
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Disable the tooltips go up to the "+", click and "Save preset as default...". Done
Edit.. Oh, and better to save the changed scripts under new names because in case I update them in ReaPack your changes will be overwritten.
Last edited by amagalma; 05-24-2020 at 03:23 AM.
|
|
|
05-24-2020, 09:32 AM
|
#34
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,159
|
Quote:
Originally Posted by amagalma
Disable the tooltips go up to the "+", click and "Save preset as default...". Done
Edit.. Oh, and better to save the changed scripts under new names because in case I update them in ReaPack your changes will be overwritten.
|
I'll try the disable tooltip suggestion again ... but last time I tried, the auto channel assign was always loading to the Default channel [rather than incrementing].
fingers crossed.
|
|
|
05-24-2020, 10:53 AM
|
#35
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Hmm.. Best to ask TBProAudio about this then.. It's on his side. An update can easily solve this.
|
|
|
05-24-2020, 05:47 PM
|
#36
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,159
|
OK ... I think I have this working for the most part ...
NOW ...
You had used a plugin Naming that I would like to add back. They are:
-- AB_LM Send --
-- AB_LM Receive --
How can I fix it [rather than the 'VST3: AB_LM (TBProAudio)'
Your renaming made it much easier to view the overall chain.
Thank-you very much for helping me !
|
|
|
05-24-2020, 11:45 PM
|
#37
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,159
|
oh .... also ....
How do you do a SAVEAS for a Script being edited ??
How to ReName a Script.
My first attempt to Save, OverWrote the Script :|
Also ... How can I redownload this script to get back to original.
Obviously ... you're dealing with a 'Script Rookie' ... but I'm trying to follow instructions
|
|
|
05-25-2020, 12:46 AM
|
#38
|
Human being with feelings
Join Date: Apr 2011
Posts: 3,450
|
Quote:
Originally Posted by RJHollins
OK ... I think I have this working for the most part ...
NOW ...
You had used a plugin Naming that I would like to add back. They are:
-- AB_LM Send --
-- AB_LM Receive --
How can I fix it [rather than the 'VST3: AB_LM (TBProAudio)'
Your renaming made it much easier to view the overall chain.
Thank-you very much for helping me !
|
It still is like that.. And the AB_LM receive opens floating.. Better to re-download the script:
Action List -> ReaPack: Browse packages... -> (Name of the script) -> right-click -> Reinstall -> Apply
To save as a new script, open the original, Select All, Copy, then Action List -> button ReaScript: New... (be sure to give it a different name) -> Paste -> Save
|
|
|
05-25-2020, 01:32 AM
|
#39
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,159
|
Quote:
Originally Posted by amagalma
It still is like that.. And the AB_LM receive opens floating.. Better to re-download the script:
Action List -> ReaPack: Browse packages... -> (Name of the script) -> right-click -> Reinstall -> Apply
To save as a new script, open the original, Select All, Copy, then Action List -> button ReaScript: New... (be sure to give it a different name) -> Paste -> Save
|
ok ... double checked. You are correct. The names are as you original had ... yeah.
also ... thanks for the file management for saving Script ... and how to dL the replacement Script.
much appreciated !
|
|
|
05-25-2020, 09:33 PM
|
#40
|
Human being with feelings
Join Date: Dec 2011
Posts: 2,159
|
ahhh ... I don't no what's wrong with my action for AB_LM :|
Here's what happening:
Insert a 1st Plugin, keep it highlighted, hit my toolbar to Action; I get:
-- AB_LM Send --
plugin
-- AB_LM Receive --
just what the Doctor ordered.
insert 2nd Plugin, I get:
VST3: AB_LM (TBProAudio) .... the Send
plugin
VST3: AB_LM (TBProAudio) .... the Receive
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:50 AM.
|