view evaluation/notecsv2molina.sh @ 116:e9b99e85b929 tony

one minor one major thing: * moved line in PYinVamp.cpp -- should not have any effect * reinstated using peaks instead of using the difference function directly
author matthiasm
date Mon, 23 Mar 2015 16:37:28 +0000
parents b22527106f71
children
line wrap: on
line source
#!/bin/bash

input_csv=$1

if [ $# != 2 ]; then
  minimum_duration=0
else
  minimum_duration=$2
fi

awk -v md="$minimum_duration" 'BEGIN {FS=","}; {if ($2 >= md) {$2=$1+$2; $3 = 69+(log($3/440)/log(2)*12); print $1,$2,$3;}}' < $input_csv