Skip to content

Commit

Permalink
added note on/off
Browse files Browse the repository at this point in the history
  • Loading branch information
maurinElectroTextile committed Apr 7, 2024
1 parent fe4b6bf commit add30b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/js/e256_mappings/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ function gridFactory() {
case PLAY_MODE:
// Set midi_msg status to NOTE_ON
_key_group.midi.pos_z.msg.status = _key_group.midi.pos_z.msg.status | (NOTE_ON << 4);
_key_group.midi.pos_z.msg.data2 = 127;
send_midi_msg(_key_group.midi.pos_z.msg);
break;
}
Expand All @@ -171,6 +172,7 @@ function gridFactory() {
case PLAY_MODE:
// Set midi_msg status to NOTE_OFF
_key_group.midi.pos_z.msg.status = _key_group.midi.pos_z.msg.status & (NOTE_OFF << 4);
_key_group.midi.pos_z.msg.data2 = 0;
send_midi_msg(_key_group.midi.pos_z.msg);
break;
}
Expand Down

0 comments on commit add30b5

Please sign in to comment.