We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi there,
I've been trying to work out how to do what the title says.
Basically, I have 4 instruments playing at the same time that make a song when played together, each instrument is played through a different song, so I can control each instrument individually. I want it so, when the user clicks there mouse, the instruments randomly mute or stay playing, or if they are already not playing, they either keep not playing, or become unmuted.
Any help would be greatly appreciated.
Thanks.
Answers
This will give you an array of 4 randomly generated booleans, which you can use to set mute or play. You could put this in your mouseClicked() routine. Change the 2 in random and/or > 1 to change the probability of getting a true.