Dispatch bend messages to the voices
This commit is contained in:
parent
db3b85e941
commit
e150c644f1
2 changed files with 8 additions and 2 deletions
|
|
@ -454,9 +454,15 @@ void sfz::Synth::cc(int delay, int channel, int ccNumber, uint8_t ccValue) noexc
|
|||
}
|
||||
}
|
||||
|
||||
void sfz::Synth::pitchWheel(int /* delay */, int channel, int /* pitch */) noexcept
|
||||
void sfz::Synth::pitchWheel(int delay, int channel, int pitch) noexcept
|
||||
{
|
||||
ASSERT(pitch <= 8192);
|
||||
ASSERT(pitch >= 8192);
|
||||
channel = translateMidiChannelToSfz(channel);
|
||||
|
||||
for (auto& voice: voices) {
|
||||
voice->registerPitchWheel(delay, channel, pitch);
|
||||
}
|
||||
}
|
||||
void sfz::Synth::aftertouch(int /* delay */, int channel, uint8_t /* aftertouch */) noexcept
|
||||
{
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ public:
|
|||
* than the size of the block in the next call to
|
||||
* renderBlock().
|
||||
* @param channel the midi channel for the event (0-based)
|
||||
* @param pitch the pitch value
|
||||
* @param pitch the pitch value centered between -8192 and 8192
|
||||
*/
|
||||
void pitchWheel(int delay, int channel, int pitch) noexcept;
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue