From 2b443898636e4366ae4d4cca6e3a8ef517adaca5 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 17 Jan 2006 05:11:28 +0000 Subject: some random little shortcut objects that I use here and there. Someday they'll find their way into a proper library svn path=/trunk/externals/hcs/; revision=4433 --- TODO | 26 ++++++++++++++++++++++++++ blocksize_in_ms.pd | 20 ++++++++------------ debug.pd | 12 ++++++++++++ pi-help.pd | 10 ++++++++++ pi.pd | 11 +++++++++++ 5 files changed, 67 insertions(+), 12 deletions(-) create mode 100644 debug.pd create mode 100644 pi-help.pd create mode 100644 pi.pd diff --git a/TODO b/TODO index 8fd6016..b659ac1 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,30 @@ +- create math library + - standard constants like Pi, etc. + - standard math functions + +- create networking library + - socket objects + - multicast DNS objects + +- create mapping library + - move [hid] toolkit objects into mapping lib + +- create sensors library + - objects for smoothing sensor data + +- create i/o library + - add hid, comport, platform-specific hid, libusb, midi + - perhaps specific objects for sensorboxs like the arduino, multio, etc + +- create standard gui objects lib (what's the name?) + - dsp + - pan + - amp + +- create support lib for creating objects in Pd + - rename blocksize_in_ms to block_size_in_ms + ifeel.c ------------------------------------------------------------------------ - make default device be /dev/input/ifeel0 when there are no arguments diff --git a/blocksize_in_ms.pd b/blocksize_in_ms.pd index 6a42b0e..d432ac4 100644 --- a/blocksize_in_ms.pd +++ b/blocksize_in_ms.pd @@ -1,25 +1,21 @@ -#N canvas 0 22 454 304 10; -#X obj 178 272 outlet; +#N canvas 0 22 458 308 10; +#X obj 178 262 outlet; #X obj 164 31 inlet; #X obj 164 56 bang; #X text 209 31 bang to recalculate; #X obj 164 124 samplerate~; -#X obj 183 98 loadbang; #X obj 178 192 /; #X msg 164 170 64; #X obj 164 151 t b f; -#X obj 147 104 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; #X text 30 170 default block size:; #X text 8 25 [blocksize_in_ms]; #X obj 178 229 * 1000; +#X text 35 278 TODO: make blocksize read from actual Pd setting; #X connect 1 0 2 0; #X connect 2 0 4 0; -#X connect 4 0 8 0; -#X connect 5 0 4 0; -#X connect 6 0 12 0; +#X connect 4 0 7 0; +#X connect 5 0 10 0; +#X connect 6 0 5 0; #X connect 7 0 6 0; -#X connect 8 0 7 0; -#X connect 8 1 6 1; -#X connect 9 0 4 0; -#X connect 12 0 0 0; +#X connect 7 1 5 1; +#X connect 10 0 0 0; diff --git a/debug.pd b/debug.pd new file mode 100644 index 0000000..c427476 --- /dev/null +++ b/debug.pd @@ -0,0 +1,12 @@ +#N canvas 167 523 278 181 10; +#X obj 74 0 inlet; +#X obj 1 4 tgl 15 0 empty ATORAT_DEBUG empty 14 8 1 8 -261440 -1 -1 +0 1; +#X obj 74 53 spigot; +#X obj 74 113 print \$1; +#X text 8 150 (C) Copyright 2004 Hans-Christoph Steiner; +#X text 112 166 released under the GNU GPL; +#X connect 0 0 2 0; +#X connect 1 0 2 1; +#X connect 2 0 3 0; +#X coords 0 0 1 1 130 18 1; diff --git a/pi-help.pd b/pi-help.pd new file mode 100644 index 0000000..a220da6 --- /dev/null +++ b/pi-help.pd @@ -0,0 +1,10 @@ +#N canvas 65 227 466 251 10; +#X obj 5 2 cnv 15 450 20 empty empty [pi] 2 11 1 18 -233017 -66577 +0; +#X obj 422 3 pddp; +#X obj 142 149 pi; +#X floatatom 143 192 11 0 0 0 - - -; +#X msg 142 106 bang; +#X text 32 51 The value of pi as accurate as Pd can manage:; +#X connect 2 0 3 0; +#X connect 4 0 2 0; diff --git a/pi.pd b/pi.pd new file mode 100644 index 0000000..75708b5 --- /dev/null +++ b/pi.pd @@ -0,0 +1,11 @@ +#N canvas 471 415 249 195 10; +#X obj 36 56 inlet; +#X obj 82 161 outlet; +#X obj 82 98 bang; +#X msg 82 130 3.14159; +#X obj 122 56 loadbang; +#X text 15 17 bang to get the value of pi; +#X connect 0 0 2 0; +#X connect 2 0 3 0; +#X connect 3 0 1 0; +#X connect 4 0 2 0; -- cgit v1.2.1