Beat detection & adsr~ object

notyouraveragejoe's icon

Hi, this is my first Max list post so bare with me if I sound a little
moronic!
I have two unrelated questions here, both for uni projects.
I am working on a project at the moment which will (hopefully) eventually
result in a small dancing robot powered by MAX MSP.
My first hurdle is beat detection. I have a suspicion this may be either a
completely worn-out subject or barely touched upon.
If anyone can give me ANY info based on beat detection in maxmsp I'd be
eternally (though temporarily) grateful!
I'm looking to have an audio input (either from an MP3 loaded into a buffer
or from a microphone), and have the audio processed to give me a BPM and/or
bangs corresponding to beats.
I'm not expecting a solution right away, but if someone can point me in the
right direction that'd be great.

Another project is very simple, just involving synths really. I just
discovered the adsr~ object (after trying (and failing) to create my own
using breakpoint function editors and line objects).
Now it's a very simple object. The only problem I find is that it doesn't
seem to return to zero. It ramps up to the inputted amplitude inthe set
attack time, decays in X milliseconds to Y amplitude level and stays there.
I have set a release time but it doesn't seem to do anything with it. I feel
I must be missing something glaringly obvious here, but I'm a bit of a newb
so that's allowed... right?

Thanks for any advice you can give me,

Joe Bicker

Christopher Overstreet's icon

For beat detection check out the beat~ object made by Tristan Jehan.
(Search at maxobjects.com)

For ADSR~ you must send the value of 0 to trigger the release portion of the
envelope.

On 11/4/07 1:50 PM, "ilikepie" wrote:

> Hi, this is my first Max list post so bare with me if I sound a little
> moronic!
> I have two unrelated questions here, both for uni projects.
> I am working on a project at the moment which will (hopefully) eventually
> result in a small dancing robot powered by MAX MSP.
> My first hurdle is beat detection. I have a suspicion this may be either a
> completely worn-out subject or barely touched upon.
> If anyone can give me ANY info based on beat detection in maxmsp I'd be
> eternally (though temporarily) grateful!
> I'm looking to have an audio input (either from an MP3 loaded into a buffer or
> from a microphone), and have the audio processed to give me a BPM and/or bangs
> corresponding to beats.
> I'm not expecting a solution right away, but if someone can point me in the
> right direction that'd be great.
>
> Another project is very simple, just involving synths really. I just
> discovered the adsr~ object (after trying (and failing) to create my own using
> breakpoint function editors and line objects).
> Now it's a very simple object. The only problem I find is that it doesn't seem
> to return to zero. It ramps up to the inputted amplitude inthe set attack
> time, decays in X milliseconds to Y amplitude level and stays there. I have
> set a release time but it doesn't seem to do anything with it. I feel I must
> be missing something glaringly obvious here, but I'm a bit of a newb so that's
> allowed... right?
>
> Thanks for any advice you can give me,
>
> Joe Bicker
>
>

Stefan Tiedje's icon

ilikepie schrieb:
> My first hurdle is beat detection. I have a suspicion this may
> be either a completely worn-out subject or barely touched upon.

I think it is both, for your project the completely worn out version
might be fine. The Idea is to average the distance in time of events and
take this as measure. Works fine for steady beats. You'll find lots of
examples in the archives...

The barely touched version is to find a way to track beats also for
accelerando and ritardando. The average method would be always way too
late. Humans are pretty good at that though...

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com