AlphaSynth.Synthesis.SynthParameters.ResetControllers C# (CSharp) Method

ResetControllers() public method

Resets all of the channel's controllers to initial first power on values. Not the same as CC-121.
public ResetControllers ( ) : void
return void
        public void ResetControllers()
        {
            Program = 0;
            BankSelect = 0;
            ChannelAfterTouch = 0; //Reset Channel Pressure to 0
            Pan.Combined = 0x2000;
            Volume.Fine = 0; Volume.Coarse = 100; //Reset Vol Positions back to 90/127 (GM spec)
            Expression.Combined = 0x3FFF; //Reset Expression positions back to 127/127
            ModRange.Combined = 0;
            PitchBend.Combined = 0x2000;
            PitchBendRangeCoarse = 2; //Reset pitch wheel to +-2 semitones (GM spec)
            PitchBendRangeFine = 0;
            MasterCoarseTune = 0;
            MasterFineTune.Combined = 0x2000; //Reset fine tune
            HoldPedal = false;
            LegatoPedal = false;
            Rpn.Combined = 0x3FFF; //Reset rpn
            UpdateCurrentPan();
            UpdateCurrentPitch();
            UpdateCurrentVolumeFromExpression();
        }