2 #include <Process/TimeValue.hpp>
3 #include <Process/TimeValueSerialization.hpp>
5 #include <Scenario/Commands/ScenarioCommandFactory.hpp>
6 #include <Scenario/Document/Interval/IntervalModel.hpp>
8 #include <score/command/Command.hpp>
9 #include <score/command/PropertyCommand.hpp>
10 #include <score/model/path/Path.hpp>
11 #include <score/model/path/PathSerialization.hpp>
12 #include <score/serialization/MapSerialization.hpp>
20 SCORE_COMMAND_DECL(CommandFactoryName(),
SetTimeSignatures,
"Set time signatures")
24 , m_oldVal{cst.timeSignatureMap()}
25 , m_newVal{std::move(newval)}
31 m_newVal = std::move(newval);
36 m_path.find(ctx).setTimeSignatureMap(m_oldVal);
41 m_path.find(ctx).setTimeSignatureMap(m_newVal);
47 s << m_path << m_oldVal << m_newVal;
51 s >> m_path >> m_oldVal >> m_newVal;
66 Scenario::Command, SetHasTimeSignature, IntervalModel::p_timeSignature,
67 "Change time signature")
68 SCORE_COMMAND_DECL_T(
Scenario::Command::SetHasTimeSignature)
71 Scenario::Command, SetIntervalQuantizationRate, IntervalModel::p_quantizationRate,
72 "Set quantization rate")
73 SCORE_COMMAND_DECL_T(
Scenario::Command::SetIntervalQuantizationRate)
The Path class is a typesafe wrapper around ObjectPath.
Definition: Path.hpp:52
Definition: SignatureCommands.hpp:19
Definition: IntervalModel.hpp:50
The Command class.
Definition: Command.hpp:34
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: DataStreamHelpers.hpp:103
Definition: TimeSignatureMap.hpp:26
Definition: DocumentContext.hpp:18