patterns/composite/music-elements/Pause.cs - The class Pause. | Lecture 8 - slide 23 : 37 Program 3 |
using System; public class Pause: MusicElement{ private int duration; public Pause(int duration){ this.duration = duration; } public override int Duration{ get{ return duration; } } public override TimedNote[] Linearize(int startTime){ return new TimedNote[0]; } public override MusicElement Transpose(int levels){ return new Pause(this.Duration); } }