diff options
Diffstat (limited to 'src/adlmidi_opl3.hpp')
-rw-r--r-- | src/adlmidi_opl3.hpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/adlmidi_opl3.hpp b/src/adlmidi_opl3.hpp index c4a2b07..0165d02 100644 --- a/src/adlmidi_opl3.hpp +++ b/src/adlmidi_opl3.hpp @@ -157,7 +157,9 @@ public: //! Windows 9x Generic FM driver volume scale table VOLUME_9X_GENERIC_FM, //! HMI Sound Operating System volume scale table - VOLUME_HMI + VOLUME_HMI, + //! HMI Sound Operating System volume scale model, older variant + VOLUME_HMI_OLD } m_volumeScale; //! Reserved @@ -263,14 +265,18 @@ public: /** * @brief Change setup of instrument in specified chip channel * @param c Channel of chip (Emulated chip choosing by next formula: [c = ch + (chipId * 23)]) - * @param volume Volume level (from 0 to 127) + * @param velocity Note velocity (from 0 to 127) + * @param channelVolume Channel volume level (from 0 to 127) + * @param channelExpression Channel expression level (from 0 to 127) * @param brightness CC74 Brightness level (from 0 to 127) + * @param isDrum Is this a drum note? This flag is needed for some volume model algorithms */ void touchNote(size_t c, uint_fast32_t velocity, uint_fast32_t channelVolume = 127, uint_fast32_t channelExpression = 127, - uint8_t brightness = 127); + uint_fast32_t brightness = 127, + bool isDrum = false); /** * @brief Set the instrument into specified chip channel |