public PureToneSource(IPitchGenerator generator, TimeSpan sampleLength, PauseDuration pauseDuration)
 {
     pitchGenerator     = generator;
     timer.Interval     = sampleLength;
     timer.Tick        += TimerOnTick;
     this.pauseDuration = pauseDuration;
 }
 public static PauseDurationInternal From(PauseDuration duration)
 {
     return new PauseDurationInternal(duration.Minimum, duration.Maximum);
 }
 public PureToneSource(IPitchGenerator generator, TimeSpan sampleLength, PauseDuration pauseDuration)
 {
     pitchGenerator = generator;
     timer.Interval = sampleLength;
     timer.Tick += TimerOnTick;
     this.pauseDuration = pauseDuration;
 }
 public static PauseDurationInternal From(PauseDuration duration)
 {
     return(new PauseDurationInternal(duration.Minimum, duration.Maximum));
 }