Remove pitchbend from midiState

This commit is contained in:
Paul Ferrand 2020-03-30 22:49:28 +02:00
parent 4de101f42c
commit 8ef598bb7d
2 changed files with 0 additions and 4 deletions

View file

@ -97,7 +97,6 @@ void sfz::MidiState::pitchBendEvent(int delay, float pitchBendValue) noexcept
{ {
ASSERT(pitchBendValue >= -1.0f && pitchBendValue <= 1.0f); ASSERT(pitchBendValue >= -1.0f && pitchBendValue <= 1.0f);
pitchBend = pitchBendValue;
const auto insertionPoint = absl::c_upper_bound(pitchEvents, delay, MidiEventDelayComparator{}); const auto insertionPoint = absl::c_upper_bound(pitchEvents, delay, MidiEventDelayComparator{});
if (insertionPoint == pitchEvents.end() || insertionPoint->delay != delay) if (insertionPoint == pitchEvents.end() || insertionPoint->delay != delay)
pitchEvents.insert(insertionPoint, { delay, pitchBendValue }); pitchEvents.insert(insertionPoint, { delay, pitchBendValue });
@ -141,7 +140,6 @@ void sfz::MidiState::reset() noexcept
pitchEvents.clear(); pitchEvents.clear();
pitchEvents.push_back({ 0, 0.0f }); pitchEvents.push_back({ 0, 0.0f });
pitchBend = 0;
activeNotes = 0; activeNotes = 0;
internalClock = 0; internalClock = 0;
absl::c_fill(noteOnTimes, 0); absl::c_fill(noteOnTimes, 0);
@ -153,7 +151,6 @@ void sfz::MidiState::resetAllControllers(int delay) noexcept
for (int ccIdx = 0; ccIdx < config::numCCs; ++ccIdx) for (int ccIdx = 0; ccIdx < config::numCCs; ++ccIdx)
ccEvent(delay, ccIdx, 0.0f); ccEvent(delay, ccIdx, 0.0f);
pitchBend = 0;
pitchBendEvent(delay, 0.0f); pitchBendEvent(delay, 0.0f);
} }

View file

@ -155,7 +155,6 @@ private:
/** /**
* Pitch bend status * Pitch bend status
*/ */
int pitchBend { 0 };
EventVector pitchEvents; EventVector pitchEvents;
float sampleRate { config::defaultSampleRate }; float sampleRate { config::defaultSampleRate };
int samplesPerBlock { config::defaultSamplesPerBlock }; int samplesPerBlock { config::defaultSamplesPerBlock };