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