round robin random
-
Hello, I found this round robin snippet in the forum and I want to ask If someone has an idea how I could make something like a randomize button for it. that different generators could be played. not only 1-2-3-4-5 I think about something like 4-2-5-3-1 or 1-5-2-5-2
HiseSnippet 2243.3oc6ZstaabbEdoj1VS1HmlKnn+bpPABoMkrnTZafUcsroDMHpksfnxETCCiQ6NjbpVNy1YmUJLF9EnOO8AouB8MHuAseyL6xcoLsDCSbJhiHzO3dlyYluy84rhGpjArjDoxqR0iGGy7p7d98FKzCaOjxEdc2yqxM8OflnYJhizCGGSSRXgdUpr7iLDpTcEO6mu89OjFQEArBRddegjGvdLeDWWP8vc+q7nnNzP1w7Qk39S2safTzVFISAdV1eSuXZvozArmPMrsjuWkew9gbsT0SS0rDuJq7PY33dCkmKb7+E7D9IQLyCs75gMxQtiLJzfXCUu1C4QgGlq2IddU9kGVXEV1YE9X+C3g7IzKrF+Z6BjBIJaOprzkAuVWM71bVvqRI3shCdefeu.EOVWrhAaeTF0Bz0ZJ34V0ao+464em6PNdHOgbRpVKEjyg+f.auVIiH5gLxIrgzy3vOb2UqAdWm7zmbW6BIbAiLfIXJJTzDmjmvHAiChXg4L2oycITrP9pwQzwrPBiFLjngOe0Z3vRzjynJx9BJrIj6QZiymIzaLfoaKGEKE3g5q4VdsF6rZM6t+HE8DBknX8YJFB1HZoEXGzcutj97HDolTd6yHg8+Y1.ay1Okus9ZcrrzZsFMWsFYVetbA2ZQEb60Z77cdCRZzVtHxXs6mJBzb3kNoMromfTh5YtplPCiRYMVs1KcaCrONGt05mq579DtNgH622wUe.APRjyPiBLzeiDlNOlo9uys86T6UF337DFFZ6N9IvYBvx7R25VtnK7GkDR0TRhVkFnSUvcMjpIATgIrHEGhAMtyOAATbw.BULlbJWDB.CPhkGQsp+4b8PqqlcFhLbxzcOBMgLjlLjbJa7FNhYKIHRUHpag.DbPvDzj3LMBBUoniwlmE63DfK355MlXtaZVRXE0vSN4DR4CINMYHjgBzFKiw2vNRCAzUHBE5qv4gRbbmlXzuIpvkg9NX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Q44TZ4MwNVloB8pLUq5LC1JH85yo4kM+hYhsL1AqZ67Z2LaxrGZG2xiiwwtgu69zdVCR4on897t6gZD46C1RbL3tfZtw.UYO1YXjZ2bfU82ikbpVFa4MalIXSu5S8qKOj93xO385iahgdkgoQlI9JOIrY7+rEfudpQM6ZvcBWOtrh8cX73Mm6o2mW39A9Gx0ACmMdWZF3E1+213M6kMrp+986yBzEfcE+Ne0h9lEVLnbSGT9U98vUGrisZAxuw9L4KomwHOJep+VWxKA5eOuuDn349k.8z.MN9iUTQRrLYpMtGaD+XDzmTl3mmv5nX+iiLd4xzaKopYtz2d+NPImoL8nnIsMb4A1B3Yqs6+4a9W2uxxeOeaOy7kQsxaqWF0xyWHyU7Bnxfz66m0xv8lLrnope1KRYZXr7bCiVWJLJUec42T80dQbLwusR266mcCimXa7LixrywlTyeTLCHWoun7d6NOxeCi76KBunzat6OdUY+gwuWMGi83ihifNcFKBMkrX7CQWn9zzHcN0oi.NPJjwCkBdP4LKLGjhOX.SUF6yTgdf1b2lBJe7tGwhXzxUB9869XjASUvNwVPaQq42VbY9qequCtDSUMx6FcGW9mmcGORlpwbMGPQfJttjOJjzCMkBX42sFzprjovj64MMO65JIBsO7ewmrEaYdtR1hsxWbQ6.u0O66.6BAutC7L6.u0OE5.OecPujNvdee5.68tcG3sttC70cfutC7auNvaecG3q6.+l6.u8OE5.ei+u1A9c7Yf295NvW2A95NvyQG3eLNiQz.k7EY+roLwx2vRA5sv9aKrp+AlmIsxqR46u4Fa5MBsVdQPfwbuNrOyVlsV.Y1dAj4SW.Y9CKfL+wEPl+zBHymcoxX5p+fTsz8i+BNzCNbe6+VrJUb+KrrQ8d+Ozll5wE
-
also It would be great If someone could help me with a slider that could change to amount of generators or samplers. In the snippet its 3 In my project I've already 5. Is it possible to change it with a knob like between 2 and 5? thank you
-
@meto396 Hey!
Take a look at David Healy's round robin example:
https://github.com/davidhealey/HiseUtilityScripts/blob/master/modules/BasicNonRepeatingRoundRobin.jsHe also has some videos on the topic that are quite informative!
https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.youtube.com/watch%3Fv%3DUIqqlV5mgG4&ved=2ahUKEwiutvDghdqIAxV5LFkFHbWPN9EQwqsBegQIEBAG&usg=AOvVaw2u0OJpcI3NwabS46Q4ndroBest of luck,
Noah -
@meto396 Regarding your second question, what is your particular use case? There might be an easier way than dynamically adjusting the amount of samplers in your project.
-
@Noahdeetz Sorry I'm using audio loop players and no sampler to change the sounds straight from the interface