From 70538417927b09af1ae85d67573d054a0acb5b23 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Mon, 20 Sep 2004 17:22:51 +0000 Subject: help files covering values and sends svn path=/trunk/externals/k_cext/; revision=2051 --- help-send2.pd | 18 ++++++++++++++++++ help-value.pd | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 help-send2.pd create mode 100644 help-value.pd diff --git a/help-send2.pd b/help-send2.pd new file mode 100644 index 0000000..7d8cae7 --- /dev/null +++ b/help-send2.pd @@ -0,0 +1,18 @@ +#N canvas 427 167 481 300 10; +#X obj 8 75 k_cext 1 0 \; SENDFLOAT(" \$0-receive" \, 42) \; SENDSYMBOL(" +\$0-receive" \, "hello_world") \;; +#X obj 8 53 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1 +; +#X obj 9 134 r \$0-receive; +#X obj 9 160 route float symbol; +#X floatatom 9 184 5 0 0 0 - - -; +#X symbolatom 78 205 15 0 0 0 - - -; +#X text 4 15 SENDFLOAT sends a float \, SENDSYMBOL sends a symbol: +; +#X text 4 233 leading spaces in the receive name will be dropped ... +this makes $N arguments usable (as long as no receive names with leading +spaces will be allowed); +#X connect 1 0 0 0; +#X connect 2 0 3 0; +#X connect 3 0 4 0; +#X connect 3 1 5 0; diff --git a/help-value.pd b/help-value.pd new file mode 100644 index 0000000..ca7c2a4 --- /dev/null +++ b/help-value.pd @@ -0,0 +1,18 @@ +#N canvas 63 54 481 300 10; +#X obj 12 62 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 12 85 t b b; +#X obj 12 159 value \$0-count; +#X floatatom 12 183 5 0 0 0 - - -; +#X obj 47 108 k_cext 1 0 \; float f = VALUE(" \$0-count") \; SETVALUE(" +\$0-count" \, f+1) \;; +#X text 70 86 yet another counter; +#X text 8 17 VALUE returns the content of a value object \, SETVALUE +sets the content of a value object:; +#X text 4 218 leading spaces in the receive name will be dropped ... +this makes $N arguments usable (as long as no receive names with leading +spaces will be allowed); +#X connect 0 0 1 0; +#X connect 1 0 2 0; +#X connect 1 1 4 0; +#X connect 2 0 3 0; -- cgit v1.2.1