ofxPDSP
|
Public Member Functions | |
void | setPolyMode (int maxNotes, int unisonVoices=1) |
set the mode to Poly, with the given max notes and the given unison voices More... | |
void | setMonoMode (int unisonVoices, bool legato, MonoPriority priority=Last) |
set the mode to Mono, with the given unison voices value and priority More... | |
void | setPitchBend (float down, float up) |
sets the pitch bend amount for up and down bending More... | |
void | setPortamento (PortamentoMode portamentoMode, float timeMs, pdsp::SlewMode_t slewMode=pdsp::Time, float scaling=12.0f) |
sets the portamento parameters More... | |
void | setNoteRange (int lowNote, int highNote) |
set the note rang for the message parsing, messages out of this range will be ignored More... | |
void | setUnisonDetune (float pitchDetune) |
sets the detune amout for the unison More... | |
void | setSlew (float slewTimeMs) |
sets the slew time of the value outputs More... | |
void | setMidiChannel (int channel) |
sets the midi channel, default is 0 = all channels More... | |
int | getVoicesNumber () const |
returns the actual voice number | |
void | setTuning (int i, float value) |
sets the tuning in hertz for the given note More... | |
void | setTuningByPitch (int i, float value) |
sets the tuning in semitones for the given note More... | |
float | getTuning (int i) const |
gets the tuning in hertz for the given note More... | |
pdsp::PatchNode & | out_trig (int voice) |
returns the trigger output of the given voice More... | |
pdsp::PatchNode & | out_pitch (int voice) |
returns the pitch output of the given voice More... | |
pdsp::SequencerGateOutput & | out_single_trigger () |
single trigger output for the Poly mode | |
pdsp::SequencerValueOutput & | out_pitch_bend () |
pitchbend output. The pitchbend is also summed to the pitch outputs, so this is just for modulations | |
pdsp::SequencerValueOutput & | out_aftertouch () |
channel pressure output | |
Public Member Functions inherited from pdsp::Controller | |
virtual void | processMidi (const pdsp::midi::Input &midiInProcessor, const int &bufferSize) noexcept=0 |
float pdsp::midi::Keys::getTuning | ( | int | i | ) | const |
gets the tuning in hertz for the given note
[in] | i | index of the note, must be 0-127 |
pdsp::PatchNode & pdsp::midi::Keys::out_pitch | ( | int | voice | ) |
returns the pitch output of the given voice
[in] | voice | voice number. It won't be clamped, so use a valid voice number to avoid segfaults. |
pdsp::PatchNode & pdsp::midi::Keys::out_trig | ( | int | voice | ) |
returns the trigger output of the given voice
[in] | voice | voice number. It won't be clamped, so use a valid voice number to avoid segfaults. |
void pdsp::midi::Keys::setMidiChannel | ( | int | channel | ) |
sets the midi channel, default is 0 = all channels
[in] | channel | new midi channel, if different than 1-16 all midi channels are selected |
void pdsp::midi::Keys::setMonoMode | ( | int | unisonVoices, |
bool | legato, | ||
MonoPriority | priority = Last |
||
) |
set the mode to Mono, with the given unison voices value and priority
[in] | unisonVoices | number of unison voices |
[in] | legato | true if you want to retrigger the envelopes only when all the key are released |
[in] | priority | you can use Last, Low or High as parameter |
void pdsp::midi::Keys::setNoteRange | ( | int | lowNote, |
int | highNote | ||
) |
set the note rang for the message parsing, messages out of this range will be ignored
[in] | lowNote | low note, inclusive |
[in] | highNote | high note, inclusive |
void pdsp::midi::Keys::setPitchBend | ( | float | down, |
float | up | ||
) |
sets the pitch bend amount for up and down bending
[in] | down | how many semitones for bending down |
[in] | up | how many semitones for bending up |
void pdsp::midi::Keys::setPolyMode | ( | int | maxNotes, |
int | unisonVoices = 1 |
||
) |
set the mode to Poly, with the given max notes and the given unison voices
[in] | maxNotes | max note for the polyphony, 4 is the minimum |
[in] | unisonVoices | number of unison voices, 1 if not given |
Note stealing will steal the oldest note that are not the highest or the lowest playing notes
void pdsp::midi::Keys::setPortamento | ( | PortamentoMode | portamentoMode, |
float | timeMs, | ||
pdsp::SlewMode_t | slewMode = pdsp::Time , |
||
float | scaling = 12.0f |
||
) |
sets the portamento parameters
[in] | portamentoMode | Off, On or Legato |
[in] | timeMs | slew time in milliseconds |
[in] | slewMode | Time or Rate . |
[in] | scaling | useful only for slewMode=Rate, (about) how many semitones the pitch will change in the set slew time |
void pdsp::midi::Keys::setSlew | ( | float | slewTimeMs | ) |
sets the slew time of the value outputs
[in] | slewTimeMs | slew time in milliseconds |
void pdsp::midi::Keys::setTuning | ( | int | i, |
float | value | ||
) |
sets the tuning in hertz for the given note
[in] | i | index of the note, must be 0-127 |
[in] | value | frequency value in hertz |
void pdsp::midi::Keys::setTuningByPitch | ( | int | i, |
float | value | ||
) |
sets the tuning in semitones for the given note
[in] | i | index of the note, must be 0-127 |
[in] | value | value in semitones for that note, floating point |
void pdsp::midi::Keys::setUnisonDetune | ( | float | pitchDetune | ) |
sets the detune amout for the unison
[in] | detune | detune in semitones. Default detune is 0.3f (30 cents) |