summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/room.js26
1 files changed, 9 insertions, 17 deletions
diff --git a/lib/room.js b/lib/room.js
index 2a8f5fe..abb1314 100644
--- a/lib/room.js
+++ b/lib/room.js
@@ -22,22 +22,14 @@ function Grid(){
var base = this;
var tempo = 125;
var pattern = [
- [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
+ [1,0,0,0, 1,0,0,0, 1,0,0,0, 1,0,0,0],
+ [0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0],
+ [0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0],
+ [0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0],
+ [0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0],
+ [0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0],
+ [0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0],
+ [0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0]
];
function init(){
bind();
@@ -53,7 +45,7 @@ function Grid(){
base.setNote = function(data){
if (data.step < pattern.length && data.channel < pattern[data.step].length) {
var state = data.state == 1 ? 1 : 0;
- pattern[data.step][data.channel] = state;
+ pattern[data.channel][data.step] = state;
}
}
init();