Back to slide -- Keyboard shortcut: 'u'                      patterns/composite/music-elements/client.cs - An application of some MusicElement objects.Lecture 8 - slide 22 : 37
Program 1

public class Application{

  public static void Main(){

    MusicElement someMusic =
     SequentialMusicElement.MakeSequentialMusicElement(
       SequentialMusicElement.MakeSequentialMusicElement(
         new Note(60, 480),      
         new Pause(480),     
         new Note(64, 480), 
         new Note(60, 480)),
       ParallelMusicElement.MakeParallelMusicElement(
         new Note(60, 960),
         new Note(64, 960),
         new Note(67, 960)
       ));

    Song aSong = new Song(someMusic.Linearize(0));
    aSong.WriteStandardMidiFile("song.mid");
  }
}