aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-12-24 05:42:43 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-12-24 05:42:43 +0000
commit45d50493ba307fa71cdf29bb919948ce8d396cea (patch)
tree3252be3fad8fceb5e46e7281e908907f8db04d59
parentb74c6895411374bfb4c158dbc6709aba356923e3 (diff)
created max/min tracking objects in response to Cyrille's desire to have some kind of state-saving for autoscale
svn path=/trunk/externals/mapping/; revision=7053
-rw-r--r--TODO4
-rw-r--r--help/track_max-help.pd32
-rw-r--r--help/track_min-help.pd32
-rw-r--r--track_max.pd37
-rw-r--r--track_min.pd34
5 files changed, 139 insertions, 0 deletions
diff --git a/TODO b/TODO
index 56a8217..9ebd84d 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,8 @@
+______________________________________________________________________________
+= spread/segment/seglet
+Make [collect] and [distribute], which are like [segment] and [desegment].
+Perhaps it should be called [seglet] and [deseglet]
______________________________________________________________________________
= one->many
diff --git a/help/track_max-help.pd b/help/track_max-help.pd
new file mode 100644
index 0000000..b43b01b
--- /dev/null
+++ b/help/track_max-help.pd
@@ -0,0 +1,32 @@
+#N canvas 358 102 478 344 10;
+#X obj 2 -8 cnv 15 450 20 empty empty [track_max] 2 11 1 18 -233017
+-66577 0;
+#X floatatom 97 79 5 0 0 0 - - -;
+#X msg 155 61 bang;
+#X floatatom 97 142 5 0 0 0 - - -;
+#X text 190 62 <-- bang to reset;
+#X obj 166 86 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
+;
+#X text 186 86 <-- stop/start tracking;
+#X text 7 26 Track maximum value:;
+#X obj 97 112 track_max;
+#X floatatom 97 229 5 0 0 0 - - -;
+#X msg 176 211 bang;
+#X floatatom 97 292 5 0 0 0 - - -;
+#X text 211 212 <-- bang to reset;
+#X obj 187 236 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1
+1;
+#X text 207 236 <-- stop/start tracking;
+#X text 14 173 The argument and/or the second inlet set the initial
+minimum value.;
+#X floatatom 136 229 5 0 0 0 - - -;
+#X obj 97 262 track_max 72;
+#X connect 1 0 8 0;
+#X connect 2 0 8 2;
+#X connect 5 0 8 2;
+#X connect 8 0 3 0;
+#X connect 9 0 17 0;
+#X connect 10 0 17 2;
+#X connect 13 0 17 2;
+#X connect 16 0 17 1;
+#X connect 17 0 11 0;
diff --git a/help/track_min-help.pd b/help/track_min-help.pd
new file mode 100644
index 0000000..44b702b
--- /dev/null
+++ b/help/track_min-help.pd
@@ -0,0 +1,32 @@
+#N canvas 706 97 478 344 10;
+#X obj 2 -8 cnv 15 450 20 empty empty [track_min] 2 11 1 18 -233017
+-66577 0;
+#X floatatom 97 79 5 0 0 0 - - -;
+#X msg 155 61 bang;
+#X text 7 26 Track minimum value:;
+#X floatatom 97 142 5 0 0 0 - - -;
+#X text 190 62 <-- bang to reset;
+#X obj 166 86 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
+;
+#X text 186 86 <-- stop/start tracking;
+#X obj 97 112 track_min;
+#X floatatom 97 229 5 0 0 0 - - -;
+#X msg 190 211 bang;
+#X floatatom 97 292 5 0 0 0 - - -;
+#X text 225 212 <-- bang to reset;
+#X obj 201 236 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1
+1;
+#X text 221 236 <-- stop/start tracking;
+#X text 14 173 The argument and/or the second inlet set the initial
+minimum value.;
+#X floatatom 143 229 5 0 0 0 - - -;
+#X obj 97 262 track_min -234;
+#X connect 1 0 8 0;
+#X connect 2 0 8 2;
+#X connect 6 0 8 2;
+#X connect 8 0 4 0;
+#X connect 9 0 17 0;
+#X connect 10 0 17 2;
+#X connect 13 0 17 2;
+#X connect 16 0 17 1;
+#X connect 17 0 11 0;
diff --git a/track_max.pd b/track_max.pd
new file mode 100644
index 0000000..b929d35
--- /dev/null
+++ b/track_max.pd
@@ -0,0 +1,37 @@
+#N canvas 353 201 457 385 10;
+#X obj 83 269 outlet;
+#X obj 294 7 inlet;
+#X obj 37 7 inlet;
+#X obj 294 27 route float bang;
+#X obj 58 92 select 0;
+#X msg 58 111 0;
+#X msg 109 111 1;
+#X obj 177 7 inlet;
+#X obj 224 137 loadbang;
+#X obj 37 207 moses;
+#X obj 37 143 spigot 1;
+#X text 59 235 max;
+#X obj 173 200 print ARG;
+#X obj 177 164 purepd/float_argument \$1 -9.99e+37;
+#X obj 83 234 + 1e-09;
+#X text 33 292 1e-09 is added so [moses] doesn't output the current
+maximum value again.;
+#X text 229 347 released under the GNU GPL;
+#X text 12 333 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
+;
+#X connect 1 0 3 0;
+#X connect 2 0 10 0;
+#X connect 3 0 4 0;
+#X connect 3 1 13 0;
+#X connect 4 0 5 0;
+#X connect 4 1 6 0;
+#X connect 5 0 10 1;
+#X connect 6 0 10 1;
+#X connect 7 0 13 0;
+#X connect 8 0 13 0;
+#X connect 9 1 14 0;
+#X connect 10 0 9 0;
+#X connect 13 0 9 1;
+#X connect 13 0 12 0;
+#X connect 14 0 0 0;
+#X connect 14 0 9 1;
diff --git a/track_min.pd b/track_min.pd
new file mode 100644
index 0000000..e2a8b26
--- /dev/null
+++ b/track_min.pd
@@ -0,0 +1,34 @@
+#N canvas 677 121 475 375 10;
+#X obj 37 303 outlet;
+#X text 75 268 min;
+#X obj 37 268 float;
+#X obj 294 7 inlet;
+#X obj 37 7 inlet;
+#X obj 294 27 route float bang;
+#X obj 58 92 select 0;
+#X msg 58 111 0;
+#X msg 109 111 1;
+#X obj 177 7 inlet;
+#X obj 224 137 loadbang;
+#X obj 37 207 moses;
+#X obj 37 143 spigot 1;
+#X text 229 347 released under the GNU GPL;
+#X text 12 333 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
+;
+#X obj 177 164 purepd/float_argument \$1 9.99e+37;
+#X connect 2 0 0 0;
+#X connect 2 0 11 1;
+#X connect 3 0 5 0;
+#X connect 4 0 12 0;
+#X connect 5 0 6 0;
+#X connect 5 1 15 0;
+#X connect 6 0 7 0;
+#X connect 6 1 8 0;
+#X connect 7 0 12 1;
+#X connect 8 0 12 1;
+#X connect 9 0 15 0;
+#X connect 10 0 15 0;
+#X connect 11 0 2 0;
+#X connect 12 0 11 0;
+#X connect 15 0 11 1;
+#X connect 15 0 2 1;