Skip to content

Commit

Permalink
MIDI CC In: 0 is the default
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Oct 18, 2023
1 parent 9e08bfc commit 1341522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,8 @@ export class UserAPI {
if (channel) {
if (this.MidiConnection.lastCCInChannel[channel]) {
return this.MidiConnection.lastCCInChannel[channel][control];
} else return 64;
} else return this.MidiConnection.lastCC[control] || 64;
} else return 0;
} else return this.MidiConnection.lastCC[control] || 0;
};

public has_cc = (channel?: number): boolean => {
Expand Down

0 comments on commit 1341522

Please sign in to comment.