• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Normalize samples?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Normalize samples?


  • Subject: Re: Normalize samples?
  • From: Urs Heckmann <email@hidden>
  • Date: Wed, 17 Nov 2004 03:43:57 +0100

Hiya Tim,

There's no simple recipe for your job. After all, the input level of any microphone can't be foreseen. Most time it's probably silent or maybe some background noise, but your software doesn't know when the maximum peak is reached.

I think what you look for is a so called "brickwall limiter" - That would be a compressor with an infinite compression ratio, a short attack time (say 5 - 20 milliseconds) and maybe a look ahead (latency!) of exactly that attack time. I don't know, maybe Apple's built in "AUPeakLimiter" Audio Unit might do the job?

On the other hand, there's an AU plugin called something like "Rider" which slowly adjusts the audio gain to a certain level... dunno if that is what you're after...

Cheers,

;)  Urs

Am 17.11.2004 um 03:15 schrieb Tim Omernick:

Hi,

I searched through the list archives and could not find an answer to this seemingly simple question. The application I'm working on needs to perform some processing on samples from a microphone, but only if the volume level of those samples exceeds some threshold.

Is there a way to normalize the samples passed to my IOProc so that that every amplitude value lies within the range {-1.0, 1.0}? I get different amplitude ranges for different microphones, even with identical volume settings.

Am I missing something?

Thanks,
-Tim Omernick
Engineer, The Omni Group

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Normalize samples?
      • From: Tim Omernick <email@hidden>
References: 
 >Normalize samples? (From: Tim Omernick <email@hidden>)

  • Prev by Date: Normalize samples?
  • Next by Date: Re: Normalize samples?
  • Previous by thread: Normalize samples?
  • Next by thread: Re: Normalize samples?
  • Index(es):
    • Date
    • Thread