hi list
is there a simple way to estimate the beat of the incoming audiosignal. it don't has to be very accurate. i just need some bangs to control and display video (pdp,pidip) more or less at the same beat as the sound.
any suggestions? i tried maxlib beat but i think this is just for midi. can the rythm_estimator do this?
lg marc
[bonk~] ?
pix.
On Wed, 22 Oct 2003 16:45:11 +0200 metafor metafor@gmx.net wrote:
hi list
is there a simple way to estimate the beat of the incoming audiosignal. it don't has to be very accurate. i just need some bangs to control and display video (pdp,pidip) more or less at the same beat as the sound.
any suggestions? i tried maxlib beat but i think this is just for midi. can the rythm_estimator do this?
lg marc
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
rhythm estimator also requires bangs as inputs (ie not audio). I looked at bonk~ but this may not be accurate enough for you.. depends on how predictable the kick drums are.
matt
-=-=-=-=-=-=-=-=-=-=-=-=- http://www.loopit.org/ -=-=-=-=-=-=-=-=-=-=-=-=- ----- Original Message ----- From: "metafor" metafor@gmx.net To: "'pd-list '" pd-list@iem.kug.ac.at Sent: Wednesday, October 22, 2003 3:45 PM Subject: [PD] beat detection - live sound input
hi list
is there a simple way to estimate the beat of the incoming audiosignal. it don't has to be very accurate. i just need some bangs to control and display video (pdp,pidip) more or less at the same beat as the sound.
any suggestions? i tried maxlib beat but i think this is just for midi. can the rythm_estimator do this?
lg marc
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
metafor schrieb:
i tried maxlib beat but i think this is just for midi.
Hi Marc,
open the attached patch to see how it could be done using maxlib's beat and fiddle~. In this case I miss-use fiddle~s second outlet (= bang on attack) to get the beat from audio input. In case you just want to trigger events you probably won't need beat, just fiddle~...!?
Olaf
#N canvas 285 272 604 394 12; #X floatatom 71 333 8 0 0 0 - - -; #X floatatom 92 307 5 0 0 0 - - -; #X text 148 335 beats per minute; #X obj 114 276 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -258699 -1; #X text 144 277 'on beat'; #X text 147 309 milliseconds; #X obj 71 245 beat 4; #X obj 71 222 makenote 60 60; #X msg 71 196 60; #X obj 36 127 readsf~; #X msg 36 92 open $1; #X msg 36 38 bang; #X obj 36 66 openpanel; #X obj 35 155 fiddle~ 1024 1 20 3; #X text 124 35 fiddle~ outputs a bang whenever it thinks a new note arrived , just use this bang to create a faked midi note using makenote and feed this data into beat...; #X msg 105 92 1; #X msg 144 92 0; #X msg 210 222 reset; #X connect 6 0 0 0; #X connect 6 1 1 0; #X connect 6 2 3 0; #X connect 7 0 6 0; #X connect 7 1 6 1; #X connect 8 0 7 0; #X connect 9 0 13 0; #X connect 10 0 9 0; #X connect 11 0 12 0; #X connect 12 0 10 0; #X connect 13 1 8 0; #X connect 15 0 9 0; #X connect 16 0 9 0; #X connect 17 0 6 0;
Why did you use [fiddle~] instead of [bonk~]? As I understand it, [bonk~] was created for percussion, and [fiddle~] for pitched instruments? I've used [bonk~] a fair amount to get attack info and it works quite well. I haven't used [fiddle~] at all, but I was planning on it.
http://crca.ucsd.edu/~tapel/software.html
[fiddle~] - object for pitch following and sinusoidal decomposition [bonk~] - percussion follower
Here's the paper about them: http://www-crca.ucsd.edu/%7Etapel/icmc98.pdf
.hc
On Wednesday, Oct 22, 2003, at 12:24 America/New_York, Olaf Matthes wrote:
metafor schrieb:
i tried maxlib beat but i think this is just for midi.
Hi Marc,
open the attached patch to see how it could be done using maxlib's beat and fiddle~. In this case I miss-use fiddle~s second outlet (= bang on attack) to get the beat from audio input. In case you just want to trigger events you probably won't need beat, just fiddle~...!?
Olaf#N canvas 285 272 604 394 12; #X floatatom 71 333 8 0 0 0 - - -; #X floatatom 92 307 5 0 0 0 - - -; #X text 148 335 beats per minute; #X obj 114 276 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -258699 -1; #X text 144 277 'on beat'; #X text 147 309 milliseconds; #X obj 71 245 beat 4; #X obj 71 222 makenote 60 60; #X msg 71 196 60; #X obj 36 127 readsf~; #X msg 36 92 open $1; #X msg 36 38 bang; #X obj 36 66 openpanel; #X obj 35 155 fiddle~ 1024 1 20 3; #X text 124 35 fiddle~ outputs a bang whenever it thinks a new note arrived , just use this bang to create a faked midi note using makenote and feed this data into beat...; #X msg 105 92 1; #X msg 144 92 0; #X msg 210 222 reset; #X connect 6 0 0 0; #X connect 6 1 1 0; #X connect 6 2 3 0; #X connect 7 0 6 0; #X connect 7 1 6 1; #X connect 8 0 7 0; #X connect 9 0 13 0; #X connect 10 0 9 0; #X connect 11 0 12 0; #X connect 12 0 10 0; #X connect 13 1 8 0; #X connect 15 0 9 0; #X connect 16 0 9 0; #X connect 17 0 6 0;
http://at.or.at/hans/
Hans-Christoph Steiner schrieb:
Why did you use [fiddle~] instead of [bonk~]? As I understand it, [bonk~] was created for percussion, and [fiddle~] for pitched instruments?
Because Marc just said something about 'incoming audio signal'. I'm not a drummer so I thought it might be something non-percussive... ;-) In the end you're right and it depends on the input signal which one to use. It might even be possible to build something around 'env~' and probably 'delta' to detect abrupt increase in volume....
Olaf
On Wednesday, Oct 22, 2003, at 18:44 America/New_York, Olaf Matthes
wrote:
Hans-Christoph Steiner schrieb:
Why did you use [fiddle~] instead of [bonk~]? As I understand it, [bonk~] was created for percussion, and [fiddle~] for pitched instruments?
Because Marc just said something about 'incoming audio signal'. I'm not a drummer so I thought it might be something non-percussive... ;-) In the end you're right and it depends on the input signal which one to use. It might even be possible to build something around 'env~' and probably 'delta' to detect abrupt increase in volume....
I was curious about whether [fiddle~] worked better for you in certain
situations, that's why I asked.
.hc
"[W]e have invented the technology to eliminate scarcity, but we are
deliberately throwing it away
to benefit those who profit from scarcity."
-John Gilmore
as an example, here's how i do it with flash. listen to incoming audio in pd and create forms, colors and mouvements in flash. no interaction is required from user : http://www.pure-data.org/community/patches it's called pure flash
you will need flashserver from olaf : http://www.akustische-kunst.org/puredata/flash/flash.html
work best with electro funk music or voice ;) patrick