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
544 B
18 lines
544 B
#include <iostream>
|
|
|
|
#include "synth/synth.h"
|
|
|
|
void Synth::noteOn(int ch, int note, int vel) {
|
|
channels[ch].noteOn(note, vel);
|
|
std::cout << "Note On: ch=" << ch << " note=" << note << " vel=" << vel << std::endl;
|
|
}
|
|
|
|
void Synth::noteOff(int ch, int note) {
|
|
channels[ch].noteOff(note);
|
|
std::cout << "Note Off: ch=" << ch << " note=" << note << std::endl;
|
|
}
|
|
|
|
void Synth::control(int ch, int cc, int val) {
|
|
channels[ch].control(cc, val);
|
|
std::cout << "Controller: ch=" << ch << " cc=" << cc << " val=" << val << std::endl;
|
|
} |