Minim: Play a random song out of an array

I’m sorry, I don’t understand this at all…

So all songs need to be in setup as

if ( song1.isPlaying() )     song1.pause();
  else                          song1.loop();

if ( song2.isPlaying() )     song2.pause();
  else                          song2.loop();

?
I know (some) mousePressed logic but I don’t know how to apply that to mouseOver (or in this case torsoX coordinates)

Would you then still use .play in the if loops?

1 Like