Vector UI on its way!

This commit is contained in:
Sebastian
2024-12-15 01:47:53 +01:00
parent b2ed35a704
commit 96c2bde0e1
4 changed files with 213 additions and 40 deletions
+4 -4
View File
@@ -94,10 +94,10 @@ namespace VISEQ::MIDI{
inline MidiNote operator+(const MidiNote left, const MidiNote right){
MidiNote added;
added.note = left.note + right.note;
added.channel = left.channel + right.channel;
added.gate = left.gate + right.gate;
added.velocity = left.velocity + right.velocity;
added.note = std::clamp(left.note + right.note, 0, 127);
added.channel = std::clamp(left.channel + right.channel, 0, 15);
added.gate = std::max(left.gate + right.gate, 0);
added.velocity = std::clamp(left.velocity + right.velocity, 0, 127);
return added;
}