public static void CreateChordProgression()
{
Random rand = new Random();
chordProgression = new int[4];
int lastVal = 0;
chordProgression[0] = 0;
for (int i = 1; i < chordProgression.Length; i++)
{
int val = 0;
while (chordProgression.Contains(val))
{
val = rand.Next(Chords.GetLength(0));
}
chordProgression[i] = val;
}
string s = "";
foreach (var c in chordProgression)
{
s += c + ", ";
}
Global.Output += "Chord progression: " + s;
}
public static void NotePlayedByUser(int midiNumber, int playerIndex, int instrumentNumber)