Exemple #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));
                }
            }
 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;
 }
Exemple #3
0
 protected clsSustain(clsSustain oldsustain)
 {
     if (oldsustain != null)
     {
         PedalDown = oldsustain.PedalDown;
     }
 }
Exemple #4
0
 protected clsSustain(clsSustain oldsustain)
 {
     //Play = play;
     if (oldsustain != null)
     {
         PedalDown = oldsustain.PedalDown;
     }
 }
Exemple #5
0
 internal clsSustainSendCtlr(clsSustain oldsustain) : base(oldsustain)
 {
 }
Exemple #6
0
 internal clsSustainCarryOver(clsSustain oldsustain) : base(oldsustain)
 {
 }
Exemple #7
0
 internal clsSustainReplay(clsSustain oldsustain) : base(oldsustain)
 {
 }
Exemple #8
0
 protected clsSustainEmu(clsSustain oldsustain)
     : base(oldsustain)
 {
 }
Exemple #9
0
 internal clsSustainNormal(clsSustain oldsustain) : base(oldsustain)
 {
 }
Exemple #10
0
 internal clsSustainSendCtlr(clsSustain oldsustain) : base(oldsustain)
 {
     SustainTimer           = new System.Timers.Timer((int)P.frmStart.nudTimerSustain.Value);
     SustainTimer.AutoReset = false;
     SustainTimer.Elapsed  += OnSustainTimer;
 }