public PureToneSource(IPitchGenerator generator, TimeSpan sampleLength, PauseDuration pauseDuration) { pitchGenerator = generator; timer.Interval = sampleLength; timer.Tick += TimerOnTick; this.pauseDuration = pauseDuration; }