You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
464 B

#include <cstdio>
#include "synth/synth.h"
void Synth::noteOn(int ch, int note, int vel) {
channels[ch].noteOn(note, vel);
printf("Note On: ch=%d note=%d vel=%d\n", ch, note, vel);
}
void Synth::noteOff(int ch, int note) {
channels[ch].noteOff(note);
printf("Note Off: ch=%d note=%d\n", ch, note);
}
void Synth::control(int ch, int cc, int val) {
channels[ch].control(cc, val);
printf("Controller: ch=%d cc=%d val=%d\n", ch, cc, val);
}