Hi Mykle,

Thanks for sharing your normalizing gains.  As the author of gnoise
and pink_noise, I am happy to add two functions to noises.lib such as

pink_noise_m = pink_noise * 12.5; // Equalizes loudness to that of
no.noise (thanks Mykle Hansen) - beware clipping!

gnoisem = gnoise * 0.625; // Equalizes loudness to that of no.noise
(thanks Mykle Hansen)

where the "m" suffix means "matched loudness" or something like that.
Can anyone think of a better naming convention?  Another possibility
is "z" for zero-db-loudness, etc.

I am happy to add similar normalized versions for anything I wrote
(which does include the filter-based oscillators).

Note that the pink_noise normalization will typically result in
clipping at full scale, so less "pink" and more toward "white".

- Julius

On Sun, Mar 11, 2018 at 4:42 PM, Mykle Hansen <[email protected]> wrote:
> Hello,
>
> I have a question about levels in Faust.
>
> I have been experimenting with various noise sources in Faust,
> including the contents of noises.lib.  I find that when trying
> to design music/sound with these sources, it’s helpful to get
> them all to a similar audible level.  So I’ve started keeping
> a list of coefficients, to adjust the different generators
> to approximately equal amplitudes.
>
> I got into this while making a sound-effects generator
> using noise. I needed to select between no.noise, no.gnoise
> and no.pink_noise without an audible change in the levels.
> Those three generators produce significantly different absolute levels;
> To match them (approximately), I multiply no.gnoise by 0.625,
> and no.pink_noise by 12.5.  I believe that more exact
> values can be determined mathematically but I mostly
> used trial & error & a Faust dB meter.  I arbitrarily chose
> no.noise as the 1.0 reference level.
>
> I wonder if I am duplicating existing work here.  Do such coefficients
> exist somewhere in Faust already?
>
> If not, and it it sounds useful, I'd be happy to contribute
> a simple library for this, or to add the coefficients to
> other libraries (noises.lib and oscillators.lib) in some
> agreeable format.
>
> -mykle-
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Faudiostream-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users



-- 
Julius O. Smith III <[email protected]>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to