Dispatch bend messages to the voices

This commit is contained in:
Paul Ferrand 2019-12-09 23:41:06 +01:00
parent db3b85e941
commit e150c644f1
2 changed files with 8 additions and 2 deletions

View file

@ -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
{

View file

@ -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;
/**