コード例 #1
0
        private void demodulateButton_Click(object sender, EventArgs e)
        {
            DiscreteSignal demodulated;

            switch (_modulationMode)
            {
            case ModulationMode.Frequency:
            case ModulationMode.Phase:
                demodulated = _modulator.DemodulateFrequency(_modulated);
                break;

            default:
                demodulated = _modulator.DemodulateAmplitude(_modulated);
                break;
            }

            demodulatedPlot.Markline = demodulated.Samples;
            demodulatedPlot.Line     = _modulated.Samples;
        }