Skip to content

Commit

Permalink
Support DecentSampler ui bgImage
Browse files Browse the repository at this point in the history
  • Loading branch information
redtide committed Apr 3, 2021
1 parent 8f33c90 commit 49c5be7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sfizz/import/foreign_instruments/DecentSampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ std::string DecentSamplerInstrumentImporter::convertToSfz(const fs::path& path)
return {};
}

pugi::xml_node uiNode(rootNode.child("ui"));
const char* image = uiNode.attribute("bgImage").as_string();
if (image[0] != '\0')
os << "<control> image=" << image << '\n';

pugi::xml_node globalNode(rootNode.child("groups"));
os << "<global>\n";
emitRegionalOpcodes(os, globalNode);
Expand Down

0 comments on commit 49c5be7

Please sign in to comment.