changeset 84:e640768a007f

added awk to transform to different output format
author Matthias Mauch <matthias.mauch@eecs.qmul.ac.uk>
date Thu, 04 Dec 2014 16:11:29 +0000
parents e5c62fdfae4e
children bf6b9338233d
files notecsv2molina.awk
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/notecsv2molina.awk	Thu Dec 04 12:40:28 2014 +0000
+++ b/notecsv2molina.awk	Thu Dec 04 16:11:29 2014 +0000
@@ -1,1 +1,1 @@
-BEGIN {FS=","}; {$2=$1+$2; $3 = 69+(log($3/440)/log(2)*12); print $1,$2, $3}
+BEGIN {FS=","}; {if ($2 > 0.09) {$2=$1+$2; $3 = 69+(log($3/440)/log(2)*12); print $1,$2, $3;}}