4 #include "MidiAction.h"
18 class StkMidiAction :
public midi::MidiAction {
20 StkMidiAction() =
default;
22 StkMidiAction(Instrmnt *instrument,
int group=0) {
23 addInstrument(instrument, group);
30 virtual void addInstrument( Instrmnt *instrument,
int group=0 ){
31 voicer_obj.addInstrument(instrument, group);
34 virtual void removeInstrument( Instrmnt *instrument ){
35 voicer_obj.removeInstrument(instrument);
38 virtual void onNoteOn(uint8_t channel, uint8_t note, uint8_t velocity=87) {
39 voicer_obj.noteOn(note, velocity, channel);
42 virtual void onNoteOff(uint8_t channel, uint8_t note, uint8_t velocity=87) {
43 voicer_obj.noteOff(note, velocity, channel);
46 virtual void onControlChange(uint8_t channel, uint8_t controller, uint8_t value) {
47 voicer_obj.controlChange(controller,(StkFloat) value, channel);
50 virtual void onPitchBend(uint8_t channel, uint8_t value) {
51 voicer_obj.pitchBend(value, channel);
54 StkFloat tick(
unsigned int channel = 0 ){
55 return voicer_obj.tick(channel);
58 StkFrames& tick( StkFrames& frames,
unsigned int channel = 0 ){
59 return voicer_obj.tick(frames, channel);
The STK namespace.
Definition: ADSR.h:8