}
void ksynth_note_on(struct KSynth* ksynth_instance, int channel, int note, int velocity) {
- if(ksynth_instance == NULL || channel < 0 || channel > 15 || note < 0 || note > 127 || velocity < 0 || velocity > 127) {
+ if(ksynth_instance == NULL || channel < 0 || channel > 16 || note < 0 || note > 127 || velocity < 0 || velocity > 127) {
fprintf(stderr, "[KSynth] Error: Invalid parameters for note on.\n");
return;
}
}
void ksynth_note_off(struct KSynth* ksynth_instance, int channel, int note) {
- if (ksynth_instance == NULL || channel < 0 || channel > 15 || note < 0 || note > 127) {
+ if (ksynth_instance == NULL || channel < 0 || channel > 16 || note < 0 || note > 127) {
fprintf(stderr, "[KSynth] Error: Invalid parameters for note off.\n");
return;
}