diff --git a/src/midi-node.h b/src/midi-node.h index 3a49c9a..3038907 100644 --- a/src/midi-node.h +++ b/src/midi-node.h @@ -27,6 +27,10 @@ namespace VISEQ::GRAPH::NODES { MIDI::MidiAftertouch midiAftertouch; MIDI::MidiPolyPressure midiPolyPressure; + enum Handles {NOTE = 0, CC, PC, PB, AT, PP}; + + std::map>>> midiHandles; + std::vector>> midiNoteHandles; std::vector>> midiCCHandles; std::vector>> midiPCHandles; @@ -75,6 +79,8 @@ namespace VISEQ::GRAPH::NODES { float orbit_4 = orbit_3 + 20.0f; float orbit_5 = orbit_4 + 30.0f; + //midiHandles[NOTE].emplace_back(std::make_shared>(midiNote.note, position, VS_COLOR_GREEN, "NOTE", orbit_5, 12)); + midiNoteHandles.emplace_back(std::make_shared>(midiNote.note, position, VS_COLOR_GREEN, "NOTE", orbit_5, 12)); midiNoteHandles.emplace_back(std::make_shared>(midiNote.channel, position, VS_COLOR_PINK, "CHANNEL", orbit_1, 16, 1, 16, 40, 150)); midiNoteHandles.emplace_back(std::make_shared>(midiNote.gate, position, VS_COLOR_RED, "GATE", orbit_3, 30, 10, 30000, 40, 300)); diff --git a/src/node-handle.h b/src/node-handle.h index 6c03394..4f03eb0 100644 --- a/src/node-handle.h +++ b/src/node-handle.h @@ -141,7 +141,10 @@ namespace VISEQ::GRAPH::NODES{ 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); VISEQ::HELPER::DrawSuperText(std::format("{}", assignedValueRef), position + parentPosition, position + parentPosition + Vec2Df(50,0), 1, 0, 8, dyncol);