2 #include <Library/LibraryInterface.hpp>
3 #include <Library/ProcessesItemModel.hpp>
4 #include <Vst/ApplicationPlugin.hpp>
5 #include <Vst/EffectModel.hpp>
7 #include <score/tools/Bind.hpp>
9 #include <ossia/detail/algorithms.hpp>
19 SCORE_CONCRETE(
"6a13c3cc-bca7-44d6-a0ef-644e99204460")
25 QModelIndex node = model.find(key);
26 if(node == QModelIndex{})
35 auto reset_plugs = [=, &plug, &parent] {
36 auto& fx = parent.emplace_back(
38 auto& inst = parent.emplace_back(
40 for(
const auto& vst : plug.vst_infos)
45 = vst.displayName.isEmpty() ? vst.prettyName : vst.displayName;
47 {key, name, QString::number(vst.uniqueID)}, {}, vst.author, {}};
50 Library::addToLibrary(inst, std::move(pdata));
54 Library::addToLibrary(fx, std::move(pdata));
62 con(plug, &vst::ApplicationPlugin::vstChanged,
this,
63 [&model, node, &parent, reset_plugs] {
64 model.beginRemoveRows(node, 0, 1);
66 model.endRemoveRows();
68 model.beginInsertRows(node, 0, 1);
70 model.endInsertRows();
Definition: LibraryInterface.hpp:22
Definition: ProcessesItemModel.hpp:45
Definition: score-plugin-vst/Vst/ApplicationPlugin.hpp:34
Definition: score-plugin-vst/Vst/Library.hpp:18
Definition: ProcessesItemModel.hpp:32
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15
T & applicationPlugin() const
Access a specific application plug-in instance.
Definition: GUIApplicationContext.hpp:69