midi ui experiments
This commit is contained in:
+17
-11
@@ -1,13 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <raylib.h>
|
||||
#include <vector>
|
||||
|
||||
#include "datatypes.h"
|
||||
#include "moveable.h"
|
||||
|
||||
#define R 14.0f
|
||||
|
||||
struct NodeMidiOut{
|
||||
int i;
|
||||
std::string name;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
class Node : public Movable{
|
||||
|
||||
public:
|
||||
@@ -24,21 +30,21 @@ class Node : public Movable{
|
||||
|
||||
int midi_out = -1;
|
||||
|
||||
std::vector<int> midi_outs;
|
||||
std::map<int, NodeMidiOut> midi_outs;
|
||||
|
||||
bool gui_midi_channel_edit = false;
|
||||
bool gui_midi_note_edit = false;
|
||||
bool gui_midi_velocity_edit = false;
|
||||
bool gui_midi_gate_edit = false;
|
||||
|
||||
int midi_channel = 0;
|
||||
int midi_note = 0;
|
||||
int midi_cc = 0;
|
||||
int midi_velocity = 0;
|
||||
int midi_gate = 0;
|
||||
|
||||
Distribution mode = Distribution::ROUNDROBIN;
|
||||
|
||||
void note() {
|
||||
|
||||
}
|
||||
int midi_cc = 0;
|
||||
|
||||
void cc() {
|
||||
|
||||
}
|
||||
Distribution mode = Distribution::ROUNDROBIN;
|
||||
|
||||
void draw(Vec2D<float> *mouse) {
|
||||
if(!hover_move) DrawCircle(position.x, position.y, radius, (Color){180, 210, 115, 255});
|
||||
|
||||
Reference in New Issue
Block a user