mirror of
https://github.com/AquaMorph/Droplets.git
synced 2025-04-29 17:35:33 +00:00
Display selected sequence input
This commit is contained in:
parent
e46e0f0265
commit
017e4f4b61
@ -47,6 +47,14 @@ void SequencerDroplet::Process(AudioHandle::InputBuffer in,
|
||||
void SequencerDroplet::Draw() {
|
||||
int left_padding = 4+GetScreenMin();
|
||||
|
||||
// Active Input
|
||||
DrawSolidRect(Patch(),
|
||||
GetScreenMin(),
|
||||
8+selected*8,
|
||||
GetScreenMin()+2,
|
||||
15+selected*8, true);
|
||||
|
||||
// Notes
|
||||
for (int i = 0; i < num_columns*NUM_ROWS && i < sequence_length; i++) {
|
||||
WriteString(Patch(),
|
||||
GetScreenWidth()/num_columns*(i%num_columns)+left_padding,
|
||||
|
@ -10,8 +10,8 @@
|
||||
#include "../util.h"
|
||||
|
||||
#define MAX_SEQUENCE_LENGTH 32
|
||||
#define CONTROL_DEADZONE 0.003f
|
||||
#define CONTROL_RATE_LIMIT 20
|
||||
#define CONTROL_DEADZONE 0.00499f
|
||||
#define CONTROL_RATE_LIMIT 25
|
||||
#define NUM_ROWS 6
|
||||
|
||||
class SequencerDroplet: public Droplet {
|
||||
|
Loading…
x
Reference in New Issue
Block a user