コード例 #1
0
 public Song(Music.Key key, int[] pitches, double[] durations)
     : this(key, pitches.Select(p => Music.Pitch.OfInt(p)).ToList(),
            durations.Select(d => Music.Duration.OfDouble(d)).ToList())
 {
 }
コード例 #2
0
 public Song(Music.Key key, List <Music.Pitch> pitches, List <Music.Duration> durations)
 {
     Key       = key;
     Pitches   = pitches;
     Durations = durations;
 }