public SoundGenForm(SoundGenerator soundGen)
 {
     this.soundGen = soundGen;
     float min = -1f;
     float max = 1f;
     float speedLeft = 0.01f;
     float speedRight = 0.03f;
     SawWaveData data = new SawWaveData(min, max, speedLeft, speedRight);
     wave = new SawWave(data);
     InitializeComponent();
 }
 internal SawWave(SawWaveData data)
     : base()
 {
     this.data = data;
 }