Пример #1
0
 public RawNoteTrace ToRaw(NoteTrace trace)
 {
     var t = new RawNoteTrace();
     foreach (NotePoint point in trace.points) {
         t.points.Add(ToRaw(point));
     }
     return t;
 }
Пример #2
0
 public void parse(Scanner scanner)
 {
     bpm = (float) scanner.nextDouble();
     sync = (float) scanner.nextDouble();
     traces = new List<NoteTrace>();
     while(scanner.hasNext()) {
         var trace = new NoteTrace();
         trace.parse(scanner);
         traces.Add(trace);
     }
 }