public void TestSawtoothWave() { Calibration.Initialize(); IBGCStream stream = new SawtoothWave(1f, 200f) .Window(DURATION) .Normalize(LEVEL); bool success = WaveEncoding.SaveStream( filepath: DataManagement.PathForDataFile("Test", "sawtoothWave.wav"), stream: stream, overwrite: true); Assert.IsTrue(success); }
public Harmonic(CustomSoundProvider provider) { Sine = new SineWave(provider); Square = new SquareWave(provider); Triangle = new TriangleWave(provider); Sawtooth = new SawtoothWave(provider); Amplitude = 0.25f; }