shithub: aubio

Download patch

ref: 0eb4025318fb9836649c29d2b3a4a54207373cdd
parent: 2bd1a2a888d21384408b0c8a6ecc0b11c53fbc27
author: Paul Brossier <piem@altern.org>
date: Tue Dec 13 00:54:34 EST 2005

update puredata plugin
update puredata plugin


--- a/plugins/puredata/Makefile.am
+++ b/plugins/puredata/Makefile.am
@@ -9,6 +9,8 @@
 
 ## Make and install the shared library.
 pdinstalldir = $(pddir)/extra
+pdinstallrefdir = $(pddir)/doc/5.reference
+pdinstallexpdir = $(pddir)/doc/aubio
 
 # Automake won't accept something ending in ".pd_linux" as a library
 pdinstall_PROGRAMS = aubio.pd_linux
@@ -34,9 +36,14 @@
 
 ## Install the documentation.
 
-pdinstall_DATA = \
-	help-aubioonset~.pd
+pdinstallref_DATA = \
+	help/help-aubioonset~.pd \
+	help/help-aubioquiet~.pd \
+	help/help-aubiotempo~.pd \
+	help/help-aubiotss~.pd
 
+pdinstallexp_DATA = \
+	examples/onset-cam.pd
 
 ## My kludge
 noinst_SCRIPTS = libtoolkludge
