From 49c5be7f57bf77bf80d0f6c9ac6a86242810ded0 Mon Sep 17 00:00:00 2001 From: redtide Date: Sat, 3 Apr 2021 21:10:27 +0200 Subject: [PATCH] Support DecentSampler ui bgImage --- src/sfizz/import/foreign_instruments/DecentSampler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sfizz/import/foreign_instruments/DecentSampler.cpp b/src/sfizz/import/foreign_instruments/DecentSampler.cpp index a5785eb10..e20f3ab74 100644 --- a/src/sfizz/import/foreign_instruments/DecentSampler.cpp +++ b/src/sfizz/import/foreign_instruments/DecentSampler.cpp @@ -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 << " image=" << image << '\n'; + pugi::xml_node globalNode(rootNode.child("groups")); os << "\n"; emitRegionalOpcodes(os, globalNode);