public RawNoteTrace ToRaw(NoteTrace trace) { var t = new RawNoteTrace(); foreach (NotePoint point in trace.points) { t.points.Add(ToRaw(point)); } return t; }
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); } }