Exemple #1
0
        public object Clone()
        {
            AfilterSetup s = new AfilterSetup();

            s.Copy(this);
            return(s);
        }
Exemple #2
0
 public Afilter()
 {
     calculations = new Calculations();
     setup        = new AfilterSetup();
     AFilterCoefficients();
     output              = new DataObject();
     outputData          = new DataObjectElement[1];
     outputData[0]       = new DataObjectElement("", 0);
     output.dataElements = outputData;
 }
Exemple #3
0
        public Machine()
        {
            SoundCardDelegate soundCardCallback = SoundCardCallBack;

            InitializeComponent();
            textBox1.KeyDown += new KeyEventHandler(textBox1_Enter);
            textBox2.KeyDown += new KeyEventHandler(textBox2_Enter);
            textBox3.KeyDown += new KeyEventHandler(textBox3_Enter);
            textBox4.KeyDown += new KeyEventHandler(textBox4_Enter);
            textBox5.KeyDown += new KeyEventHandler(textBox5_Enter);
            textBox6.KeyDown += new KeyEventHandler(textBox6_Enter);
            textBox7.KeyDown += new KeyEventHandler(textBox7_Enter);
            textBox8.KeyDown += new KeyEventHandler(textBox8_Enter);
            displayComponent  = new DisplayComponent();
            displayComponent.PreviewKeyDown += new PreviewKeyDownEventHandler(display_previewKey);
            displayComponent.KeyDown        += new KeyEventHandler(display_keyDown);
            Controls.Add(displayComponent);
            KeyPreview = true;

            InitDisplay();

            fileDialog     = new OpenFileDialog();
            functionBlocks = new FunctionBlocks();

            functionBlocks.Add(new FunctionBlockHandler(), AnalysisType.FBHandler);
            functionBlocks.Add(new SoundCard(soundCardCallback), AnalysisType.Soundcard);
            functionBlocks.Add(new PlayBack(), AnalysisType.Playback);
            functionBlocks.Add(new Generator(), AnalysisType.Generator);
            functionBlocks.Add(new Afilter(), AnalysisType.AWeighting);
            functionBlocks.Add(new Upsampling(), AnalysisType.Upsampling);
            functionBlocks.Add(new FftAdapter(), AnalysisType.FFTAdapter);
            functionBlocks.Add(new FftAnalysis(), AnalysisType.FFTAnalysis);
            functionBlocks.Add(new CpbAnalysis(), AnalysisType.OctaveAnalysis);
            functionBlocks.Add(new DetectorBank(), AnalysisType.OctaveDetectorBank);
            functionBlocks.Add(new CpbAnalysis(), AnalysisType.ThirdOctaveAnalysis);
            functionBlocks.Add(new DetectorBank(), AnalysisType.ThirdOctaveDetectorBank);
            functionBlocks.Add(new BBDetector(), AnalysisType.BroadbandDetector);
            functionBlocks.Add(new GraphAdapter(), AnalysisType.GraphAdapter);
            functionBlocks.Add(new GraphHandler(), AnalysisType.Graph);
            functionBlocks.Add(new GraphAdapter(), AnalysisType.ValueAdapter);
            functionBlocks.Add(new ValueHandler(), AnalysisType.Value);
            functionBlocks.Add(new CursorHandler(), AnalysisType.ValueCursor);


            soundCardSetup    = new SoundCardSetup();
            playBackSetup     = new SoundCardSetup();
            generatorSetup    = new GeneratorSetup();
            fftAdaptorSetup   = new FftAdapterSetup();
            upsamplingSetup   = new UpsamplingSetup();
            fftSetup          = new FftSetup();
            aFilterSetup      = new AfilterSetup();
            cpbSetup1         = new CpbSetup();
            cpbSetup3         = new CpbSetup();
            detectorsSetup1   = new DetectorBankSetup();
            detectorsSetup3   = new DetectorBankSetup();
            bbDetectorSetup   = new BBDetectorSetup();
            graphAdapterSetup = new DefaultSetup();
            valueAdapterSetup = new DefaultSetup();
            graphSetup        = new DisplaySetup();
            valueSetup        = new DisplaySetup();

            UpdateSettings(dataGridView);

            Setup();

            Reset();
        }
Exemple #4
0
 public void Copy(AfilterSetup setup)
 {
     length = setup.length;
 }