SoundFontInfoLib
2.21.6
Library for parsing and rendering SF2 files
|
A combination of preset zone and instrument zone (plus optional global zones for each) that pertains to a MIDI key/velocity pair. More...
#include <Setup.hpp>
Public Member Functions | |
Setup (const PresetZone &presetZone, const PresetZone *presetGlobal, const InstrumentZone &instrumentZone, const InstrumentZone *instrumentGlobal, int key, int velocity) | |
Construct a preset/instrument pair. More... | |
void | apply (State &state) const |
Update a VoiceState with the various zone configurations. More... | |
const Sample::CanonicalBuffer & | sampleBuffer () const |
int | key () const |
int | velocity () const |
A combination of preset zone and instrument zone (plus optional global zones for each) that pertains to a MIDI key/velocity pair.
One instance represents the configuration that should apply to the state of one voice for rendering samples.
|
inline |
Construct a preset/instrument pair.
presetZone | the PresetZone that matched a key/velocity search |
presetGlobal | the global PresetZone to apply (optional – nullptr if no global) |
instrumentZone | the InstrumentZone that matched a key/velocity search |
instrumentGlobal | the global InstrumentZone to apply (optional – nullptr if no global) |
key | the MIDI key that triggered the rendering |
velocity | the MIDI velocity that triggered the rendering |
|
inline |
Update a VoiceState with the various zone configurations.
state | the VoiceState to update |
References SF2::Render::InstrumentZone::apply(), and SF2::Render::PresetZone::refine().
Referenced by SF2::Render::Voice::State::State().
|
inline |
|
inline |
References SF2::Render::InstrumentZone::sampleBuffer().
|
inline |