Vector UI on its way!
This commit is contained in:
+4
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user