--- /dev/null
+++ b/plugins/puredata/examples/onset-cam.pd
@@ -1,0 +1,13 @@
+#N canvas 331 521 567 331 10;
+#X obj 23 8 adc~;
+#X obj 24 46 aubioonset~;
+#X obj 24 81 pdp_v4l;
+#X obj 24 116 pdp_xv;
+#X text 110 10 audio input;
+#X text 111 46 onset detection;
+#X text 113 82 video camera;
+#X text 113 121 video screen;
+#X connect 0 0 1 0;
+#X connect 0 1 1 0;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
--- a/plugins/puredata/help-aubioonset~.pd
+++ /dev/null
@@ -1,18 +1,0 @@
-#N canvas 245 501 672 291 10;
-#X obj 50 33 adc~;
-#X text 181 26 aubioonset~ takes an input signal and outputs a bang
-when an onset has been detected;
-#X text 180 64 this is somewhat similar to the bonk~ object \, except
-it should work on non-percussive attacks too.;
-#X obj 50 97 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X text 182 111 the creation argument and right input can be used to
-set the detection threshold. values between 0 and 10 are accepted.
-low values favorise over-detection. higher values will reduce the number
-of onset detected.;
-#X obj 50 65 aubioonset~ 0.3;
-#X floatatom 128 29 5 0 0 0 - - -;
-#X connect 0 0 5 0;
-#X connect 0 1 5 0;
-#X connect 5 0 3 0;
-#X connect 6 0 5 1;
--- a/plugins/puredata/help-aubioquiet~.pd
+++ /dev/null
@@ -1,20 +1,0 @@
-#N canvas 225 643 515 246 10;
-#X obj 20 28 adc~;
-#X obj 19 192 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 119 192 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 19 156 aubioquiet~ -90;
-#X text 140 193 noisy;
-#X text 38 192 quiet;
-#X text 60 26 aubioquiet~ outputs bangs: - on its left input when a
-change to silence is detected - on its right output when a change to
-loudness is detected;
-#X text 59 82 object creation argument and right input can be used
-to set the noise threshold \, in dB. default value is -90;
-#X text 182 138 this object was written as an exercise and test. note
-that it could also easily be rewritten as a patch.;
-#X connect 0 0 3 0;
-#X connect 0 1 3 0;
-#X connect 3 0 1 0;
-#X connect 3 1 2 0;
--- a/plugins/puredata/help-aubiotempo~.pd
+++ /dev/null
@@ -1,16 +1,0 @@
-#N canvas 245 501 672 291 10;
-#X obj 50 33 adc~;
-#X obj 50 97 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X floatatom 128 29 5 0 0 0 - - -;
-#X text 180 71 the creation argument and right input can be used to
-set the detection threshold of the onset detection function. see the
-documentation for aubioonset~;
-#X obj 50 65 aubiotempo~ 0.3;
-#X text 181 26 aubiotempo~ takes an input signal and outputs a bang
-when at each detected beat location.;
-#X text 416 45;
-#X connect 0 0 4 0;
-#X connect 0 1 4 0;
-#X connect 2 0 4 1;
-#X connect 4 0 1 0;
--- a/plugins/puredata/help-aubiotss~.pd
+++ /dev/null
@@ -1,60 +1,0 @@
-#N canvas 332 424 550 443 10;
-#X msg 173 64 debug;
-#X obj 138 11 adc~;
-#X obj 181 356 dac~;
-#X floatatom 244 74 5 0 0 0 - - -;
-#X obj 179 18 hsl 256 15 0 256 0 0 empty empty empty -2 -6 0 8 -262144
--1 -1 3600 1;
-#X obj 167 182 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
-1;
-#X obj 267 185 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
-1;
-#X obj 179 293 *~;
-#X obj 203 293 *~;
-#X obj 199 219 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
-1;
-#X text 265 161 play steady states components;
-#X text 8 160 play transients;
-#X text 185 204 stereo;
-#X floatatom 10 226 5 0 0 0 - - -;
-#X obj 13 182 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
--1 -1 2300 1;
-#X floatatom 285 225 5 0 0 0 - - -;
-#X obj 288 185 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
--1 -1 3900 1;
-#X text 236 -1 separation threshold;
-#X obj 144 96 aubiotss~ 0.015;
-#X text 265 99 transient and steady state separation;
-#X obj 244 239 *~ 1;
-#X obj 244 267 *~ 1;
-#X obj 144 240 *~ 1;
-#X obj 144 265 *~ 1;
-#X obj 285 204 / 68;
-#X obj 10 203 / 68;
-#X obj 244 51 / 256;
-#X connect 0 0 18 0;
-#X connect 1 0 18 0;
-#X connect 1 1 18 0;
-#X connect 3 0 18 1;
-#X connect 4 0 26 0;
-#X connect 5 0 23 1;
-#X connect 6 0 21 1;
-#X connect 7 0 2 1;
-#X connect 8 0 2 0;
-#X connect 9 0 7 0;
-#X connect 9 0 8 1;
-#X connect 13 0 22 1;
-#X connect 14 0 25 0;
-#X connect 15 0 20 1;
-#X connect 16 0 24 0;
-#X connect 18 0 22 0;
-#X connect 18 1 20 0;
-#X connect 20 0 21 0;
-#X connect 21 0 2 1;
-#X connect 21 0 8 0;
-#X connect 22 0 23 0;
-#X connect 23 0 2 0;
-#X connect 23 0 7 0;
-#X connect 24 0 15 0;
-#X connect 25 0 13 0;
-#X connect 26 0 3 0;
--- /dev/null
+++ b/plugins/puredata/help/help-aubioonset~.pd
@@ -1,0 +1,18 @@
+#N canvas 245 501 672 291 10;
+#X obj 50 33 adc~;
+#X text 181 26 aubioonset~ takes an input signal and outputs a bang
+when an onset has been detected;
+#X text 180 64 this is somewhat similar to the bonk~ object \, except
+it should work on non-percussive attacks too.;
+#X obj 50 97 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X text 182 111 the creation argument and right input can be used to
+set the detection threshold. values between 0 and 10 are accepted.
+low values favorise over-detection. higher values will reduce the number
+of onset detected.;
+#X obj 50 65 aubioonset~ 0.3;
+#X floatatom 128 29 5 0 0 0 - - -;
+#X connect 0 0 5 0;
+#X connect 0 1 5 0;
+#X connect 5 0 3 0;
+#X connect 6 0 5 1;
--- /dev/null
+++ b/plugins/puredata/help/help-aubioquiet~.pd
@@ -1,0 +1,20 @@
+#N canvas 225 643 515 246 10;
+#X obj 20 28 adc~;
+#X obj 19 192 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 119 192 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 19 156 aubioquiet~ -90;
+#X text 140 193 noisy;
+#X text 38 192 quiet;
+#X text 60 26 aubioquiet~ outputs bangs: - on its left input when a
+change to silence is detected - on its right output when a change to
+loudness is detected;
+#X text 59 82 object creation argument and right input can be used
+to set the noise threshold \, in dB. default value is -90;
+#X text 182 138 this object was written as an exercise and test. note
+that it could also easily be rewritten as a patch.;
+#X connect 0 0 3 0;
+#X connect 0 1 3 0;
+#X connect 3 0 1 0;
+#X connect 3 1 2 0;
--- /dev/null
+++ b/plugins/puredata/help/help-aubiotempo~.pd
@@ -1,0 +1,16 @@
+#N canvas 245 501 672 291 10;
+#X obj 50 33 adc~;
+#X obj 50 97 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X floatatom 128 29 5 0 0 0 - - -;
+#X text 180 71 the creation argument and right input can be used to
+set the detection threshold of the onset detection function. see the
+documentation for aubioonset~;
+#X obj 50 65 aubiotempo~ 0.3;
+#X text 181 26 aubiotempo~ takes an input signal and outputs a bang
+when at each detected beat location.;
+#X text 416 45;
+#X connect 0 0 4 0;
+#X connect 0 1 4 0;
+#X connect 2 0 4 1;
+#X connect 4 0 1 0;
--- /dev/null
+++ b/plugins/puredata/help/help-aubiotss~.pd
@@ -1,0 +1,70 @@
+#N canvas 332 424 550 443 10;
+#X msg 173 64 debug;
+#X obj 138 11 adc~;
+#X obj 183 421 dac~;
+#X floatatom 244 74 5 0 0 0 - - -;
+#X obj 221 12 hsl 256 15 0 256 0 0 empty empty empty -2 -6 0 8 -262144
+-1 -1 25200 1;
+#X obj 167 182 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
+1;
+#X obj 267 185 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
+1;
+#X text 265 161 play steady states components;
+#X text 8 160 play transients;
+#X floatatom 10 226 5 0 0 0 - - -;
+#X obj 13 182 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
+-1 -1 11700 1;
+#X floatatom 285 225 5 0 0 0 - - -;
+#X obj 301 186 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 8 -262144
+-1 -1 4100 1;
+#X text 236 -1 separation threshold;
+#X obj 144 96 aubiotss~ 0.015;
+#X text 265 99 transient and steady state separation;
+#X obj 244 239 *~ 1;
+#X obj 244 267 *~ 1;
+#X obj 144 240 *~ 1;
+#X obj 144 265 *~ 1;
+#X obj 285 204 / 68;
+#X obj 10 203 / 68;
+#X obj 244 51 / 256;
+#X obj 172 350 *~;
+#X obj 222 334 *~;
+#X obj 199 219 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
+1;
+#X text 185 204 stereo;
+#X obj 311 139 aubiotss~ 0.015;
+#X obj 299 68 * -1;
+#X obj 353 63 + 1;
+#X floatatom 412 63 5 0 0 0 - - -;
+#X connect 0 0 14 0;
+#X connect 1 0 14 0;
+#X connect 1 0 27 0;
+#X connect 1 1 14 0;
+#X connect 1 1 27 0;
+#X connect 3 0 14 1;
+#X connect 3 0 28 0;
+#X connect 4 0 22 0;
+#X connect 5 0 19 1;
+#X connect 6 0 17 1;
+#X connect 9 0 18 1;
+#X connect 10 0 21 0;
+#X connect 11 0 16 1;
+#X connect 12 0 20 0;
+#X connect 14 0 18 0;
+#X connect 16 0 17 0;
+#X connect 17 0 2 1;
+#X connect 17 0 24 0;
+#X connect 18 0 19 0;
+#X connect 19 0 2 0;
+#X connect 19 0 23 0;
+#X connect 20 0 11 0;
+#X connect 21 0 9 0;
+#X connect 22 0 3 0;
+#X connect 23 0 2 1;
+#X connect 24 0 2 0;
+#X connect 25 0 23 0;
+#X connect 25 0 24 1;
+#X connect 27 1 16 0;
+#X connect 28 0 29 0;
+#X connect 29 0 30 0;
+#X connect 30 0 27 1;