Loading...
Searching...
No Matches
EditPd.hpp
1#pragma once
2#include <Scenario/Commands/ScriptEditCommand.hpp>
3
4#include <Pd/Commands/PdCommandFactory.hpp>
5#include <Pd/PdProcess.hpp>
6
7#include <score/command/PropertyCommand.hpp>
8#include <score/model/path/Path.hpp>
9
10namespace Pd
11{
12class EditPdPath final
13 : public Scenario::EditScript<Pd::ProcessModel, Pd::ProcessModel::p_script>
14{
15 SCORE_COMMAND_DECL(Pd::CommandFactoryName(), EditPdPath, "Edit path to Pd file")
16
17public:
18 using Scenario::EditScript<Pd::ProcessModel, Pd::ProcessModel::p_script>::EditScript;
19};
20
22{
23 SCORE_COMMAND_DECL(Pd::CommandFactoryName(), SetAudioIns, "Set audio ins")
24public:
25 SetAudioIns(const ProcessModel& path, int newval)
26 : score::PropertyCommand{std::move(path), "audioInputs", newval}
27 {
28 }
29};
31{
32 SCORE_COMMAND_DECL(Pd::CommandFactoryName(), SetAudioOuts, "Set audio outs")
33public:
34 SetAudioOuts(const ProcessModel& path, int newval)
35 : score::PropertyCommand{std::move(path), "audioOutputs", newval}
36 {
37 }
38};
40{
41 SCORE_COMMAND_DECL(Pd::CommandFactoryName(), SetMidiIn, "Set midi in")
42public:
43 SetMidiIn(const ProcessModel& path, bool newval)
44 : score::PropertyCommand{std::move(path), "midiInputs", newval}
45 {
46 }
47};
49{
50 SCORE_COMMAND_DECL(Pd::CommandFactoryName(), SetMidiOut, "Set midi out")
51public:
52 SetMidiOut(const ProcessModel& path, bool newval)
53 : score::PropertyCommand{std::move(path), "midiOutputs", newval}
54 {
55 }
56};
57}
Definition EditPd.hpp:14
Definition PdProcess.hpp:40
Definition EditPd.hpp:22
Definition EditPd.hpp:31
Definition EditPd.hpp:40
Definition EditPd.hpp:49
Definition ScriptEditCommand.hpp:18
The PropertyCommand class.
Definition PropertyCommand.hpp:21