Description:
The idea is quite simple. I've created
JS plugin BPM Calculator, but the problem is that we usually don't want to think of it as a separate plugin loaded on some track, but as an independent tool on its own.
So I've created a simple Lua script which will load BPM Calculator on the Master track and unload it as soon as the FX window is closed
(or the script is terminated):
What you will need and a few details on usage:
My JS BPM Calculator:
https://stash.reaper.fm/v/7838/BPM%20Calculator
Special Lua script:
https://stash.reaper.fm/v/24512/Util...e%20cursor.lua
Simply follow installation procedure for JS BPM Calculator and then import supplied Lua script into REAPER. After that, put it on your toolbar
(or assign it a shortcut) and calculate away
To use this Lua scripts in REAPER, you will also need the to install
SWS extension
When you try to turn off the BPM calculator by re-running the script for the first time, you will get prompted if you want to terminate or load new instance of the script. Simply terminate it and remember your answer. Like this:
Note that script depends on the name of JS BPM Calculator plugin. If by any chance you plan on renaming the plugin, script will no longer work. You can quickly fix that by chancing this line in the script so it's the same as your renamed JS BPM Calculator:
Code:
local g_fxName = "BPM Calculator"
Change the position where BPM calculator gets loaded
If you don't like the fact that BPM Calculator is moved to mouse cursor, simply comment out
(by prefixing the line with --) or delete this line from the script:
Code:
reaper.Main_OnCommand(reaper.NamedCommandLookup("_BR_MOVE_WINDOW_TO_MOUSE_H_M_V_T"), 0)
On the other hand, if you want for BPM Calculator to get loaded at different position from mouse cursor, change that line to some other SWS/BR action that moves window to mouse cursor. Like this:
A lot of effort has been invested in this. If you seriously use it, please consider
supporting the developer. Thanks!
I don't mind if someone puts these in ReaPack, but please include my donation link, forum nickname and link to this thread and thread for a specific script in the description if you do so.
__________________
REAPER ReWorked: An elegant and self-sufficient all-around REAPER configuration
Other stuff