that is the problem with the libraries,
at the beginning ( using one of the examples )
all looks a lot easier as to try to code it…
but if you want something out of the ordinary ( like your 2 slider multiplex idea )
you have to dig deep, not understand the advanced examples or the documentation
and finally have to say
" i not know if that can be done with that library"
so possibly wasted lots of time, better play
https://p5js.org/reference/#/p5/createSlider
https://editor.p5js.org/p5/sketches/Dom:_Slider
anyhow the point is that your idea would require a EVENT thinking:
if ( Fan Number Slider Changed ) set Speed Slider to setpoint from speed array [ Fan ]
-
- ( and that i not found how to do with that lib )
if ( Speed Slider Changed ) read Speed Slider and write to speed array [ Fan ]
if you want try that idea again, start from
https://editor.p5js.org/kll/sketches/ingo688HL
i think i found a way