Add the missing exportMidnam C++ API
This commit is contained in:
parent
ce1894ccf4
commit
62506b50f3
2 changed files with 15 additions and 0 deletions
|
|
@ -954,6 +954,16 @@ public:
|
|||
*/
|
||||
const std::vector<std::pair<uint16_t, std::string>>& getCCLabels() const noexcept;
|
||||
|
||||
/**
|
||||
* @brief Export a MIDI Name document describing the currently loaded SFZ file.
|
||||
* @since 0.6.0
|
||||
*
|
||||
* @param model The model name used if a non-empty string, otherwise generated.
|
||||
*
|
||||
* @return A XML string.
|
||||
*/
|
||||
std::string exportMidnam(const char* model);
|
||||
|
||||
/**
|
||||
* @addtogroup Messaging
|
||||
* @{
|
||||
|
|
|
|||
|
|
@ -356,6 +356,11 @@ void sfz::Sfizz::clearExternalDefinitions()
|
|||
synth->synth.getParser().clearExternalDefinitions();
|
||||
}
|
||||
|
||||
std::string sfz::Sfizz::exportMidnam(const char* model)
|
||||
{
|
||||
return synth->synth.exportMidnam(model);
|
||||
}
|
||||
|
||||
const std::vector<std::pair<uint8_t, std::string>>& sfz::Sfizz::getKeyLabels() const noexcept
|
||||
{
|
||||
return synth->synth.getKeyLabels();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue