Chord Sequencing Idea. Need Assistance.

I posted an question already but thats on a seperate part of the problem so i thought id ask about this.

Is there any way of creating a script that will let users of my program create their own chord progressions by clicking Chord buttons in an order?

So they click A Major , Then D Major, Then E Minor, Then G Major and then click a play button and those loops are played in that order? And they can create from 1 chord played to about 16 bars?

Yes. There are an infinite amount of ways to do this. Offer up some of your own code if you need help with it.

//#pragma strict

public var AMajor : AudioClip;
public var DMajor : AudioClip;
public var EMajor : AudioClip;

private var button : boolean = false;

public var Chord1;
public var Chord2;
public var Chord3;
public var Chord4;

function OnGui ()
{
var AMajorButton = GUI.Button(Rect(10, 300, 100, 50), “A Major”);
var DMajorButton = GUI.Button(Rect(110, 300, 100, 50), “D Major”);
var EMajorButton = GUI.Button(Rect(210, 300, 100, 50), “E Major”);
var StartProgButton = GUI.Button(Rect(10, 300, 100, 50), “Start”);

AMajorButton;

if (AMajorButton) {   
    Chord1 = AMajor;
}
else if (DMajorButton) {   
    Chord1 = DMajor;
}
else if (EMajorButton) {   
    Chord1 = EMajor;
}
else if (StartProgButton) {
    TheYielder ();
}

}

This is supposed to show 4 buttons. 3 Chords and 1 play button.

Clicking the chords in an order then clicking the play should aim to play what was clicked in the correct order…

But I am not a scripter so I dont quite understand whats happening when it dosent work! hehe