Пример #1
0
            internal abstract void PlayPedal(bool on); //invoked during sustain change (e.g. pedal action)

            internal static clsSustain New(clsSustain oldsustain)
            {
                if (oldsustain == null)
                {
                    PlayPedalStatic(false);              //switch off any old sustain
                }
                if (P.F == null || P.frmSC == null)
                {
                    return(new clsSustainNormal(oldsustain));
                }
                if (P.frmSC.optSustainNormal.Checked)
                {
                    return(new clsSustainNormal(oldsustain));
                }
                else if (P.frmSC.optSustainCarryOver.Checked)
                {
                    return(new clsSustainCarryOver(oldsustain));
                }
                else if (P.frmSC.optSustainReplay.Checked)
                {
                    return(new clsSustainReplay(oldsustain));
                }
                else if (P.frmSC.optSustainSendCtlr.Checked)
                {
                    return(new clsSustainSendCtlr(oldsustain));
                }
                else
                {
                    LogicError.Throw(eLogicError.X071);
                    return(new clsSustainNormal(oldsustain));
                }
            }
Пример #2
0
 protected clsSustainEmu(clsSustain oldsustain)
     : base(oldsustain)
 {
     SustainTimer           = new System.Timers.Timer(Math.Max(1, (int)P.frmStart.nudTimerSustain.Value));
     SustainTimer.AutoReset = false;
     SustainTimer.Elapsed  += OnSustainTimer;
 }
Пример #3
0
 protected clsSustain(clsSustain oldsustain)
 {
     if (oldsustain != null)
     {
         PedalDown = oldsustain.PedalDown;
     }
 }
Пример #4
0
 protected clsSustain(clsSustain oldsustain)
 {
     //Play = play;
     if (oldsustain != null)
     {
         PedalDown = oldsustain.PedalDown;
     }
 }
Пример #5
0
 internal clsSustainSendCtlr(clsSustain oldsustain) : base(oldsustain)
 {
 }
Пример #6
0
 internal clsSustainCarryOver(clsSustain oldsustain) : base(oldsustain)
 {
 }
Пример #7
0
 internal clsSustainReplay(clsSustain oldsustain) : base(oldsustain)
 {
 }
Пример #8
0
 protected clsSustainEmu(clsSustain oldsustain)
     : base(oldsustain)
 {
 }
Пример #9
0
 internal clsSustainNormal(clsSustain oldsustain) : base(oldsustain)
 {
 }
Пример #10
0
 internal clsSustainSendCtlr(clsSustain oldsustain) : base(oldsustain)
 {
     SustainTimer           = new System.Timers.Timer((int)P.frmStart.nudTimerSustain.Value);
     SustainTimer.AutoReset = false;
     SustainTimer.Elapsed  += OnSustainTimer;
 }