Skip to content

Commit

Permalink
More output
Browse files Browse the repository at this point in the history
  • Loading branch information
cannam committed Oct 3, 2024
1 parent 05acd21 commit 28fa720
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions com/breakfastquay/rubberband/test/RubberBandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void exerciseStretcher() {
stretcher.setTimeRatio(1.5);
stretcher.setPitchScale(0.8);

System.err.println
System.out.println
(String.format("Channel count: %d\n" +
"Time ratio: %f\n" +
"Pitch scale: %f\n" +
Expand Down Expand Up @@ -107,7 +107,7 @@ public static void exerciseStretcher() {
}
}

System.err.println
System.out.println
(String.format("in = %d, out = %d, rms = %f",
blocksize * blocks, n,
Math.sqrt(sqrtotal / (double)n)));
Expand All @@ -127,7 +127,7 @@ public static void exerciseLiveShifter() {

shifter.setPitchScale(0.8);

System.err.println
System.out.println
(String.format("Channel count: %d\n" +
"Pitch scale: %f\n" +
"Block size: %d\n" +
Expand Down Expand Up @@ -171,17 +171,20 @@ public static void exerciseLiveShifter() {
}
}

System.err.println
System.out.println
(String.format("in = %d, out = %d, rms = %f",
blocksize * blocks, n,
Math.sqrt(sqrtotal / (double)n)));

shifter.dispose();
}

public static void main(String[] args) {
System.out.println("Exercising RubberBandStretcher through JNI...");
exerciseStretcher();
System.out.println("Exercising RubberBandLiveShifter through JNI...");
exerciseLiveShifter();
System.out.println("Done");
}

}
Expand Down

0 comments on commit 28fa720

Please sign in to comment.