mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
expose step sequencer's step's index
This commit is contained in:
parent
60f3985957
commit
a9c2e2f7e5
2 changed files with 4 additions and 2 deletions
|
|
@ -62,6 +62,8 @@ class Step : public PBD::Stateful {
|
||||||
Step (StepSequence&, size_t n, Temporal::Beats const & beat, int notenum);
|
Step (StepSequence&, size_t n, Temporal::Beats const & beat, int notenum);
|
||||||
~Step ();
|
~Step ();
|
||||||
|
|
||||||
|
size_t index() const { return _index; }
|
||||||
|
|
||||||
void set_note (double note, double velocity = 0.5, int n = 0);
|
void set_note (double note, double velocity = 0.5, int n = 0);
|
||||||
void set_chord (size_t note_cnt, double* notes);
|
void set_chord (size_t note_cnt, double* notes);
|
||||||
void set_parameter (int number, double value, int n = 0);
|
void set_parameter (int number, double value, int n = 0);
|
||||||
|
|
@ -114,7 +116,7 @@ class Step : public PBD::Stateful {
|
||||||
friend class StepSequence; /* HACK */
|
friend class StepSequence; /* HACK */
|
||||||
|
|
||||||
StepSequence& _sequence;
|
StepSequence& _sequence;
|
||||||
size_t index;
|
size_t _index;
|
||||||
bool _enabled;
|
bool _enabled;
|
||||||
Temporal::Beats _nominal_beat;
|
Temporal::Beats _nominal_beat;
|
||||||
Temporal::Beats _scheduled_beat;
|
Temporal::Beats _scheduled_beat;
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ using namespace std;
|
||||||
|
|
||||||
Step::Step (StepSequence &s, size_t n, Temporal::Beats const & b, int base_note)
|
Step::Step (StepSequence &s, size_t n, Temporal::Beats const & b, int base_note)
|
||||||
: _sequence (s)
|
: _sequence (s)
|
||||||
, index (n)
|
, _index (n)
|
||||||
, _enabled (true)
|
, _enabled (true)
|
||||||
, _nominal_beat (b)
|
, _nominal_beat (b)
|
||||||
, _skipped (false)
|
, _skipped (false)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue