summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-11-28 01:02:01 +0000
committerMatthew Hodgson <matthew@matrix.org>2014-11-28 01:02:50 +0000
commit7779ecc10d554894bc583f9dd1ab89f8ff72d482 (patch)
treee3fac79cb91b6e2369e78d162f344f4a8a39b92a
parentCode for the video demo: (diff)
downloadsynapse-7779ecc10d554894bc583f9dd1ab89f8ff72d482.tar.xz
last minute uncommitted changes, apparently
-rw-r--r--webclient/components/matrix/midi-event-handler.js2
1 files changed, 1 insertions, 1 deletions
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) {