History

tweaks to H and osc/udp/midi operators visualization

Highlights all the output message operators when banged. The H operator shouldn't have an output port but a right-side-locked port type, and has been modified.

Nicola Pisanti committed 5 years ago

Commit ea6241e1 parent 5727f041 file · +6 −1Browse files

Unified · Split

sim.c+6−1
@@ -242,6 +242,7 @@ BEGIN_OPERATOR(midicc) · 241 unmodified lines
242242 Usz channel = index_of(channel_g);
243243 if (channel > 15)
244244 return;
245+ PORT(0, 0, OUT);
245246 Oevent_midi_cc *oe =
246247 (Oevent_midi_cc *)oevent_list_alloc_item(extra_params->oevent_list);
247248 oe->oevent_type = Oevent_type_midi_cc;
@@ -305,6 +306,7 @@ BEGIN_OPERATOR(midi) · 57 unmodified lines
305306 if (vel_num > 127)
306307 vel_num = 127;
307308 }
309+ PORT(0, 0, OUT);
308310 Oevent_midi_note *oe =
309311 (Oevent_midi_note *)oevent_list_alloc_item(extra_params->oevent_list);
310312 oe->oevent_type = (U8)Oevent_type_midi_note;
@@ -335,6 +337,7 @@ BEGIN_OPERATOR(udp) · 24 unmodified lines
335337 }
336338 n = i;
337339 STOP_IF_NOT_BANGED;
340+ PORT(0, 0, OUT);
338341 Oevent_udp_string *oe =
339342 (Oevent_udp_string *)oevent_list_alloc_item(extra_params->oevent_list);
340343 oe->oevent_type = (U8)Oevent_type_udp_string;
@@ -356,6 +359,7 @@ BEGIN_OPERATOR(osc) · 15 unmodified lines
356359 STOP_IF_NOT_BANGED;
357360 Glyph g = PEEK(0, 1);
358361 if (g != '.') {
362+ PORT(0, 0, OUT);
359363 U8 buff[Oevent_osc_int_count];
360364 for (Usz i = 0; i < len; ++i) {
361365 buff[i] = (U8)index_of(PEEK(0, (Isz)i + 3));
@@ -384,6 +388,7 @@ BEGIN_OPERATOR(midipb) · 22 unmodified lines
384388 Usz channel = index_of(channel_g);
385389 if (channel > 15)
386390 return;
391+ PORT(0, 0, OUT);
387392 Oevent_midi_pb *oe =
388393 (Oevent_midi_pb *)oevent_list_alloc_item(extra_params->oevent_list);
389394 oe->oevent_type = Oevent_type_midi_pb;
@@ -474,7 +479,7 @@ END_OPERATOR · 84 unmodified lines
474479
475480 BEGIN_OPERATOR(halt)
476481 LOWERCASE_REQUIRES_BANG;
477− PORT(1, 0, OUT);
482+ PORT(1, 0, IN | PARAM);
478483 END_OPERATOR
479484
480485 BEGIN_OPERATOR(increment)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t