2 #include <Process/Process.hpp>
3 #include <Process/Script/ScriptProcess.hpp>
4 #include <Process/TimeValue.hpp>
5 #include <Process/WidgetLayer/WidgetLayerPresenter.hpp>
6 #include <Process/WidgetLayer/WidgetLayerView.hpp>
7 #include <Process/WidgetLayer/WidgetProcessFactory.hpp>
9 #include <Pd/PdInstance.hpp>
10 #include <Pd/PdMetadata.hpp>
12 #include <score/model/Identifier.hpp>
13 #include <score/selection/Selection.hpp>
14 #include <score/serialization/VisitorInterface.hpp>
16 #include <ossia/network/dataspace/dataspace.hpp>
17 #include <ossia/network/domain/domain.hpp>
21 const QString& locatePdBinary() noexcept;
32 ossia::value defaultv;
34 std::optional<ossia::val_type> deduced_type;
36 std::vector<Control> receives, sends;
41 SCORE_SERIALIZE_FRIENDS
48 const TimeVal& duration,
const QString& pdpatch,
51 template <
typename Impl>
59 bool hasExternalUI()
const noexcept;
62 const QString& script()
const;
66 const PatchSpec& patchSpec()
const noexcept {
return m_spec; }
67 int audioInputs()
const;
68 int audioOutputs()
const;
69 bool midiInput()
const;
70 bool midiOutput()
const;
72 void setAudioInputs(
int audioInputs);
73 void setAudioOutputs(
int audioOutputs);
74 void setMidiInput(
bool midiInput);
75 void setMidiOutput(
bool midiOutput);
77 void scriptChanged(QString v) W_SIGNAL(scriptChanged, v);
78 void programChanged() W_SIGNAL(programChanged);
79 void audioInputsChanged(
int v) W_SIGNAL(audioInputsChanged, v);
80 void audioOutputsChanged(
int v) W_SIGNAL(audioOutputsChanged, v);
81 void midiInputChanged(
bool v) W_SIGNAL(midiInputChanged, v);
82 void midiOutputChanged(
bool v) W_SIGNAL(midiOutputChanged, v);
85 int, audioInputs READ audioInputs WRITE setAudioInputs NOTIFY audioInputsChanged)
88 audioOutputs READ audioOutputs WRITE setAudioOutputs NOTIFY audioOutputsChanged)
89 W_PROPERTY(
bool, midiInput READ midiInput WRITE setMidiInput NOTIFY midiInputChanged)
91 bool, midiOutput READ midiOutput WRITE setMidiOutput NOTIFY midiOutputChanged)
93 PROPERTY(QString, script READ script WRITE setScript NOTIFY scriptChanged)
94 std::shared_ptr<Instance> m_instance;
97 QString effect()
const noexcept
override;
103 int m_audioInputs{0};
104 int m_audioOutputs{0};
Definition: PdProcess.hpp:40
The Process class.
Definition: score-lib-process/Process/Process.hpp:61
The id_base_t class.
Definition: Identifier.hpp:57
Definition: PdProcess.hpp:26
Definition: PdProcess.hpp:24
Definition: Preset.hpp:32
Definition: ScriptProcess.hpp:14
Definition: TimeValue.hpp:21