From 5b298c9db9fb9b7d4a8f21caa588ec605f75180a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Fri, 7 Feb 2020 01:20:17 +0100 Subject: Adapt script to work with new binary. --- sampling_alg_lac2020/midi_tests/run_tests.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sampling_alg_lac2020/midi_tests/run_tests.sh b/sampling_alg_lac2020/midi_tests/run_tests.sh index fbe2a51..ea89838 100755 --- a/sampling_alg_lac2020/midi_tests/run_tests.sh +++ b/sampling_alg_lac2020/midi_tests/run_tests.sh @@ -9,14 +9,17 @@ midifile="$1" alg="$2" output="$3" +new_parameters1="-I speed=1 -o dummy -p stddev=0" +new_parameters2="-I speed=1" # -p close=1,diverse=0,random=0" + if [ "$alg" = "old" ]; then echo "test with old selection..." - ./drumgizmo_old -i midifile -I file=/home/chaot/Data/midi_tests/$midifile -I midimap=~/Data/Drumkits/CrocellKit/Midimap_full.xml -o dummy ~/Data/Drumkits/CrocellKit/CrocellKit_full.xml | grep "index: " | awk '{print $8}' | sed 's/.$//' > "$output" + ./drumgizmo_old -i midifile -I file=$midifile -I midimap=~/Data/Drumkits/CrocellKit/Midimap_full.xml -o dummy ~/Data/Drumkits/CrocellKit/CrocellKit_full.xml | grep "index: " | awk '{print $8}' | sed 's/.$//' > "$output" # ./drumgizmo_old -i midifile -I file=/home/chaot/Data/midi_tests/$midifile -I midimap=~/Data/Drumkits/CrocellKit/Midimap_full.xml -I speed=4 -o wavfile -O file="$3" ~/Data/Drumkits/CrocellKit/CrocellKit_full.xml sort -n "$output" | uniq -c | awk '{print $2 " " $1}' elif [ "$alg" = "new" ]; then echo "test with new selection..." - ./drumgizmo_new -i midifile -I file=/home/chaot/Data/midi_tests/$midifile -I midimap=~/Data/Drumkits/CrocellKit/Midimap_full.xml -I speed=1 -o dummy -p stddev=0 ~/Data/Drumkits/CrocellKit/CrocellKit_full.xml | grep "index: " | awk '{print $8}' | sed 's/.$//' > "$output" - # ./drumgizmo_new -i midifile -I file=/home/chaot/Data/midi_tests/$midifile -I midimap=~/Data/Drumkits/CrocellKit/Midimap_full.xml -I speed=8 -o wavfile -O file="$3" -p close=10,diverse=0.05,random=0.01,stddev=0 ~/Data/Drumkits/CrocellKit/CrocellKit_full.xml + # ./drumgizmo_new -i midifile -I file=$midifile -I midimap=~/Data/Drumkits/CrocellKit/Midimap_full.xml "$new_parameters" ~/Data/Drumkits/CrocellKit/CrocellKit_full.xml | grep "index: " | awk '{print $8}' | sed 's/.$//' > "$output" + ./drumgizmo_new -i midifile -I file=$midifile -I midimap=~/Data/Drumkits/CrocellKit/Midimap_full.xml $new_parameters2 -o wavfile -O file="$3" ~/Data/Drumkits/CrocellKit/CrocellKit_full.xml | grep "index: " | awk '{print $8}' | sed 's/.$//' > "$output" sort -n "$output" | uniq -c | awk '{print $2 " " $1}' fi -- cgit v1.2.3