Mercurial > hg > pyin
view evaluation/notecsv2molina.sh @ 101:c6e4ea83f84d notes_refinement
some parameter changes for note and also pitch track (this may not be wise, since I made some different changes for the tony branch.. will have to merge at some point)
author | matthiasm |
---|---|
date | Wed, 07 Jan 2015 14:36:30 +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