public FFTFilter(SystemPanel _owner, BinaryReader src) : base(_owner, src) { filterMode = (FFTFilterMode)src.ReadInt32(); blockSize = src.ReadInt32(); switch (filterMode) { case FFTFilterMode.LowPass: case FFTFilterMode.HighPass: case FFTFilterMode.FrequencyShifter: f1 = src.ReadDouble(); break; case FFTFilterMode.BandPass: case FFTFilterMode.BandStop: f1 = src.ReadDouble(); f2 = src.ReadDouble(); break; case FFTFilterMode.AllPass: phi = src.ReadDouble(); // f1Select.value = phi * 180.0 / Math.PI; break; } init(); }
public FFTFilter(FFTFilterMode _filterMode, int _blockSize) : base() { filterMode = _filterMode; blockSize = _blockSize; f1 = 1000; f2 = 2000; phi = 0; init(); }