-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"SWS/S&M: Toggle selected FX bypass for selected tracks" action only toggles first selected FX, not all selected #1443
Comments
Hi, I want to get up to speed on the SWS code and thought that tackling some bugs would be a good place to start. I looked into this one and I'm stuck looking for how to determine which FX are selected. I believe the fix needs to go in Is there a way for me to determine if an FX is selected? I found a function called GetSelectedTrackFX() but it looks like this only returns a single FX Id, even if multiple FX are selected. Thanks! |
Hi, @cfillion added CF_EnumSelectedFX. Lines 294 to 301 in 0c99559
Does this help? |
Awesome, from a quick glance that looks like just the thing. Thanks for the pointer and the welcome! I recently started using Reaper on Linux and quickly discovered SWS. Very cool stuff, I hope I can be of some use to the project. |
Iterate through effects on selected tracks and toggle the enabled state. Fixes reaper-oss#1443
@nofishonfriday thanks again for the pointer to CF_EnumSelectedFX(), that's what I needed. I tested the change with some combinations of multiple tracks and fx chains being selected and it seems to behave the way I think it's supposed to. |
The current implementation of "SWS/S&M: Toggle selected FX bypass for selected tracks" also works when the FX chain is closed (because it relies on the selected FX index stored in the track's project data). I think the current behavior should be preserved when the FX chain is not shown. There are a few other SWS actions that rely on the old "one selected FX" concept. Ideally, for consistency, these would also benefit from a multi-FX selection update, such as "SWS/S&M: Bypass selected FX for selected tracks". |
Would I detect this by CF_GetTrackFXChain() returns NULL, then just fall back to the current behavior?
I'll look for these, please let me know if there's any that you have in mind. |
is not opened, i.e. toggle the current fx index for the track. Fixes reaper-oss#1443
For each selected track, if the effects window is open then iterate through effects and toggle the enabled state. Fall back to previous behavior if the effects window for the track is not opened, i.e. toggle the current fx index for the track. Fixes reaper-oss#1443
For each selected track, if the effects window is open then iterate through effects and toggle the enabled state. Fall back to previous behavior if the effects window for the track is not opened, i.e. toggle the current fx index for the track. Fixes reaper-oss#1443
With more than one effect selected in the track FX UI, using the menu command to bypass will in fact bypass all selected effects. This action, however, will only bypass the first effect selected.
The text was updated successfully, but these errors were encountered: