Skip to content

Enhance API to choose a random filtered effect (1D, 2D, sound reactive) #3605

Closed

Description

@aeronauth

It would be great if HTTP/JSON API could start a random effect with filter flags (1D, 2D, sound reactive x2) to limit the random effect to these filters.

With that, one can use a push button to randomly go trough all matrix effects only, another button to randomly go trough all sound reactive effects only, ....

As a effect might be 2d and sound reactive at the same time, that flags might be implementend for combination use.

I know that it's possible to create alot of presets and use them in playlists, which can be used by the buttons, but i think there should be a more convenience solution.

Activity

  1. blazoncek commented on Dec 21, 2023

    @blazoncek
    Contributor

    Unfortunately that may be impossible to implement without severely impacting performance as this data (1D, 2D, ...) is embeded in string. Parsing it takes time.
    Best approximation is to use "fx":"X~Y~r" where you select X and Y to encompass certain effect range.
    See KB

    Unfortunately I was over-voted when I tried to group certain effects together and the SR effect numbering prevailed.

  2. dosipod commented on Dec 23, 2023

    @dosipod
    Contributor

    How about adding the ability to access FX numbers directly from a playlist as it is limited at the moment to preset numbers
    image

  3. dosipod commented on Dec 24, 2023

    @dosipod
    Contributor

    And I just tested your command listed about for "fx":"XYr" as in {"fx":"124180r"} or {"seg":{"fx":"124180r"}} if that is what you meant and it does not work
    image

    This will work but only at random so range is not respected
    image

  4. blazoncek commented on Dec 24, 2023

    @blazoncek
    Contributor

    I am sorry for the confusion. The "X~Yr" API only works for presets (notice the lack of second ~).
    Unfortunately effects have hardcoded limits for random selection.
    I may add custom limits in the future.

  5. czesiu20 commented on Dec 31, 2023

    @czesiu20

    Unfortunately that may be impossible to implement without severely impacting performance as this data (1D, 2D, ...) is embeded in string. Parsing it takes time. Best approximation is to use "fx":"X~Y~r" where you select X and Y to encompass certain effect range. See KB

    Unfortunately I was over-voted when I tried to group certain effects together and the SR effect numbering prevailed.

    Limiting the range of effects would be very useful. I had to implement my own function to handle Music+/- buttons of my 38-key and 24-Key Music IR remotes.

    case IR38_MUSIC_P    : changeEffect(relativeChange(effectCurrent, -1, 128, MODE_COUNT-1)); break;
    case IR38_MUSIC_N    : changeEffect(relativeChange(effectCurrent,  1, 128, MODE_COUNT-1)); break;
    

    Currently it is not possible to achieve in a JSON file.

    However, my solution is not completely satisfactory because I encountered another problem. Adding a new option to the list of remotes in the GUI is not trivial and I had to replace the existing one.

  6. added a commit that references this issue on Jan 9, 2024
  7. added
    fixed in source
    on Jan 12, 2024
  8. added a commit that references this issue on Feb 12, 2024
  9. added a commit that references this issue on Feb 12, 2024
  10. blazoncek commented on Mar 22, 2024

    @blazoncek
    Contributor

    Available in 0.15.0 beta 1.

  11. added a commit that references this issue on Dec 12, 2024
  12. added a commit that references this issue on Dec 12, 2024
  13. added a commit that references this issue on Feb 22, 2025
  14. added a commit that references this issue on Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfixed in source

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions