summaryrefslogtreecommitdiff
path: root/sampling_alg_lac2020/midi_tests
diff options
context:
space:
mode:
Diffstat (limited to 'sampling_alg_lac2020/midi_tests')
-rwxr-xr-xsampling_alg_lac2020/midi_tests/run_tests.sh7
-rwxr-xr-xsampling_alg_lac2020/midi_tests/test_and_plot.sh48
2 files changed, 29 insertions, 26 deletions
diff --git a/sampling_alg_lac2020/midi_tests/run_tests.sh b/sampling_alg_lac2020/midi_tests/run_tests.sh
index 556a3ac..bcf29ff 100755
--- a/sampling_alg_lac2020/midi_tests/run_tests.sh
+++ b/sampling_alg_lac2020/midi_tests/run_tests.sh
@@ -27,5 +27,8 @@ elif [ "$alg" = "new" ]; then
parameters="-I speed=4 -p close=.9,diverse=0.04,random=0.01 -x -X attack=0,release=0,stddev=0"
fi
-$bin -i midifile -I file=$midifile -I midimap=$midimap $parameters -o wavfile -O file="$output" $kit | grep "index: " | awk '{print $8}' | sed 's/.$//' > "$output"
- sort -n "$output" | uniq -c | awk '{print $2 " " $1}'
+# $bin -i midifile -I file=$midifile -I midimap=$midimap $parameters -o wavfile -O file="$output" $kit | grep "index: " | awk '{print $8}' | sed 's/.$//' > "$output"
+# sort -n "$output" | uniq -c | awk '{print $2 " " $1}'
+
+$bin -i midifile -I file=$midifile -I midimap=$midimap $parameters -o dummy $kit | grep "index: " | awk '{print $20}' > "$output"
+# sort -n "$output" | uniq -c | awk '{print $2 " " $1}'
diff --git a/sampling_alg_lac2020/midi_tests/test_and_plot.sh b/sampling_alg_lac2020/midi_tests/test_and_plot.sh
index 2c9ac32..34c2bc1 100755
--- a/sampling_alg_lac2020/midi_tests/test_and_plot.sh
+++ b/sampling_alg_lac2020/midi_tests/test_and_plot.sh
@@ -1,32 +1,32 @@
# new
-# ./run_tests.sh rise_0_127_8.mid new sweep_new_output.txt
-./plot_histogram.py sweep_new_output.txt sweep_new.pdf
+./run_tests.sh rise_0_127_8.mid new sweep_count.txt
+# ./plot_histogram.py sweep_new_output.txt sweep_new.pdf
-# ./run_tests.sh 16_1016.mid new 16_new_output.txt
-./plot_histogram.py 16_new_output.txt 16_new.pdf
+./run_tests.sh 16_1016.mid new 16_count.txt
+# ./plot_histogram.py 16_new_output.txt 16_new.pdf
-# ./run_tests.sh 48_1016.mid new 48_new_output.txt
-./plot_histogram.py 48_new_output.txt 48_new.pdf
+./run_tests.sh 48_1016.mid new 48_count.txt
+# ./plot_histogram.py 48_new_output.txt 48_new.pdf
-# ./run_tests.sh 80_1016.mid new 80_new_output.txt
-./plot_histogram.py 80_new_output.txt 80_new.pdf
+./run_tests.sh 80_1016.mid new 80_count.txt
+# ./plot_histogram.py 80_new_output.txt 80_new.pdf
-# ./run_tests.sh 112_1016.mid new 112_new_output.txt
-./plot_histogram.py 112_new_output.txt 112_new.pdf
+./run_tests.sh 112_1016.mid new 112_count.txt
+# ./plot_histogram.py 112_new_output.txt 112_new.pdf
# old
-# ./run_tests.sh rise_0_127_8.mid old sweep_old_output.txt
-./plot_histogram.py sweep_old_output.txt sweep_old.pdf
-
-# ./run_tests.sh 16_1016.mid old 16_old_output.txt
-./plot_histogram.py 16_old_output.txt 16_old.pdf
-
-# ./run_tests.sh 48_1016.mid old 48_old_output.txt
-./plot_histogram.py 48_old_output.txt 48_old.pdf
-
-# ./run_tests.sh 80_1016.mid old 80_old_output.txt
-./plot_histogram.py 80_old_output.txt 80_old.pdf
-
-# ./run_tests.sh 112_1016.mid old 112_old_output.txt
-./plot_histogram.py 112_old_output.txt 112_old.pdf
+# # ./run_tests.sh rise_0_127_8.mid old sweep_old_output.txt
+# ./plot_histogram.py sweep_old_output.txt sweep_old.pdf
+#
+# # ./run_tests.sh 16_1016.mid old 16_old_output.txt
+# ./plot_histogram.py 16_old_output.txt 16_old.pdf
+#
+# # ./run_tests.sh 48_1016.mid old 48_old_output.txt
+# ./plot_histogram.py 48_old_output.txt 48_old.pdf
+#
+# # ./run_tests.sh 80_1016.mid old 80_old_output.txt
+# ./plot_histogram.py 80_old_output.txt 80_old.pdf
+#
+# # ./run_tests.sh 112_1016.mid old 112_old_output.txt
+# ./plot_histogram.py 112_old_output.txt 112_old.pdf