1 class:: PV_JensenAndersen
2 summary:: FFT feature detector for onset detection.
3 related:: Classes/PV_HainsworthFoote
9 FFT feature detector for onset detection based on work described in
11 Jensen, K. & Andersen, T. H. (2003). Real-time Beat Estimation
12 Using Feature Extraction. In Proceedings of the Computer Music Modeling
13 and Retrieval Symposium, Lecture Notes in Computer Science. Springer
17 First order derivatives of the features are taken.
18 code::threshold:: may need to be set low to pick up on
33 Proportion of spectral centroid feature.
38 Proportion of high frequency energy feature.
43 Proportion of high frequency content feature.
48 Proportion of spectral flux feature.
53 Threshold level for allowing a detection.
58 If triggered, minimum wait until a further frame can cause
59 another spot (useful to stop multiple detects on heavy signals).
66 SynthDef(\fftod, { var source1, detect;
67 source1 = AudioIn.ar(1);
68 detect = PV_JensenAndersen.ar(FFT(LocalBuf(2048), source1),
69 threshold:MouseX.kr(0.1,1.0));
70 Out.ar(0, SinOsc.ar([440,445], 0, Decay.ar(0.1*detect, 0.1)));