public CarrierFrequencyApplier(
     IWaveFileMetadata metadata,
     CarrierFrequencyModel carrierFrequency,
     FeatureProvider featureProvider,
     ISamplingFrequencyProvider samplingFrequencyProvider) :
     base(numberOfChannels: metadata.NumberOfChannels, phaseShiftChannels: metadata.PhaseShiftCarrier, samplingFrequencyProvider.SamplingFrequency)
 {
     this.metadata         = metadata;
     this.carrierFrequency = carrierFrequency;
     this.featureProvider  = featureProvider;
 }
Example #2
0
 public WetnessApplier(
     PulseGenerator pulseGenerator,
     ISectionsProvider sectionsProvider,
     IFeatureChooser featureChooser,
     Randomizer randomizer,
     FeatureProvider featureProvider,
     WetnessModel wetness,
     SectionsModel sections
     )
 {
     this.pulseGenerator   = pulseGenerator;
     this.sectionsProvider = sectionsProvider;
     this.wetness          = wetness;
     this.sections         = sections;
     this.featureChooser   = featureChooser;
     this.randomizer       = randomizer;
     this.featureProvider  = featureProvider;
 }
Example #3
0
        public PulseGenerator(
            PulseFrequencyModel pulseFrequency,
            IWaveformExpressionProvider waveformExpressionProvider,
            IWaveFileMetadata waveFileMetadata,
            Randomizer randomizer,
            FeatureProvider featureProvider,
            IFeatureChooser featureChooser,
            ISectionsProvider sectionsProvider,
            ISamplingFrequencyProvider samplingFrequencyProvider) :
            base(waveFileMetadata.NumberOfChannels, waveFileMetadata.PhaseShiftPulses, samplingFrequencyProvider.SamplingFrequency)
        {
            this.pulseFrequency   = pulseFrequency;
            this.randomizer       = randomizer;
            this.featureProvider  = featureProvider;
            this.featureChooser   = featureChooser;
            this.sectionsProvider = sectionsProvider;

            var waveformExpression = waveformExpressionProvider.WaveformExpression;

            if (waveformExpression != null)
            {
                waveformScript = WaveformExpression.Parse(waveformExpression);
            }
        }