From 7654ad67b46bb7e072cbe4a1f3dfb9c115bfeded Mon Sep 17 00:00:00 2001
From: Graham Northup <grissess@nexusg.org>
Date: Mon, 12 Mar 2018 17:59:25 -0400
Subject: Slack time, 24-bit color client terminal printing, and default T:perc
 routing

---
 shiv.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'shiv.py')

diff --git a/shiv.py b/shiv.py
index fe82006..e8cc37d 100644
--- a/shiv.py
+++ b/shiv.py
@@ -219,7 +219,7 @@ for fname in args:
         notes = stream.findall('note')
         for note in notes:
             pitch = float(note.get('pitch'))
-            ampl = float(note.get('ampl', float(note.get('vel', 127.0)) / 127.0))
+            ampl = int(127 * float(note.get('ampl', float(note.get('vel', 127.0)) / 127.0)))
             time = float(note.get('time'))
             dur = float(note.get('dur'))
             if options.notes:
-- 
cgit v1.2.3-70-g09d2