Skip to content

Commit

Permalink
fixed playNote bug
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 7, 2021
1 parent 0a3338e commit 3746771
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ const setupSceneTracks = () => {
const playNote = (pressed, button) => {
if(state.pressedButtons[0] == cons.SHIFT_BUTTON && cons.INNER_GRID.indexOf(button) != -1){
var midiMessage = pressed ? 'noteon' : 'noteoff';
io.getOutput().send(midiMessage, {note: 60 + cons.INNER_GRID.indexOf(button) ,velocity: 127,channel: state.currentTrack});

io.getOutput().send(midiMessage, {note: scenes[state.currentScene].tracks[state.currentTrack].midiRoot + cons.INNER_GRID.indexOf(button) ,velocity: 127,channel: state.currentTrack});
}
};

Expand Down

0 comments on commit 3746771

Please sign in to comment.