Remove the uint8 versions from midistate

This commit is contained in:
Paul Fd 2020-03-26 00:35:56 +01:00 committed by Paul Ferrand
parent c4db2bba56
commit a1dba6b60f
2 changed files with 0 additions and 64 deletions

View file

@ -13,16 +13,6 @@ sfz::MidiState::MidiState()
reset(0);
}
void sfz::MidiState::noteOnEvent(int delay, int noteNumber, uint8_t velocity) noexcept
{
noteOnEventNormalized(delay, noteNumber, normalizeVelocity(velocity));
}
void sfz::MidiState::noteOffEvent(int delay, int noteNumber, uint8_t velocity) noexcept
{
noteOffEventNormalized(delay, noteNumber, normalizeVelocity(velocity));
}
void sfz::MidiState::noteOnEventNormalized(int delay, int noteNumber, float velocity) noexcept
{
ASSERT(noteNumber >= 0 && noteNumber <= 127);
@ -61,11 +51,6 @@ float sfz::MidiState::getNoteDuration(int noteNumber) const
return 0.0f;
}
uint8_t sfz::MidiState::getNoteVelocity(int noteNumber) const noexcept
{
return denormalizeVelocity(getNoteVelocityNormalized(noteNumber));
}
float sfz::MidiState::getNoteVelocityNormalized(int noteNumber) const noexcept
{
ASSERT(noteNumber >= 0 && noteNumber <= 127);
@ -86,16 +71,6 @@ int sfz::MidiState::getPitchBend() const noexcept
return pitchBend;
}
void sfz::MidiState::ccEvent(int delay, int ccNumber, uint8_t ccValue) noexcept
{
ccEventNormalized(delay, ccNumber, normalizeCC(ccValue));
}
uint8_t sfz::MidiState::getCCValue(int ccNumber) const noexcept
{
return denormalizeCC(getCCValueNormalized(ccNumber));
}
void sfz::MidiState::ccEventNormalized(int delay, int ccNumber, float ccValue) noexcept
{
ASSERT(ccValue >= 0.0 && ccValue <= 1.0);

View file

@ -22,13 +22,6 @@ class MidiState
{
public:
MidiState();
/**
* @brief Update the state after a note on event
*
* @param noteNumber
* @param velocity
*/
void noteOnEvent(int delay, int noteNumber, uint8_t velocity) noexcept;
/**
* @brief Update the state after a note on event
@ -38,14 +31,6 @@ public:
*/
void noteOnEventNormalized(int delay, int noteNumber, float velocity) noexcept;
/**
* @brief Update the state after a note off event
*
* @param noteNumber
* @param velocity
*/
void noteOffEvent(int delay, int noteNumber, uint8_t velocity) noexcept;
/**
* @brief Update the state after a note off event
*
@ -64,14 +49,6 @@ public:
*/
float getNoteDuration(int noteNumber) const;
/**
* @brief Get the note on velocity for a given note
*
* @param noteNumber
* @return uint8_t
*/
uint8_t getNoteVelocity(int noteNumber) const noexcept;
/**
* @brief Get the note on velocity for a given note
*
@ -94,14 +71,6 @@ public:
*/
int getPitchBend() const noexcept;
/**
* @brief Register a CC event
*
* @param ccNumber
* @param ccValue
*/
void ccEvent(int delay, int ccNumber, uint8_t ccValue) noexcept;
/**
* @brief Register a CC event
*
@ -110,14 +79,6 @@ public:
*/
void ccEventNormalized(int delay, int ccNumber, float ccValue) noexcept;
/**
* @brief Get the CC value for CC number
*
* @param ccNumber
* @return uint8_t
*/
uint8_t getCCValue(int ccNumber) const noexcept;
/**
* @brief Get the CC value for CC number
*