public ImpulsePreset() { PresetVersion = 1000; Samplerate = 0.3333333; ImpulseLength = 0.75; Normalize = true; ImpulseConfig = new ImpulseConfig[0]; MixingConfig = new MixingConfig(); }
public ImpulseConfigProcessor(ImpulseConfig config) { lock (locker) { this.config = config; sampleCount = ImpulseConfig.MaxSampleLength; samplerate = config.Samplerate; if (!config.SampleDataFromFileLoaded) { config.LoadDataFromFile(); } config.ConvertSampleData(); this.fftTransform = new Transform(sampleCount); var input = config.ConvertedSampleData.Select(x => (Complex)x).ToArray(); fftSignal = new Complex[input.Length]; fftTransform.FFT(input, fftSignal); } }