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
242 Usz channel = index_of(channel_g);242 Usz channel = index_of(channel_g);
243 if (channel > 15)243 if (channel > 15)
244 return;244 return;
245 PORT(0, 0, OUT);
245 Oevent_midi_cc *oe =246 Oevent_midi_cc *oe =
246 (Oevent_midi_cc *)oevent_list_alloc_item(extra_params->oevent_list);247 (Oevent_midi_cc *)oevent_list_alloc_item(extra_params->oevent_list);
247 oe->oevent_type = Oevent_type_midi_cc;248 oe->oevent_type = Oevent_type_midi_cc;
@@ -305,6 +306,7 @@ BEGIN_OPERATOR(midi) · 57 unmodified lines
305 if (vel_num > 127)306 if (vel_num > 127)
306 vel_num = 127;307 vel_num = 127;
307 }308 }
309 PORT(0, 0, OUT);
308 Oevent_midi_note *oe =310 Oevent_midi_note *oe =
309 (Oevent_midi_note *)oevent_list_alloc_item(extra_params->oevent_list);311 (Oevent_midi_note *)oevent_list_alloc_item(extra_params->oevent_list);
310 oe->oevent_type = (U8)Oevent_type_midi_note;312 oe->oevent_type = (U8)Oevent_type_midi_note;
@@ -335,6 +337,7 @@ BEGIN_OPERATOR(udp) · 24 unmodified lines
335 }337 }
336 n = i;338 n = i;
337 STOP_IF_NOT_BANGED;339 STOP_IF_NOT_BANGED;
340 PORT(0, 0, OUT);
338 Oevent_udp_string *oe =341 Oevent_udp_string *oe =
339 (Oevent_udp_string *)oevent_list_alloc_item(extra_params->oevent_list);342 (Oevent_udp_string *)oevent_list_alloc_item(extra_params->oevent_list);
340 oe->oevent_type = (U8)Oevent_type_udp_string;343 oe->oevent_type = (U8)Oevent_type_udp_string;
@@ -356,6 +359,7 @@ BEGIN_OPERATOR(osc) · 15 unmodified lines
356 STOP_IF_NOT_BANGED;359 STOP_IF_NOT_BANGED;
357 Glyph g = PEEK(0, 1);360 Glyph g = PEEK(0, 1);
358 if (g != '.') {361 if (g != '.') {
362 PORT(0, 0, OUT);
359 U8 buff[Oevent_osc_int_count];363 U8 buff[Oevent_osc_int_count];
360 for (Usz i = 0; i < len; ++i) {364 for (Usz i = 0; i < len; ++i) {
361 buff[i] = (U8)index_of(PEEK(0, (Isz)i + 3));365 buff[i] = (U8)index_of(PEEK(0, (Isz)i + 3));
@@ -384,6 +388,7 @@ BEGIN_OPERATOR(midipb) · 22 unmodified lines
384 Usz channel = index_of(channel_g);388 Usz channel = index_of(channel_g);
385 if (channel > 15)389 if (channel > 15)
386 return;390 return;
391 PORT(0, 0, OUT);
387 Oevent_midi_pb *oe =392 Oevent_midi_pb *oe =
388 (Oevent_midi_pb *)oevent_list_alloc_item(extra_params->oevent_list);393 (Oevent_midi_pb *)oevent_list_alloc_item(extra_params->oevent_list);
389 oe->oevent_type = Oevent_type_midi_pb;394 oe->oevent_type = Oevent_type_midi_pb;
@@ -474,7 +479,7 @@ END_OPERATOR · 84 unmodified lines
474 479
475BEGIN_OPERATOR(halt)480BEGIN_OPERATOR(halt)
476 LOWERCASE_REQUIRES_BANG;481 LOWERCASE_REQUIRES_BANG;
477 PORT(1, 0, OUT);482 PORT(1, 0, IN | PARAM);
478END_OPERATOR483END_OPERATOR
479 484
480BEGIN_OPERATOR(increment)485BEGIN_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