Dfk Multiple Track Zero-Cross Detector (Optional: Place Env. Points)
[center]Disclaimer:
Test/use my scripts at your own risk. While it is atypical that a REAPER Lua script would damage or harm your hardware/software/data, I will not accept any liability if this were to occur. The download, installation, and operation of my scripting code and its structures are strictly an operative of free will, and signify an agreement to these terms. You are responsible for any damages that might occur, however unlikely. All my scripts are licensed as GPL v.3.
Suggested Instructions/Recommended Use:
1. Select multiple items.
1. Place a time-selection (not loop selection) over the portion of the selected items in which you want to 'find' the sample closest to being a multi-track zero-cross. Time-selection must be 5 seconds or less in length.
2. Run script.
3. Read message, and follow prompt.
NOTE: If you choose to place pre-volume envelope points, a 'V' shaped envelope will be created for each item at the sample closest to being a multi-track zero-cross. This 'V' will be equal in length to your grid division (i.e., 1/32), and does not require 'snap' to be enabled in order to properly operate.
4. Enjoy!
Comments:
Despite its name, this script only finds the sample point amongst items in a time-selection closest to being a zero-cross; as realistically, a true zero-cross wouldn't exist among multiple tracks/items. However, that's where the second function of the script comes into play. By placing pre-fx envelope points this script will actually take this sample-point of most similitude to a zero-cross and 'tweak' it into an actually zero-cross.
This script requires REAPER 5.979, SWS/S&M 2.10.0, and js_ReaScriptAPI .987
Here's the video for the v.1.0:
Release Log:[Size=-2]
[v.1.01]
-Recoded script for greater efficiency and speed
-Removed inability to process stereo items
-Changed envelope placement to length of one grid-division unit (i.e., 1/8, 1/16, 1/32, etc.)
-Altered script 'undo' handling
Last edited by Dafarkias; 03-26-2020 at 05:47 AM.
Reason: Clarity