View Single Post
Old 12-07-2022, 05:43 PM  
YuriOl
Human being with feelings
 
Join Date: Sep 2018
Location: lugansk
Posts: 153
Default

Starting with version reaper670_x64, some user scripts such as Insert/show stopped working correctly for me.
At the first start, the script is added, and at the second it is not shown, but is added again.
This happens with the MIDI Transpose Notes [midi\midi_transpose] and Pitch Bend Blocker [Time Waster\PitchBendBlocker.jsfx] plugins
Others like ReaPich, Melodyne, FabFilter... work fine regardless of inserting them into the track's input or output.
How can this be fixed?
Here is an example script:

local fx_table = {'midi_transpose'};

function insert_FXs();
local sel_track_count = reaper.CountSelectedTracks2(0,true);
reaper.Undo_BeginBlock();
for i=1, sel_track_count do;
local track = reaper.GetSelectedTrack2(0,i-1,true);
for fx=1, #fx_table do;
local FX_Count1 = reaper.TrackFX_GetRecCount(track);
local fx_index = reaper.TrackFX_AddByName(track,fx_table[fx],true,1);
local FX_Count2 = reaper.TrackFX_GetRecCount(track);
if FX_Count1 == FX_Count2 then;
reaper.TrackFX_SetOpen(track,0x1000000+fx_index,no t reaper.TrackFX_GetOpen(track,0x1000000+fx_index));
end;
end;
end;
reaper.Undo_EndBlock("Insert FX(s) to selected tracks", -1);
end;

insert_FXs();

If in line - local fx_table = {'midi_transpose'}; write the name of another plugin, for example - local fx_table = {'ReaPich'}; then ReaPich, like many others, work correctly.
Is this a problem with the midi transpose and Pitch Bend Blocker plugins themselves, which began to work this way after the update?
Everything works correctly in Reaper 6.69.

Last edited by YuriOl; 12-07-2022 at 06:03 PM.
YuriOl is offline   Reply With Quote