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
458 B
18 lines
458 B
#include <cstdio>
|
|
|
|
#include "synth.h"
|
|
|
|
void Synth::noteOn(int ch, int note, int vel) {
|
|
printf("Note On: ch=%d note=%d vel=%d\n", ch, note, vel);
|
|
channels[ch].noteOn(note, vel);
|
|
}
|
|
|
|
void Synth::noteOff(int ch, int note) {
|
|
printf("Note Off: ch=%d note=%d\n", ch, note);
|
|
channels[ch].noteOff(note);
|
|
}
|
|
|
|
void Synth::control(int ch, int cc, int val) {
|
|
printf("Controller: ch=%d cc=%d val=%d\n", ch, cc, val);
|
|
channels[ch].control(cc, val);
|
|
} |