aboutsummaryrefslogtreecommitdiff
path: root/fps.pd
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-11-16 21:13:05 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-11-16 21:13:05 +0000
commit05f7e214a2bcfabd8ba8107ebbe33da704e277a6 (patch)
tree44bcb7cfd15a6e718d576b1000d57cd7c35530b0 /fps.pd
parent898b704d1aad9a9cefd0c4da1b096f9470b4ff2c (diff)
created object to set global FPS and get it in FPS or ms, and made fsclock use it
svn path=/trunk/externals/framesync/; revision=12771
Diffstat (limited to 'fps.pd')
-rw-r--r--fps.pd24
1 files changed, 24 insertions, 0 deletions
diff --git a/fps.pd b/fps.pd
new file mode 100644
index 0000000..a30a525
--- /dev/null
+++ b/fps.pd
@@ -0,0 +1,24 @@
+#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;
+#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;