Beispiel #1
0
 public void parse(Scanner scanner)
 {
     int n = scanner.nextInt();
     float offset = (float) scanner.nextDouble();
     points = new List<NotePoint>();
     NotePoint[] ps = new NotePoint[n];
     for (int i = 0; i < n; i++) {
         ps[i].step = offset + (float) scanner.nextDouble();
     }
     for (int i = 0; i < n; i++)
     {
         ps[i].x = (float)scanner.nextDouble();
     }
     for (int i = 0; i < n; i++)
     {
         ps[i].force = scanner.nextInt();
     }
     points.AddRange(ps);
 }
Beispiel #2
0
 public RawNotePoint ToRaw(NotePoint point)
 {
     return new RawNotePoint(point.x, point.step/bpm + sync, ToRawForce(point.force));
 }