diff --git a/src/sfizz/Synth.h b/src/sfizz/Synth.h index d7f481af..c04b13d0 100644 --- a/src/sfizz/Synth.h +++ b/src/sfizz/Synth.h @@ -210,6 +210,17 @@ public: * @return const Voice* */ const Voice* getVoiceById(NumericId id) const noexcept; + /** + * @brief Find the voice which is associated with the given identifier. + * + * @param id + * @return Voice* + */ + Voice* getVoiceById(NumericId id) noexcept + { + return const_cast( + const_cast(this)->getVoiceById(id)); + } /** * @brief Get a raw view into a specific region. This is mostly used * for testing.