mirror of
https://github.com/AquaMorph/Droplets.git
synced 2025-04-29 17:35:33 +00:00
Display sequencer length
This commit is contained in:
parent
f7b2552773
commit
9bb4e8d1e8
@ -77,7 +77,16 @@ void SequencerDroplet::Draw() {
|
|||||||
|
|
||||||
// Draw info bar
|
// Draw info bar
|
||||||
DrawSolidRect(Patch(),GetScreenMin(),56,GetScreenMax(),63, InMenu());
|
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");
|
DrawName("Sequencer");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ private:
|
|||||||
float sequence[MAX_SEQUENCE_LENGTH] = { 0.0f };
|
float sequence[MAX_SEQUENCE_LENGTH] = { 0.0f };
|
||||||
Parameter control[4];
|
Parameter control[4];
|
||||||
float last_control_value[4] = { 0.0f };
|
float last_control_value[4] = { 0.0f };
|
||||||
|
std::string length_text = "";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set the sequencer to the next step.
|
* Set the sequencer to the next step.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user