Changing a take's pitch shifter in REAPER to Elastique Pro with high formants involves using the REAPER SWS/S&M extension, which extends REAPER's scripting capabilities, including accessing and changing properties of takes that are not directly available through the built-in REAPER API. As of my last update, the built-in REAPER API does not directly support changing the pitch shifter settings through Lua script; however, you can achieve this through Action List commands if they are available, or indirectly through manipulating take pitch settings using the SWS extension for more advanced features that are not covered by the REAPER API.
Please note, before proceeding, ensure you have SWS Extensions installed. This guide assumes you have a basic understanding of how to create and run Lua scripts within REAPER.
Here's a basic approach to set the pitch algorithm of a take:
-
Ensure SWS Extensions is Installed: First, make sure you have the SWS Extensions installed in your REAPER installation to access its extended functionality.
-
Finding the Corresponding Action (Optional): If there's an existing action to change the pitch shifter to Elastique Pro, high formants, you can trigger this action from a Lua script. Use the 'Actions' menu to search for the relevant action. You might not find an exact match for setting formant pitch settings via actions, as these are more granular controls.
-
Using a Lua Script Without Direct API Support: Given that, as of my last update, direct API calls to change to Elastique Pro with high formants might not be available, consider a two-step process: use a script to change the take's pitch shifter algorithm to Elastique Pro if it's possible via SWS actions, and then manually adjust the formants if the scripting option isn't directly available.
A script might start like this, but remember, this only serves as an example for educational purposes and might not directly achieve the change to Elastique Pro, high formants, due to the limitations mentioned:
-- Example Lua script to attempt changing a take's pitch algorithm
-- This is more of a conceptual outline than a direct solution
reaper.Undo_BeginBlock() -- Start Undo Block
local itemCount = reaper.CountSelectedMediaItems(0)
if itemCount == 0 then
reaper.ShowMessageBox("No items selected.", "Error", 0)
return
end
for i = 0, itemCount - 1 do
local item = reaper.GetSelectedMediaItem(0, i)
if item then
-- Assuming you have a way to identify the necessary action/command ID
-- For example:
-- reaper.Main_OnCommand(commandID, 0) -- Replace 'commandID' with the actual command ID to change the pitch algorithm
-- There's no direct command ID as an example here because it depends on the SWS version and REAPER setup
end
end
reaper.Undo_EndBlock("Change Take's Pitch Algorithm", -1) -- End Undo Block
Steps To Manually Adjust or Via Script If Supported:
- Since direct access to pitch algorithm properties (like setting Elastique Pro and formant options) might not be scriptable through the Lua API or requires convoluted methods not straightforwardly documented, manually adjusting after applying the closest possible scripting solution is advisable.
- Verify if SWS provides newer functions or if REAPER's API has been updated to support more granular control over pitch settings directly.
This scenario showcases that while REAPER's Lua scripting is powerful, some specific operations, especially those involving third-party algorithms or very detailed effects properties, might require manual intervention or inventive workarounds. Always check the latest REAPER and SWS documentation or forums for new features or community-contributed scripts.