summaryrefslogtreecommitdiff
path: root/lib/room.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2012-09-24 18:47:57 -0400
committerJules Laplace <jules@okfoc.us>2012-09-24 18:47:57 -0400
commit4c654ce9b18f301af534be062f419de774ebf376 (patch)
tree446b9bb995096a3c1fb77b6c3b8a0a80e9fa688f /lib/room.js
parentc3c112aee29a0358e628ba4434592fcbc56135ea (diff)
emitting audio
Diffstat (limited to 'lib/room.js')
-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();