예제 #1
0
 internal void SetPlay(int beat, long val)
 {
     if (beat < Play.Count)
     {
         Play[beat] = val;
     }
     else
     {
         for (int i = Play.Count; i < beat; i++)
         {
             Play.Add(0);
         }
         Play.Add(val);
     }
 }
예제 #2
0
 internal void SetRecord(int beat, long val)
 {
     if (beat < Record.Count)
     {
         Record[beat] = val;
     }
     else
     {
         for (int i = Record.Count; i < beat; i++)
         {
             Record.Add(0);
         }
         Record.Add(val);
     }
 }
예제 #3
0
 internal void ResetRecord()
 {
     //* clear Record
     Record = new clsList(AudioSync);
     Record.Add(0);
     //AutoSync.Record_LastUsed = ela.Record.ToList();
 }
예제 #4
0
 internal void CopyRecordToPlay()
 {
     //Play = Record.ToList();
     Play = new clsList(AudioSync);
     for (int i = 0; i < Record.Count; i++)
     {
         Play.Add(Math.Max(0, Record[i]));
     }
     //foreach (long l in Record) {
     //  Play.Add(Math.Max(0, l));
     //}
 }
예제 #5
0
 private void ReadSection(List <string> lines, ref int i, out clsList list)
 {
     list = new clsList(AudioSync);
     for (; i < lines.Count; i++)
     {
         string l = lines[i];
         if (l.Trim() == "+++") //End of Play / Start of Record
         {
             i++;
             break;
         }
         long elapsed;
         long.TryParse(l, out elapsed); //0 by default
         list.Add(elapsed);
     }
 }
예제 #6
0
 internal void ResetPlay()
 {
     //* clear Play
     Play = new clsList(AudioSync);
     Play.Add(0);
 }