UI tweaks done. Code tweaks now
This commit is contained in:
@@ -27,6 +27,10 @@ namespace VISEQ::GRAPH::NODES {
|
|||||||
MIDI::MidiAftertouch midiAftertouch;
|
MIDI::MidiAftertouch midiAftertouch;
|
||||||
MIDI::MidiPolyPressure midiPolyPressure;
|
MIDI::MidiPolyPressure midiPolyPressure;
|
||||||
|
|
||||||
|
enum Handles {NOTE = 0, CC, PC, PB, AT, PP};
|
||||||
|
|
||||||
|
std::map<Handles, std::vector<std::shared_ptr<NodeHandle<int>>>> midiHandles;
|
||||||
|
|
||||||
std::vector<std::shared_ptr<NodeHandle<int>>> midiNoteHandles;
|
std::vector<std::shared_ptr<NodeHandle<int>>> midiNoteHandles;
|
||||||
std::vector<std::shared_ptr<NodeHandle<int>>> midiCCHandles;
|
std::vector<std::shared_ptr<NodeHandle<int>>> midiCCHandles;
|
||||||
std::vector<std::shared_ptr<NodeHandle<int>>> midiPCHandles;
|
std::vector<std::shared_ptr<NodeHandle<int>>> midiPCHandles;
|
||||||
@@ -75,6 +79,8 @@ namespace VISEQ::GRAPH::NODES {
|
|||||||
float orbit_4 = orbit_3 + 20.0f;
|
float orbit_4 = orbit_3 + 20.0f;
|
||||||
float orbit_5 = orbit_4 + 30.0f;
|
float orbit_5 = orbit_4 + 30.0f;
|
||||||
|
|
||||||
|
//midiHandles[NOTE].emplace_back(std::make_shared<NodeHandle<int>>(midiNote.note, position, VS_COLOR_GREEN, "NOTE", orbit_5, 12));
|
||||||
|
|
||||||
midiNoteHandles.emplace_back(std::make_shared<NodeHandle<int>>(midiNote.note, position, VS_COLOR_GREEN, "NOTE", orbit_5, 12));
|
midiNoteHandles.emplace_back(std::make_shared<NodeHandle<int>>(midiNote.note, position, VS_COLOR_GREEN, "NOTE", orbit_5, 12));
|
||||||
midiNoteHandles.emplace_back(std::make_shared<NodeHandle<int>>(midiNote.channel, position, VS_COLOR_PINK, "CHANNEL", orbit_1, 16, 1, 16, 40, 150));
|
midiNoteHandles.emplace_back(std::make_shared<NodeHandle<int>>(midiNote.channel, position, VS_COLOR_PINK, "CHANNEL", orbit_1, 16, 1, 16, 40, 150));
|
||||||
midiNoteHandles.emplace_back(std::make_shared<NodeHandle<int>>(midiNote.gate, position, VS_COLOR_RED, "GATE", orbit_3, 30, 10, 30000, 40, 300));
|
midiNoteHandles.emplace_back(std::make_shared<NodeHandle<int>>(midiNote.gate, position, VS_COLOR_RED, "GATE", orbit_3, 30, 10, 30000, 40, 300));
|
||||||
|
|||||||
+4
-1
@@ -141,7 +141,10 @@ namespace VISEQ::GRAPH::NODES{
|
|||||||
DrawLineV(pos, pos1, dynGrey);
|
DrawLineV(pos, pos1, dynGrey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DrawCircleLinesV(parentPosition, (parentPosition + position).dist(parentPosition), dynGrey);
|
//DrawCircleLinesV(parentPosition, (parentPosition + position).dist(parentPosition), dynGrey);
|
||||||
|
float r = (parentPosition + position).dist(parentPosition);
|
||||||
|
DrawRing(parentPosition, r - 5, r + 5, 0, 360, 90, ColorAlpha(dyncol, 0.1));
|
||||||
|
DrawRing(parentPosition, r - 5, r + 5, -90, angle_g - 90, 90, ColorAlpha(dyncol, 0.3));
|
||||||
DrawCircleV(position + parentPosition, radius, dyncol);
|
DrawCircleV(position + parentPosition, radius, dyncol);
|
||||||
VISEQ::HELPER::DrawSuperText(std::format("{}", assignedValueRef), position + parentPosition, position + parentPosition + Vec2Df(50,0), 1, 0, 8, dyncol);
|
VISEQ::HELPER::DrawSuperText(std::format("{}", assignedValueRef), position + parentPosition, position + parentPosition + Vec2Df(50,0), 1, 0, 8, dyncol);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user