Note Generation - Selection Statements, Loops
Programming Module

 

Create a loop that continuously generates random notes until two consecutive notes are equal.

The SoundManager class has a method called generateNote() that plays a random piano note and returns an integer value between 1-7
Here's the integer representation of the music notes: