Custom speed dial multiplier values
Posted: Thu Feb 11, 2021 7:02 pm
Hi
I am looking for a method to get custom multiplier values with a speed dial.
Use case: I have a 10 x 5 RGB matrix, when a song with a BPM of 120 plays I would like the functions to complete a single cycle over those 10 LED's. As example I am using the waves pattern. With a BPM of 120 every beat comes after 0.5s. I would set the speed dial to 120BPM / 0.5 s and use a 1/10 multiplier value for the actual function -> 50ms for 10 LEDS = 500ms = 0.5s.
Is this possible?
Thanks!
I am looking for a method to get custom multiplier values with a speed dial.
Use case: I have a 10 x 5 RGB matrix, when a song with a BPM of 120 plays I would like the functions to complete a single cycle over those 10 LED's. As example I am using the waves pattern. With a BPM of 120 every beat comes after 0.5s. I would set the speed dial to 120BPM / 0.5 s and use a 1/10 multiplier value for the actual function -> 50ms for 10 LEDS = 500ms = 0.5s.
Is this possible?
Thanks!