Skip to content

Commit fddd4f8

Browse files
committed
vars fixes
1 parent e2f51a9 commit fddd4f8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/objects/communications/MidiSender.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ void MidiSender::updateObjectContent(map<int,shared_ptr<PatchObject>> &patchObje
100100
for(int i=0;i<128;i++){
101101
midiOut.sendNoteOff(static_cast<int>(floor(*(float *)&_inletParams[1])),i,0);
102102
}
103-
104103
}
105104

106105
lastNote = *(float *)&_inletParams[2];
@@ -163,7 +162,7 @@ void MidiSender::drawObjectNodeGui( ImGuiEx::NodeCanvas& _nodeCanvas ){
163162
ImGui::PopStyleColor(1);
164163
ImGui::Spacing();
165164
ImGui::Text("Channel\nNote\nVelocity"); ImGui::SameLine();
166-
ImGui::Text("%i\n%i\n%i",static_cast<int>(floor(*(float *)&_outletParams[1])),static_cast<int>(floor(*(float *)&_outletParams[2])),static_cast<int>(floor(*(float *)&_outletParams[3])));
165+
ImGui::Text("%i\n%i\n%i",static_cast<int>(floor(*(float *)&_inletParams[1])),static_cast<int>(floor(*(float *)&_inletParams[2])),static_cast<int>(floor(*(float *)&_inletParams[3])));
167166
}
168167

169168
_nodeCanvas.EndNodeContent();
@@ -192,7 +191,7 @@ void MidiSender::drawObjectNodeConfig(){
192191

193192

194193
ImGuiEx::ObjectInfo(
195-
"Send data to a physical midi interface",
194+
"Send data to a physical ( or virtual ) midi interface",
196195
"https://mosaic.d3cod3.org/reference.php?r=midi-sender", scaleFactor);
197196
}
198197

0 commit comments

Comments
 (0)