Skip to content

Commit

Permalink
play multiple notes
Browse files Browse the repository at this point in the history
  • Loading branch information
rpaezbas committed Sep 29, 2021
1 parent a2e1685 commit a7d4fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "octadre",
"version": "1.0.0",
"version": "1.0.1",
"description": "Transform your Novation Launchpad into a midi sequencer.",
"main": "src/main.js",
"bin": "main.js",
Expand Down
2 changes: 1 addition & 1 deletion src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const setupSceneTracks = () => {
};

const playNote = (pressed, button) => {
if(state.pressedButtons.length <= 1 && cons.INNER_GRID.indexOf(button) != -1){
if(state.pressedButtons[0] != cons.SHIFT_BUTTON && cons.INNER_GRID.indexOf(button) != -1){
var midiMessage = pressed ? 'noteon' : 'noteoff';
io.getOutput().send(midiMessage, {note: state.currentOctave * 12 + cons.INNER_GRID.indexOf(button) ,velocity: 127,channel: state.currentTrack});
}
Expand Down

0 comments on commit a7d4fe4

Please sign in to comment.