13
0

expose step sequencer's step's index

This commit is contained in:
Paul Davis 2018-11-21 14:04:18 -05:00
parent 60f3985957
commit a9c2e2f7e5
2 changed files with 4 additions and 2 deletions

View File

@ -62,6 +62,8 @@ class Step : public PBD::Stateful {
Step (StepSequence&, size_t n, Temporal::Beats const & beat, int notenum);
~Step ();
size_t index() const { return _index; }
void set_note (double note, double velocity = 0.5, int n = 0);
void set_chord (size_t note_cnt, double* notes);
void set_parameter (int number, double value, int n = 0);
@ -114,7 +116,7 @@ class Step : public PBD::Stateful {
friend class StepSequence; /* HACK */
StepSequence& _sequence;
size_t index;
size_t _index;
bool _enabled;
Temporal::Beats _nominal_beat;
Temporal::Beats _scheduled_beat;

View File

@ -32,7 +32,7 @@ using namespace std;
Step::Step (StepSequence &s, size_t n, Temporal::Beats const & b, int base_note)
: _sequence (s)
, index (n)
, _index (n)
, _enabled (true)
, _nominal_beat (b)
, _skipped (false)