001package music;
002class Main {
003        public static void main(String[] args) {
004                EventGroup eg1 = new EventGroup();
005                eg1.add(new Note(250, 2.0));
006                eg1.add(new Rest(250));
007                eg1.add(new Note(500, 1.0));
008                eg1.add(new Rest(500));
009                eg1.add(new Note(1000, 0.5));
010
011                EventGroup eg2 = new EventGroup();
012                eg2.add(eg1);
013                eg1.add(new Rest(1000));
014                eg2.add(new Transpose(eg1, 2.0));
015
016                eg2.play();
017        }
018}