diff --git a/src/droplets/sequencer_droplet.cpp b/src/droplets/sequencer_droplet.cpp index e2ff08c..98e0a67 100644 --- a/src/droplets/sequencer_droplet.cpp +++ b/src/droplets/sequencer_droplet.cpp @@ -77,7 +77,16 @@ void SequencerDroplet::Draw() { // Draw info bar DrawSolidRect(Patch(),GetScreenMin(),56,GetScreenMax(),63, InMenu()); - WriteString(Patch(), 2+GetScreenMin(), 56, std::to_string(step+1), !InMenu()); + length_text = std::to_string(step+1); + if (sequence_length >= 10) { + length_text.insert(length_text.begin(), 2 - length_text.length(), '0'); + } + length_text.append("/"+std::to_string(sequence_length)); + WriteString(Patch(), + 2+GetScreenMin(), + 56, + length_text, + !InMenu()); DrawName("Sequencer"); } diff --git a/src/droplets/sequencer_droplet.h b/src/droplets/sequencer_droplet.h index 6406d49..ae027d0 100644 --- a/src/droplets/sequencer_droplet.h +++ b/src/droplets/sequencer_droplet.h @@ -25,6 +25,7 @@ private: float sequence[MAX_SEQUENCE_LENGTH] = { 0.0f }; Parameter control[4]; float last_control_value[4] = { 0.0f }; + std::string length_text = ""; /* * Set the sequencer to the next step.