예제 #1
0
파일: NoteChart.cs 프로젝트: hpmv/TouchBeat
 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);
 }
예제 #2
0
파일: NoteChart.cs 프로젝트: hpmv/TouchBeat
 public RawNotePoint ToRaw(NotePoint point)
 {
     return new RawNotePoint(point.x, point.step/bpm + sync, ToRawForce(point.force));
 }