-
Notifications
You must be signed in to change notification settings - Fork 0
/
comport-test.pd
106 lines (106 loc) · 3.04 KB
/
comport-test.pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#N canvas 224 57 949 607 10;
#X floatatom 441 233 10 0 0 1 baud - -;
#X floatatom 581 337 3 0 0 3 parity - -;
#X floatatom 606 337 3 0 0 2 stop - -;
#X floatatom 631 336 3 0 0 3 data - -;
#X floatatom 707 231 3 0 0 0 port - -;
#X obj 655 275 tgl 15 0 empty empty rts/cts -10 20 1 11 -24198 -258699
-1 0 1;
#X obj 681 291 tgl 15 0 empty empty xon/xoff -14 20 1 11 -24198 -258699
-1 0 1;
#X text 445 269 serial packet format:;
#X text 596 259 handshaking:;
#X text 403 301 flow control inputs:;
#X obj 531 301 tgl 15 0 empty empty dsr 0 20 1 11 -24198 -258699 -1
0 1;
#X obj 556 301 tgl 15 0 empty empty cts 0 20 1 11 -24198 -258699 -1
0 1;
#X obj 732 232 tgl 15 0 empty empty open -6 20 1 11 -24198 -258699
-1 0 1;
#X obj 757 266 print port_list;
#X obj 871 222 print other;
#X obj 782 229 tgl 15 0 empty empty hupcl -6 20 1 11 -24198 -258699
-1 1 1;
#X floatatom 807 242 10 0 0 1 rxerrors - -;
#X obj 506 192 route baud dsr cts parity stop data rtscts xonxoff port
open ports hupcl rxerrors;
#X obj 338 141 r comctl;
#X text 322 120 receives comctl message;
#X obj 1 217 s comctl;
#X msg 16 123 devices;
#X msg 17 164 ports;
#X text 71 124 prints available devices;
#X text 62 165 prints available ports;
#X text 2 234 sends comctl message;
#X obj 338 170 comport 5 31250;
#X msg 283 47 info;
#X msg 284 76 help;
#X text 322 78 comment;
#X text 292 221 serial data in (MIDI);
#X msg 14 50 open 5;
#X msg 15 78 close;
#X text 60 50 open COM5;
#X text 57 76 close COM port communication;
#X obj 77 324 >=;
#X obj 130 324 <=;
#X msg 101 296 176;
#X msg 166 294 191;
#X obj 281 316 >=;
#X obj 327 317 <=;
#X floatatom 34 349 5 0 0 0 - - -;
#X floatatom 153 349 5 0 0 0 - - -;
#X floatatom 256 341 5 0 0 0 - - -;
#X floatatom 348 343 5 0 0 0 - - -;
#X msg 299 290 144;
#X msg 347 289 159;
#X obj 301 343 &&;
#X obj 103 349 &&;
#X text -7 391 CONTROLLER if first byte is 176-191 (0xB0 to 0xBF) \;
expect total of 3 bytes - (Controller channel # \, Controller # \,
Value 0-127);
#X text 367 384 NOTE if first byte is 144-159 (0x90 to 0x9F) \; expect
total of 3 bytes - (Note channel # \, Note Value \, Velocity);
#X floatatom 120 374 5 0 0 0 - - -;
#X floatatom 325 370 5 0 0 0 - - -;
#X floatatom 358 200 5 0 0 0 - - -;
#X connect 17 0 0 0;
#X connect 17 1 10 0;
#X connect 17 2 11 0;
#X connect 17 3 1 0;
#X connect 17 4 2 0;
#X connect 17 5 3 0;
#X connect 17 6 5 0;
#X connect 17 7 6 0;
#X connect 17 8 4 0;
#X connect 17 9 12 0;
#X connect 17 10 13 0;
#X connect 17 11 15 0;
#X connect 17 12 16 0;
#X connect 17 13 14 0;
#X connect 18 0 26 0;
#X connect 21 0 20 0;
#X connect 22 0 20 0;
#X connect 26 0 36 0;
#X connect 26 0 35 0;
#X connect 26 0 40 0;
#X connect 26 0 39 0;
#X connect 26 0 53 0;
#X connect 26 1 17 0;
#X connect 27 0 26 0;
#X connect 28 0 26 0;
#X connect 31 0 20 0;
#X connect 32 0 20 0;
#X connect 35 0 41 0;
#X connect 35 0 48 0;
#X connect 36 0 42 0;
#X connect 36 0 48 1;
#X connect 37 0 35 1;
#X connect 38 0 36 1;
#X connect 39 0 43 0;
#X connect 39 0 47 0;
#X connect 40 0 44 0;
#X connect 40 0 47 1;
#X connect 45 0 39 1;
#X connect 46 0 40 1;
#X connect 47 0 52 0;
#X connect 48 0 51 0;