aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2007-12-21 11:05:20 +0000
committerJamie Bullock <jamie@postlude.co.uk>2007-12-21 11:05:20 +0000
commit672302aadaba97f3e5df256e3d358cb2411ab3ed (patch)
tree010d87021ec0debbddf69aa4b2ef580902a945a8 /examples
parent9ca79a2cc14c18758baa1adfaead49e70d80003e (diff)
downloadLibXtract-672302aadaba97f3e5df256e3d358cb2411ab3ed.tar.gz
LibXtract-672302aadaba97f3e5df256e3d358cb2411ab3ed.tar.bz2
LibXtract-672302aadaba97f3e5df256e3d358cb2411ab3ed.zip
- Added some previously uncommitted Pd testing examples
- Improved python bindings. Now we can do vector features as well as scalar from Python
Diffstat (limited to 'examples')
-rw-r--r--examples/puredata/simple-test.pd11
-rw-r--r--examples/puredata/spectrum-512-test.pd8
2 files changed, 19 insertions, 0 deletions
diff --git a/examples/puredata/simple-test.pd b/examples/puredata/simple-test.pd
new file mode 100644
index 0000000..f9bd79c
--- /dev/null
+++ b/examples/puredata/simple-test.pd
@@ -0,0 +1,11 @@
+#N canvas 642 248 670 289 10;
+#X obj 192 63 osc~ 440;
+#X floatatom 194 187 10 0 0 0 - - -;
+#X obj 194 150 xtract~ spectral_mean;
+#X obj 193 94 *~ 0.3;
+#X text 337 121 Optional second argument gives blocksize;
+#X obj 193 121 xtract~ spectrum 64;
+#X connect 0 0 3 0;
+#X connect 2 0 1 0;
+#X connect 3 0 5 0;
+#X connect 5 0 2 0;
diff --git a/examples/puredata/spectrum-512-test.pd b/examples/puredata/spectrum-512-test.pd
new file mode 100644
index 0000000..fe22e23
--- /dev/null
+++ b/examples/puredata/spectrum-512-test.pd
@@ -0,0 +1,8 @@
+#N canvas 5 48 450 300 10;
+#X obj 127 77 noise~;
+#X obj 262 59 loadbang;
+#X msg 262 86 list 86.1328;
+#X obj 127 112 xtract~ spectrum 64;
+#X connect 0 0 3 0;
+#X connect 1 0 2 0;
+#X connect 2 0 3 1;