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 
10 namespace Pd
11 {
12 class 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 
17 public:
19 };
20 
21 class SetAudioIns final : public score::PropertyCommand
22 {
23  SCORE_COMMAND_DECL(Pd::CommandFactoryName(), SetAudioIns, "Set audio ins")
24 public:
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")
33 public:
34  SetAudioOuts(const ProcessModel& path, int newval)
35  : score::PropertyCommand{std::move(path), "audioOutputs", newval}
36  {
37  }
38 };
39 class SetMidiIn final : public score::PropertyCommand
40 {
41  SCORE_COMMAND_DECL(Pd::CommandFactoryName(), SetMidiIn, "Set midi in")
42 public:
43  SetMidiIn(const ProcessModel& path, bool newval)
44  : score::PropertyCommand{std::move(path), "midiInputs", newval}
45  {
46  }
47 };
48 class SetMidiOut final : public score::PropertyCommand
49 {
50  SCORE_COMMAND_DECL(Pd::CommandFactoryName(), SetMidiOut, "Set midi out")
51 public:
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:23
The PropertyCommand class.
Definition: PropertyCommand.hpp:21