6 #ifndef OFXPDSP_PDSPMIDIPADS_H_INCLUDED 7 #define OFXPDSP_PDSPMIDIPADS_H_INCLUDED 12 #include "../messages/header.h" 13 #include "../DSP/control/SequencerGateOutput.h" 14 #include "helper/Controller.h" 21 namespace pdsp{
namespace midi {
43 void setTriggerLayer(
int layerIndex,
int noteLow,
int noteHigh,
int channel = 0 );
58 void simpleInit(
int lowNote,
int numLayer,
int layerSpan=1,
int channel=0);
85 std::vector<pdsp::SequencerGateOutput> outs_trig;
87 void processMidi(
const pdsp::midi::Input &midiInProcessor,
const int &bufferSize ) noexcept
override;
93 std::vector<pdsp::MessageBuffer> trigBuffers;
94 std::vector<int> lowThreshold;
95 std::vector<int> highThreshold;
96 std::vector<int> channels;
105 #endif // OFXPDSP_PDSPMIDIPADS_H_INCLUDED
Definition: MidiPads.h:23
Takes messages from a MessageBuffer and convert them in a trigger output.
Definition: SequencerGateOutput.h:20
pdsp::SequencerGateOutput & out_trig(int layerIndex)
return the trigger output of the given note layer.
Definition: MidiPads.cpp:154
int getLayerLow(int layerIndex) const
returns the low note for the given layer
Definition: MidiPads.cpp:96
void setTriggerLayer(int layerIndex, int noteLow, int noteHigh, int channel=0)
sets a trigger layer. This layer will parse the notes from noteLow o noteHigh (both included) and con...
Definition: MidiPads.cpp:60
int getLayerHigh(int layerIndex) const
returns the high note for the given layer
Definition: MidiPads.cpp:105
Definition: Controller.h:11
void addTriggerLayer(int noteLow, int noteHigh, int channel=0)
adds a new trigger layer. This will parse the notes from noteLow o noteHigh (both included) and conve...
Definition: MidiPads.cpp:43
Thread-safe value control with smoothing.
Definition: SequencerBridge.h:11
void simpleInit(int lowNote, int numLayer, int layerSpan=1, int channel=0)
inits the class setting its layer starting from low note, setting span notes for each layer...
Definition: MidiPads.cpp:75
void resizeLayers(int size)
resizes the trigger layers number
Definition: MidiPads.cpp:17