Re: Mixing manually vs. Mixer AudioUnit and avoiding clipping
Re: Mixing manually vs. Mixer AudioUnit and avoiding clipping
- Subject: Re: Mixing manually vs. Mixer AudioUnit and avoiding clipping
- From: Brian Willoughby <email@hidden>
- Date: Fri, 18 Jun 2010 12:57:13 -0700
On Jun 18, 2010, at 11:58, uɐıʇəqɐz pnoqɥɒɯ wrote:
On Jun 18, 2010, at 11:44 AM, Gregory Wieber wrote:
You have to think in terms of the max output signal being "1". You
need to divide that by the number of busses you have and set the
volume for each bus accordingly.
I tried something like that but it didn't work very well. Take,
for instance, the case where you have one note playing, 5 notes are
silent and two notes are playing at very low levels. Dividing the
mixed signal by 8 is not going to sound right.
I think the trick is to reduce the volume of the very high notes,
but not to reduce the lower notes.
Google has pointed me to some articles on compression or Dynamic
Range Compression... maybe that's the direction I need to move in...
Apple provides a limiter, which might work for your situation. Look
for AUPeakLimiter and also AUDynamicsProcessing. You can experiment
with either of these in AULab and then insert them in your AUGraph
after you know the parameters that work for you.
Brian Willoughby
Sound Consulting
_______________________________________________
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