ofxPDSP
pdsp::midi::Pads Class Reference
Inheritance diagram for pdsp::midi::Pads:
pdsp::Controller

Public Member Functions

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 convert the midi message to a pdsp trigger output More...
 
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 convert the midi message to a pdsp trigger output More...
 
void resizeLayers (int size)
 resizes the trigger layers number More...
 
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, with numNotes layer. The layers' note don't overlap. More...
 
pdsp::SequencerGateOutputout_trig (int layerIndex)
 return the trigger output of the given note layer. More...
 
int getLayerLow (int layerIndex) const
 returns the low note for the given layer More...
 
int getLayerHigh (int layerIndex) const
 returns the high note for the given layer More...
 
- Public Member Functions inherited from pdsp::Controller
virtual void processMidi (const pdsp::midi::Input &midiInProcessor, const int &bufferSize) noexcept=0
 

Member Function Documentation

◆ addTriggerLayer()

void pdsp::midi::Pads::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 convert the midi message to a pdsp trigger output

Parameters
[in]noteLowlow note for parsing, included
[in]noteLowhigh note for parsing, included
[in]channelmidi channel, 0 if not given. 0 = all channels

◆ getLayerHigh()

int pdsp::midi::Pads::getLayerHigh ( int  layerIndex) const

returns the high note for the given layer

Parameters
[in]layerIndexlayer index

◆ getLayerLow()

int pdsp::midi::Pads::getLayerLow ( int  layerIndex) const

returns the low note for the given layer

Parameters
[in]layerIndexlayer index

◆ out_trig()

pdsp::SequencerGateOutput & pdsp::midi::Pads::out_trig ( int  layerIndex)

return the trigger output of the given note layer.

Parameters
[in]layerIndexlayer index

◆ resizeLayers()

void pdsp::midi::Pads::resizeLayers ( int  size)

resizes the trigger layers number

Parameters
[in]sizenew size

◆ setTriggerLayer()

void pdsp::midi::Pads::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 convert the midi message to a pdsp trigger output

Parameters
[in]layerIndexindex of the layer to set
[in]noteLowlow note for parsing, included
[in]noteLowhigh note for parsing, included
[in]channelmidi channel, 0 if not given. 0 = all channels

◆ simpleInit()

void pdsp::midi::Pads::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, with numNotes layer. The layers' note don't overlap.

Parameters
[in]lowNotethe lowest note of the first layer
[in]numLayerthe number of layers
[in]layerSpanhow many notes each layer has
[in]channelmidi channel for all the laters, 0 if not given. 0 = all channels

The documentation for this class was generated from the following files: