Forums > MaxMSP

microphone used as sensor to control …

April 24, 2007 | 4:31 pm

Hi, All,

I want to use a voice of a person how speaks in a microphone as a sensor to control 3d things in Jitter.

Discription:

Let say there is a 3d ball that have to be on a default size 0.4 when there is no sound so 0.

When the person speaks softly then the ball has to become smaller.
When the person speaks louder then the ball has to become bigger.

When the person starts to speak how can i check then if his voice is softly or louder then a certain volume?

So my idea/solution is to put always a sound (noise) with a stable volume that keeps the ball on the default size 0.4 and then i can check if the voice is going under or above the volume of that stable sound (noise).

Problem:
I do not get my idea/solution properly and nice working! :(

Somebody ideas or little patch to make this working properly??

Thanks, grzz, Bart


April 25, 2007 | 10:46 am

bart schrieb:
> Somebody ideas or little patch to make this working properly??

What you need is called envelope following, there are some examples in
the standard distribution. peakamp~ should get you going. No need of
analyzing noise by the way, you can calculate the output of your
envelope follower with plain max objects… look at split and such…

If you’d add noise to your input, you’ll never recognize levels below
the threshhold…

Stefan


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


April 25, 2007 | 11:27 am

Hi,

Have a look at jitter Tutorial 28jAudioControl.pat,

falk

Am 24.04.2007 um 18:32 schrieb bart:

>
> Hi, All,
>
> I want to use a voice of a person how speaks in a microphone as a
> sensor to control 3d things in Jitter.
>
>
> Discription:
>
> Let say there is a 3d ball that have to be on a default size 0.4
> when there is no sound so 0.
>
> When the person speaks softly then the ball has to become smaller.
> When the person speaks louder then the ball has to become bigger.
>
> When the person starts to speak how can i check then if his voice
> is softly or louder then a certain volume?
>
> So my idea/solution is to put always a sound (noise) with a stable
> volume that keeps the ball on the default size 0.4 and then i can
> check if the voice is going under or above the volume of that
> stable sound (noise).
>
> Problem:
> I do not get my idea/solution properly and nice working! :(
>
> Somebody ideas or little patch to make this working properly??
>
> Thanks, grzz, Bart
>


April 25, 2007 | 5:56 pm

I am already testing it with peakamp~ and other possibility’s.

Thanks,

Grzz, Bart


April 25, 2007 | 9:42 pm

A low pass filtered signal in average in absolute mode and then snapshot to process in data.You will be able to see clearly the ranges (soft and loud ).


Viewing 5 posts - 1 through 5 (of 5 total)