2 using System.Collections.Generic;
25 public Sine(
double amplitude,
double frequency,
double phase = 0,
double damping = 0 )
26 : base( amplitude, frequency, phase, damping )
64 public Saw(
double amplitude,
double frequency,
double phase = 0,
double damping = 0 )
65 : base( amplitude, frequency, phase, damping )
93 public Triangle(
double amplitude,
double frequency,
double phase = 0,
double damping = 0 )
94 : base( amplitude, frequency, phase, damping )
122 public Square(
double amplitude,
double frequency,
double phase = 0,
double damping = 0 )
123 : base( amplitude, frequency, phase, damping )
134 if ( t == 0 )
return 0;
166 protected Waveform(
double amplitude,
double frequency,
double phase,
double damping )
179 public abstract double GetValue(
double t );
195 return ( y_now - y_prev ) / dt;
206 return Math.Pow( Math.E, -
Damping * t );