view tests/test-midi-writer/test-midi-writer.sh @ 273:5db279f1e0f8 piper-nopiper

Switch the multiple-audio tests to using amplitudefollower -- percussiononsets is too sensitive to the very low-level noise that comes from variations in mp3 decoder fixed-point arithmetic function choice
author Chris Cannam
date Fri, 25 Nov 2016 13:37:02 +0000
parents 082c3f21f49e
children
line wrap: on
line source
#!/bin/bash

. ../include.sh

infile=$audiopath/20sec-silence.wav
tmpmidi=$mypath/tmp_1_$$.mid

trap "rm -f $tmpmidi" 0

for output in notes-regions curve-vsr; do

    flag=""

    $r -d "$testplug:$output" -w midi --midi-one-file "$tmpmidi" --midi-force "$infile" 2>/dev/null || \
	fail "Failed to run for plugin $testplug with output $output and no additional flags"

    midicompare "$tmpmidi" "$mypath/expected/$output.mid" || \
	faildiff_od "Output differs from expected for output $output" "$tmpmidi" "$mypath/expected/$output.mid"

done

exit 0