Script for specific CC numbers to Randomize. Help!

Everything is working but CC16 and 17. I want those specific CC values to randomize but cant get it working. I am a total newb im sorry in advance :slight_smile:

[(init){@lt_timer:pause}{text:Stopped}]
[(press){@lt_timer:restart}{text:Running}]
[(press){@lt_timer:pause}{text:Stopped}]
[(@lt_timer:10000)
{CC:09,14,#RND(40,127)#}
{CC:09,15,#RND(0,127)#}
{CC:09,16,#GETITEM(4,29,54,63,80,99,123,127)#}
{CC:09,17,#GETITEM(4,29,54,63,80,99,123,127)#}
{CC:09,18,#RND(0,127)#}
{CC:09,19,#RND(0,127)#}
{CC:09,20,#RND(20,127)#}
{CC:09,21,#RND(0,127)#}
{CC:09,22,#RND(0,127)#}
{@lt_timer:restart}]

There is no randomness involved in CC 16 and 17.

If the intention is to randomly send one of the values in the list, you need something like this:

{CC:9,16,#GETITEM(RND(1,7),"29,54,63,80,99,123,127")#}]

I don’t know if the first item (4) is a part of the list or if it’s intended pΓ₯ be an index.

Thank you!

Yes sorry the 4 was meant to be a value. Here is where I ended up and it seems good:

[{CC:9,16,#GETITEM(RND(1,8),β€œ4,29,54,63,80,99,123,127”)#}]

What you sent was missing the [ and I got the yellow warning on the button but once I put that at the front it was all good. I think. I’ll have to test more :slight_smile:

I copied your line from your command. If you had replaced the line(s) in your command, the syntax would have been correct. :slightly_smiling_face:

This command will not do anything because it has no event to trigger it.

Sorry for the late reply. When I dont have the ] I am getting an error for the script.

While I am here bugging you :slight_smile: Is there a way to send an offset for my Fractal Axe3? Preset 5 on the button is preset 6 on the Axe3.

{PC:01,#@e_vpotvalue#}

To get your script correct, remove the β€œ[ and β€œ]” from the GETITEM rows, and add a β€œ]” after the last row.

I don’t understand that question.