From 2cb9c95ea18906258a4fc2df1fe229d191ae5e31 Mon Sep 17 00:00:00 2001 From: Grissess Date: Tue, 14 Jun 2016 02:56:53 -0400 Subject: Bugfixes --- broadcast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'broadcast.py') diff --git a/broadcast.py b/broadcast.py index 1fcf5a8..91b4e71 100644 --- a/broadcast.py +++ b/broadcast.py @@ -473,7 +473,7 @@ for fname in args: for note in nsq: ttime = float(note.get('time')) pitch = float(note.get('pitch')) + options.transpose - ampl = float(note.get('ampl', note.get('vel', 127.0) / 127.0)) + ampl = float(note.get('ampl', float(note.get('vel', 127.0)) / 127.0)) dur = factor*float(note.get('dur')) while time.time() - BASETIME < factor*ttime: self.wait_for(factor*ttime - (time.time() - BASETIME)) -- cgit v1.2.3-70-g09d2