aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-11-16 22:03:41 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-11-16 22:03:41 +0000
commit0148d661b2a7a3762faec5373273b42624a646d5 (patch)
treeab2fdc0b0d01c468c4e2a28940dbcf56381d2f9b
parentb55627eeff971003efb7fe745467e83d427670a2 (diff)
made [fps] have no interaction possible besides the single argument, then to get the current fps, you use [value framesync/fps]
svn path=/trunk/externals/framesync/; revision=12773
-rw-r--r--fps-help.pd16
-rw-r--r--fps.pd33
-rw-r--r--fps_ms.pd10
3 files changed, 24 insertions, 35 deletions
diff --git a/fps-help.pd b/fps-help.pd
index 1bc9e9a..585290c 100644
--- a/fps-help.pd
+++ b/fps-help.pd
@@ -1,13 +1,15 @@
-#N canvas 134 291 450 300 10;
+#N canvas 535 476 450 300 10;
#X text 38 24 Set the global Frames-Per-Second (FPS) for the global
clock when using the 'framesync' library. You should only use this
object once in a project. [frameclock] uses this object to set the
FPS \, so if you are using [frameclock] \, don't use [fps] also.;
#X msg 135 206 bang;
#X floatatom 135 254 5 0 0 0 - - -;
-#X obj 135 230 fps;
-#X obj 135 128 fps 24;
-#X text 39 157 You can use it with no argument to get the current FPS
-(careful not to set the FPS more than once!):;
-#X connect 1 0 3 0;
-#X connect 3 0 2 0;
+#X obj 165 117 fps 24;
+#X obj 135 230 value framesync/fps;
+#X text 39 157 If you want to get the current global FPS value \, then
+bang [value framesync/fps]:;
+#X obj 177 255 print current FPS;
+#X connect 1 0 4 0;
+#X connect 4 0 2 0;
+#X connect 4 0 6 0;
diff --git a/fps.pd b/fps.pd
index a30a525..4d03f15 100644
--- a/fps.pd
+++ b/fps.pd
@@ -1,24 +1,11 @@
-#N canvas 612 683 535 318 10;
-#X obj 110 124 value framesync/fps;
-#X obj 110 18 inlet;
-#X obj 125 259 outlet;
-#X obj 110 153 select 0;
-#X text 10 180 default to 30fps;
-#X obj 110 71 route bang;
-#X obj 167 93 print [framesync/fps]:_no_method_for;
-#X msg 110 180 30;
-#X obj 255 38 initbang;
-#X obj 255 149 print [framesync/fps];
-#X msg 255 126 setting FPS to \$1;
-#X obj 255 59 purepd/float_argument \$1 30;
-#X connect 0 0 3 0;
-#X connect 1 0 5 0;
-#X connect 3 0 7 0;
-#X connect 3 1 2 0;
+#N canvas 763 479 535 318 10;
+#X obj 112 189 value framesync/fps;
+#X text 279 100 default to 30fps;
+#X obj 112 79 initbang;
+#X obj 243 160 print [framesync/fps];
+#X msg 243 137 setting FPS to \$1;
+#X obj 112 100 purepd/float_argument \$1 30;
+#X connect 2 0 5 0;
+#X connect 4 0 3 0;
#X connect 5 0 0 0;
-#X connect 5 1 6 0;
-#X connect 7 0 2 0;
-#X connect 8 0 11 0;
-#X connect 10 0 9 0;
-#X connect 11 0 0 0;
-#X connect 11 0 10 0;
+#X connect 5 0 4 0;
diff --git a/fps_ms.pd b/fps_ms.pd
index fa032e6..7038a24 100644
--- a/fps_ms.pd
+++ b/fps_ms.pd
@@ -5,12 +5,12 @@
#X obj 50 160 /;
#X msg 50 139 1 \$1;
#X obj 107 83 print [framesync/fps_ms]:_no_method_for;
-#X obj 50 114 framesync/fps;
#X obj 50 192 * 1000;
+#X obj 50 114 value framesync/fps;
#X connect 0 0 2 0;
-#X connect 2 0 6 0;
+#X connect 2 0 7 0;
#X connect 2 1 5 0;
-#X connect 3 0 7 0;
+#X connect 3 0 6 0;
#X connect 4 0 3 0;
-#X connect 6 0 4 0;
-#X connect 7 0 1 0;
+#X connect 6 0 1 0;
+#X connect 7 0 4 0;