import javax.sound.midi.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class Noodirakend8 extends JApplet implements ActionListener, MetaEventListener{ Sequence sequence; Sequencer sequencer; JButton nupp=new JButton("Mängi"); JCheckBox ruut=new JCheckBox("Korda"); JComboBox helistik=new JComboBox(); JRadioButton[] raadionupud=new JRadioButton[3]; String[] raadionupustring={"I", "IV", "V"}; Hashtable paarid=new Hashtable(); String[] helistikud={"Bb", "F", "C", "G", "D", "A", "E"}; int[] helikorgused={58, 53, 60, 55, 50, 57, 52}; String jooksevHelistik=""; void looKolmkola(Track t, int toonika){ try{ ShortMessage m[]=new ShortMessage[7]; for(int i=0; i