diff options
| author | Jules Laplace <jules@okfoc.us> | 2012-09-24 18:47:57 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2012-09-24 18:47:57 -0400 |
| commit | 4c654ce9b18f301af534be062f419de774ebf376 (patch) | |
| tree | 446b9bb995096a3c1fb77b6c3b8a0a80e9fa688f /lib/room.js | |
| parent | c3c112aee29a0358e628ba4434592fcbc56135ea (diff) | |
emitting audio
Diffstat (limited to 'lib/room.js')
| -rw-r--r-- | lib/room.js | 26 |
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(); |
