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); } }
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); } }
internal void ResetRecord() { //* clear Record Record = new clsList(AudioSync); Record.Add(0); //AutoSync.Record_LastUsed = ela.Record.ToList(); }
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)); //} }
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); } }
internal void ResetPlay() { //* clear Play Play = new clsList(AudioSync); Play.Add(0); }