38 SCORE_SERIALIZE_FRIENDS
44 static constexpr int maxSequences = 64;
45 static constexpr int maxSteps = 256;
52 template <
typename Impl>
53 explicit Model(Impl& vis, QObject* parent)
62 std::unique_ptr<Process::ControlInlet> sequenceSelect;
63 std::unique_ptr<Process::ControlInlet> switchQuantification;
64 std::unique_ptr<Process::ControlInlet> stepDuration;
65 std::unique_ptr<Process::Outlet> outlet;
68 int stepCount()
const;
70 const ossia::float_vector& steps()
const;
71 const std::vector<ossia::float_vector>& sequences()
const noexcept;
72 int currentSequence()
const noexcept;
77 void stepCountChanged(
int arg_1) W_SIGNAL(stepCountChanged, arg_1);
80 void currentSequenceChanged(
int arg_1) W_SIGNAL(currentSequenceChanged, arg_1);
81 void minChanged(
double arg_1) W_SIGNAL(minChanged, arg_1);
82 void maxChanged(
double arg_1) W_SIGNAL(maxChanged, arg_1);
85 void execPosition(
int arg_1) W_SIGNAL(execPosition, arg_1);
89 void setStepCount(
int s);
92 void setSteps(ossia::float_vector v);
94 void setSequenceSteps(
int sequence, ossia::float_vector v);
95 void setSequences(
std::vector<ossia::float_vector> v);
98 void setCurrentSequence(
int n);
99 void setMin(
double v);
101 void setMax(
double v);
105 std::vector<ossia::float_vector> m_sequences;
106 int m_currentSequence{};
107 double m_min{}, m_max{};
109 W_PROPERTY(
double, max READ max WRITE setMax NOTIFY maxChanged)
111 W_PROPERTY(
double, min READ min WRITE setMin NOTIFY minChanged)
113 W_PROPERTY(
int, stepCount READ stepCount WRITE setStepCount NOTIFY stepCountChanged)