Пример #1
0
 /// <summary>
 /// Present the parameters as set by constructor or properties to the csound engine associated
 /// with this
 /// </summary>
 /// <returns></returns>
 public override bool Run()
 {
     if (IsAbsoluteP2 && (Parameters.Length > 1))
     {
         double p2 = Parameters[1] - Csound.ScoreTime;
         if (p2 < 0.0)
         {
             if ((Parameters.Length > 2) && (Parameters[2] >= 0.0) && (Opcode == ScoreEventType.Note || Opcode == ScoreEventType.Advance))
             {
                 Parameters[2] += p2;
                 if (Parameters[2] <= 0.0)
                 {
                     return(false);
                 }
             }
             p2 = 0.0;
         }
         Parameters[1] = p2;
     }
     Status = Csound.SendScoreEvent(Opcode, Parameters);
     return(Status != CsoundStatus.Success);
 }
Пример #2
0
 public override bool Run()
 {
     Status = Csound.SendScoreEvent(Message);
     return(Status != CsoundStatus.Success);
 }