Expand description
Preset management and transitions.
Structs§
- Preset
Manager - Preset manager handling library navigation, mode/lock/ratings, and crossfade transitions.
- Ratings
File 🔒 - On-disk format for ratings: a flat
[ratings]table of path → integer. Stored as aString-keyed map so paths with non-UTF8 bytes degrade gracefully (skipped, never panic).
Enums§
- Selection
Mode - Random / sequential selection. Cycled by the GUI’s
Rkey. - Transition
State - Transition state between presets.
Constants§
- DEFAULT_
HISTORY_ SIZE - Cap for the history ring. Matches MilkDrop’s default.
- DEFAULT_
RATING - Default rating for an unrated preset. Picked at the middle of the
[0, 5]window so unrated presets sit between user-disliked (0–2) and user-liked (4–5) when weighted-random sampling.
Functions§
- load_
ratings 🔒 - quick_
random_ 🔒seed - Simple wall-clock seed for the navigation RNG. The visualiser doesn’t need cryptographic randomness — frame-to-frame variation from the nanosecond clock is plenty for preset shuffling.
- save_
ratings 🔒