From d8ece068b20a2384ae1699a83e0cdd638c28b0c0 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes Date: Thu, 3 Mar 2011 19:17:18 +0000 Subject: added META subpatch svn path=/trunk/externals/mrpeach/; revision=15007 --- slipenc/slipenc-help.pd | 187 +++++++++++++++++++++++++----------------------- 1 file changed, 99 insertions(+), 88 deletions(-) (limited to 'slipenc/slipenc-help.pd') diff --git a/slipenc/slipenc-help.pd b/slipenc/slipenc-help.pd index bedde1d..7e570ac 100644 --- a/slipenc/slipenc-help.pd +++ b/slipenc/slipenc-help.pd @@ -1,88 +1,99 @@ -#N canvas 442 278 855 568 10; -#X obj -98 77 packOSC; -#X msg -98 52 /test 1 2 3 192 218 219 220 221 222; -#X floatatom -72 99 5 0 0 0 - - -; -#X text -99 3 [slipenc]: Encode a list of bytes using Serial Line Internet -Protocol (SLIP); -#X obj -71 246 print encoded; -#X obj -71 163 print original; -#X obj 8 381 print decoded; -#X obj -98 141 t a a; -#X obj -98 224 t a a; -#X msg 124 60 /test/pi 3.14159; -#X msg 233 60 /test/pi \$1; -#X obj 233 40 expr 4*atan(1); -#X obj 233 22 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -86277 --1; -#X obj -98 448 unpackOSC; -#X obj -98 364 t a a; -#X obj -98 469 routeOSC /test; -#X obj -92 492 print test; -#X obj -17 492 print other; -#X obj -98 515 routeOSC /pi; -#X floatatom -98 537 12 0 0 0 - - -; -#X text -16 190 Encodes a list of bytes for transmission through a -serial link using SLIP (RFC 1055). Useful for sending OSC through [comport]. -; -#X msg -52 124 192 192 192 192 192; -#X obj -104 322 cnv 15 60 30 empty empty empty 20 12 0 14 -4034 -66577 -0; -#X obj -103 186 cnv 15 60 30 empty empty empty 20 12 0 14 -4034 -66577 -0; -#X msg 27 174 1 2 3 4; -#X text 340 77 The motivation behind SLIP is the need to determine -the boundaries of a packet when it is received one byte at a time \, -as with a serial channel. Bytes are integers between 0 and 255; -#X msg 79 124 1 2 3 4 5 6; -#X msg 160 124 1.1 2.22 3 4 5 6; -#X text -37 98 single floats will pass through as single packets; -#X msg -76 290 verbosity \$1; -#X obj -76 271 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X text 340 134 SLIP (RFC 1055) is a simple encoding that prefixes -each packet with 192 \, and replaces 192s inside the packet with 219 -followed by 220 Any 219 will be replaced with 219 and 221 The packet -ends with 192; -#X obj -71 383 list split 1; -#X obj -71 404 == 47; -#X obj -98 425 spigot; -#X text -35 403 select OSC messages based on the leading '/'; -#X obj -59 358 print valid; -#X text 56 234 Note that the SLIP specification limits the maximum -packet size to 1006...; -#X obj -98 191 slipenc; -#X obj -98 329 slipdec; -#X text 31 530 Author: Martin Peach \, 2010/10/01; -#X text 57 262 ...but a float argument to slipenc will set another -maximum packet size; -#X connect 0 0 7 0; -#X connect 1 0 0 0; -#X connect 2 0 7 0; -#X connect 7 0 38 0; -#X connect 7 1 5 0; -#X connect 8 0 39 0; -#X connect 8 1 4 0; -#X connect 9 0 0 0; -#X connect 10 0 0 0; -#X connect 11 0 10 0; -#X connect 12 0 11 0; -#X connect 13 0 15 0; -#X connect 14 0 34 0; -#X connect 14 1 6 0; -#X connect 14 1 32 0; -#X connect 15 0 16 0; -#X connect 15 0 18 0; -#X connect 15 1 17 0; -#X connect 18 0 19 0; -#X connect 21 0 7 0; -#X connect 24 0 38 0; -#X connect 26 0 7 0; -#X connect 27 0 7 0; -#X connect 29 0 39 0; -#X connect 30 0 29 0; -#X connect 32 0 33 0; -#X connect 33 0 34 1; -#X connect 34 0 13 0; -#X connect 38 0 8 0; -#X connect 39 0 14 0; -#X connect 39 1 36 0; +#N canvas 1 53 855 568 10; +#X obj -98 77 packOSC; +#X msg -98 52 /test 1 2 3 192 218 219 220 221 222; +#X floatatom -72 99 5 0 0 0 - - -; +#X text -99 3 [slipenc]: Encode a list of bytes using Serial Line Internet +Protocol (SLIP); +#X obj -71 246 print encoded; +#X obj -71 163 print original; +#X obj 8 381 print decoded; +#X obj -98 141 t a a; +#X obj -98 224 t a a; +#X msg 124 60 /test/pi 3.14159; +#X msg 233 60 /test/pi \$1; +#X obj 233 40 expr 4*atan(1); +#X obj 233 22 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -86277 +-1; +#X obj -98 448 unpackOSC; +#X obj -98 364 t a a; +#X obj -98 469 routeOSC /test; +#X obj -92 492 print test; +#X obj -17 492 print other; +#X obj -98 515 routeOSC /pi; +#X floatatom -98 537 12 0 0 0 - - -; +#X text -16 190 Encodes a list of bytes for transmission through a +serial link using SLIP (RFC 1055). Useful for sending OSC through [comport]. +; +#X msg -52 124 192 192 192 192 192; +#X obj -104 322 cnv 15 60 30 empty empty empty 20 12 0 14 -4034 -66577 +0; +#X obj -103 186 cnv 15 60 30 empty empty empty 20 12 0 14 -4034 -66577 +0; +#X msg 27 174 1 2 3 4; +#X text 340 77 The motivation behind SLIP is the need to determine +the boundaries of a packet when it is received one byte at a time \, +as with a serial channel. Bytes are integers between 0 and 255; +#X msg 79 124 1 2 3 4 5 6; +#X msg 160 124 1.1 2.22 3 4 5 6; +#X text -37 98 single floats will pass through as single packets; +#X msg -76 290 verbosity \$1; +#X obj -76 271 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X text 340 134 SLIP (RFC 1055) is a simple encoding that prefixes +each packet with 192 \, and replaces 192s inside the packet with 219 +followed by 220 Any 219 will be replaced with 219 and 221 The packet +ends with 192; +#X obj -71 383 list split 1; +#X obj -71 404 == 47; +#X obj -98 425 spigot; +#X text -35 403 select OSC messages based on the leading '/'; +#X obj -59 358 print valid; +#X text 56 234 Note that the SLIP specification limits the maximum +packet size to 1006...; +#X obj -98 191 slipenc; +#X obj -98 329 slipdec; +#X text 31 530 Author: Martin Peach \, 2010/10/01; +#X text 57 262 ...but a float argument to slipenc will set another +maximum packet size; +#N canvas 529 327 494 344 META 0; +#X text 12 135 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan +Wilkes for Pd version 0.42.; +#X text 12 25 LICENSE GPL v2 or later; +#X text 12 115 AUTHOR Martin Peach; +#X text 12 5 KEYWORDS control conversion; +#X text 12 95 OUTLET_0 anything; +#X text 12 46 DESCRIPTION encode a list of bytes using Serial Line +Internet Protocol (SLIP); +#X text 12 75 INLET_0 float list; +#X restore 693 530 pd META; +#X connect 0 0 7 0; +#X connect 1 0 0 0; +#X connect 2 0 7 0; +#X connect 7 0 38 0; +#X connect 7 1 5 0; +#X connect 8 0 39 0; +#X connect 8 1 4 0; +#X connect 9 0 0 0; +#X connect 10 0 0 0; +#X connect 11 0 10 0; +#X connect 12 0 11 0; +#X connect 13 0 15 0; +#X connect 14 0 34 0; +#X connect 14 1 6 0; +#X connect 14 1 32 0; +#X connect 15 0 16 0; +#X connect 15 0 18 0; +#X connect 15 1 17 0; +#X connect 18 0 19 0; +#X connect 21 0 7 0; +#X connect 24 0 38 0; +#X connect 26 0 7 0; +#X connect 27 0 7 0; +#X connect 29 0 39 0; +#X connect 30 0 29 0; +#X connect 32 0 33 0; +#X connect 33 0 34 1; +#X connect 34 0 13 0; +#X connect 38 0 8 0; +#X connect 39 0 14 0; +#X connect 39 1 36 0; -- cgit v1.2.1