From 7779ecc10d554894bc583f9dd1ab89f8ff72d482 Mon Sep 17 00:00:00 2001
From: Matthew Hodgson <matthew@matrix.org>
Date: Fri, 28 Nov 2014 01:02:01 +0000
Subject: [PATCH] last minute uncommitted changes, apparently

---
 webclient/components/matrix/midi-event-handler.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webclient/components/matrix/midi-event-handler.js b/webclient/components/matrix/midi-event-handler.js
index efc8421390..a4d29272bf 100644
--- a/webclient/components/matrix/midi-event-handler.js
+++ b/webclient/components/matrix/midi-event-handler.js
@@ -93,7 +93,7 @@ notes C-D-E/4 #0# =:: C-D-E-F/4 =|=");
         // log2(2) = 1  # 2 beats == half = h
         // log2(1) = 0
 
-        return Math.ceil(Math.log2(fraction));
+        return Math.floor(Math.log2(fraction));
     },
     
     renderChord: function(duration, rest) {
-- 
GitLab