Skip to content
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

Random preset playlist #4388

Open
1 task done
Niorix opened this issue Dec 13, 2024 · 2 comments
Open
1 task done

Random preset playlist #4388

Niorix opened this issue Dec 13, 2024 · 2 comments

Comments

@Niorix
Copy link

Niorix commented Dec 13, 2024

What happened?

Hello!
I manually created a list of all presets, excluding 2D and audio effects. I would like to have a playlist when all my presets are chosen in random order.
I created a service preset with the code {"PS": "1 ~ 112r", "n": "_random"}. If you choose it manually, everything works fine. Next, I created a playlist with one single preset "_random", but this did not work.
I thought that this was a WLED restriction, but having continued research, I created a preset with the code {"seg": {"fx": "1~15r"}, "n": "_randomfx"} and a playlist based on it. And it worked!
The problem is that id's 1d effects without audio are not in order. It is impossible to choose everything using code {"fx": "n~mr"}

To Reproduce Bug

My test preserts.json in attachment. Please test _RND_FX and _RND_PS playlists
presets.json

Expected Behavior

Playlist with random PS works as playlist with random FX. May be it will not difficult.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.15.0 (build 2412100)

Which microcontroller/board are you seeing the problem on?

ESP8266, ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Niorix Niorix added the bug label Dec 13, 2024
@softhack007
Copy link
Collaborator

I would like to have a playlist when all my presets are chosen in random order.

@Niorix did you try the "shuffle" playlist option?

image

@blazoncek blazoncek removed the bug label Dec 13, 2024
@blazoncek
Copy link
Collaborator

Your example seems to work for me.
Random is random. If you want random effect set limits from 1 to 187. If effect is unplayable on your device it will display solid effect instead. That's the nature of randomness.

What you want is grouping of effects which is inexisting ATM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants