IPB

Welcome Guest ( Log In | Register )

R128Norm, A simple normalizer based on EBU R128
kode54
post Jan 27 2011, 23:25
Post #1





Group: Admin
Posts: 4695
Joined: 15-December 02
Member No.: 4082



Welp. I went and made a normalizer DSP out of libebur128. Have fun with it. Oh, and I posted the source, which requires the libebur128 files from the R128Scan source.

It's currently hard coded to maintain a preview latency of 500ms, and uses the short-term loudness level measured from a three second window as the gain correction reference, which it updates every 100ms. I may make this configurable in the future.

Change log:
  • Version 1.10 - 2011-02-07 14:12 UTC:
    • Fixed a bug in libebur128 when handling weird sample rates.
  • Version 1.9 - 2011-02-05 06:11 UTC:
    • Re-enabled increasing the gain level.
    • Changed momentary and short-term loudness to gated loudness.
  • Version 1.8 - 2011-02-04 13:44 UTC:
    • Disabled the gain from increasing above 1.0, for now.
  • Version 1.7 - 2011-01-28 06:19 UTC:
    • Fixed initial gain values on startup, again.
  • Version 1.6 - 2011-01-27 23:43 UTC:
    • Now correctly flushes the buffer on playback termination.
  • Version 1.5 - 2011-01-27 23:07 UTC:
    • Reenabled momentary loudness polling.
    • Changed volume ramping to 1 dB every 50ms.
    • Current scale is now forced to the detected target scale after the initial buffering completes.
  • Version 1.4 - 2011-01-27 20:19 UTC:
    • Increased the latency to maintain at least 500ms worth of samples.
  • Version 1.3 - 2011-01-27 20:06 UTC:
    • Reverted short-term gain level changes to instantaneous again.
  • Version 1.2 - 2011-01-27 19:58 UTC:
    • Disabled momentary loudness polling and increased short-term loudness polling frequency.
  • Version 1.1 - 2011-01-27 19:22 UTC:
    • Adjusted gain level changes a bit.
  • Version 1.0 - 2011-01-27 19:00 UTC:
    • Initial release.
  • Version 0.0 - 2011-01-27 16:53 UTC:
    • Created project.
Go to the top of the page
+Quote Post
 
Start new topic
Replies
kode54
post Feb 4 2011, 14:51
Post #2





Group: Admin
Posts: 4695
Joined: 15-December 02
Member No.: 4082



Hopefully, locking the gain scale to 1.0 or less will fix that problem. I can't make the component request track change marks because it could cause gaplessness issues when using resampling DSPs and such.
Go to the top of the page
+Quote Post

Posts in this topic
- kode54   R128Norm   Jan 27 2011, 23:25
- - markanini   Seems useful for night listening among other thing...   Jan 28 2011, 08:23
- - mudlord   Oh yeh, its around 2.8x faster than my port of Gar...   Jan 29 2011, 18:43
|- - GeSomeone   QUOTE (mudlord @ Jan 29 2011, 19:43) its ...   Jan 31 2011, 00:26
- - kode54   When I add configuration, I will add an option to ...   Jan 31 2011, 01:52
- - TuNk77   Thank you for making this DSP kode54, now I can fi...   Feb 1 2011, 00:13
|- - geoslake   QUOTE (TuNk77 @ Jan 31 2011, 18:13) Thank...   Dec 20 2011, 09:35
|- - GeSomeone   QUOTE (geoslake @ Dec 20 2011, 10:35) I w...   Dec 20 2011, 18:28
|- - geoslake   Maybe with an "advanced" mode or somethi...   Dec 21 2011, 10:58
- - markanini   I don't mind that it raises volume of quiet p...   Feb 1 2011, 12:23
- - kode54   It already looks ahead, but it doesn't ask for...   Feb 2 2011, 05:52
- - markanini   That would explain the loud blasts during track tr...   Feb 3 2011, 00:10
- - kode54   It should not be blasting, because it adjusts the ...   Feb 3 2011, 09:18
|- - amalone   QUOTE (kode54 @ Feb 3 2011, 04:18) It sho...   Feb 3 2011, 15:59
- - markanini   Here's an excerpt where output clips at a trac...   Feb 3 2011, 20:27
- - kode54   Hopefully, locking the gain scale to 1.0 or less w...   Feb 4 2011, 14:51
|- - GeSomeone   QUOTE (kode54 @ Feb 4 2011, 15:51) Hopefu...   Feb 4 2011, 18:11
- - amalone   That change certainly made School from Crime of th...   Feb 5 2011, 00:11
- - markanini   I agree with GeSomeone. With the lastetst update R...   Feb 5 2011, 00:39
- - kode54   Try now. Although I had to make some ugly addition...   Feb 5 2011, 07:20
- - amalone   I installed 1.9 and tried it. At around the 12 sec...   Feb 5 2011, 08:08
- - markanini   It's better, blasts are reduced even though th...   Feb 5 2011, 16:21
- - GeSomeone   Thanks very much for your work, I'm sorry it m...   Feb 6 2011, 16:48
- - kode54   Updated. This DSP is not guaranteed to prevent cl...   Feb 7 2011, 15:26
|- - GeSomeone   QUOTE (kode54 @ Feb 7 2011, 16:26) This D...   Feb 7 2011, 22:26
- - amalone   Installed 1.10 and I think it blasted louder than ...   Feb 7 2011, 20:12
- - kode54   1.8 didn't increase the gain at all, so it was...   Feb 7 2011, 20:37
- - amalone   I understand. Well, the song "School" re...   Feb 7 2011, 20:58
- - markanini   If you get more time to tweak this plugin I think ...   Feb 14 2011, 03:26
- - geoslake   Thanks a lot for this plugin. However, could you a...   Apr 30 2011, 11:23
- - Nowings69   Since Replay Gain changed to R128, R128Norm adds N...   May 21 2011, 21:04
- - archetwist   It's a nice plugin and very useful but I have ...   Aug 5 2011, 20:04
- - SamDeRe81   I'm not sure if you're still updating this...   Nov 5 2011, 20:22
- - GeSomeone   Just tried version 1.11. It is really impressive. ...   Dec 19 2011, 21:02
|- - SamDeRe81   Thanks for continuing updates to this plugin   Dec 20 2011, 01:48
- - kode54   Yes, I did make a lot of constants into variables,...   Dec 21 2011, 22:54
|- - thuneau   This plugin is great. It's perfect for evening...   Jan 10 2012, 20:32
|- - thuneau   QUOTE (kode54 @ Dec 21 2011, 17:54) Yes, ...   Jan 17 2012, 20:22
- - kode54   The thing is, I'm not sure if VST supports suc...   Jan 10 2012, 23:46
|- - thuneau   QUOTE (kode54 @ Jan 10 2012, 18:46) The t...   Jan 11 2012, 08:19
- - Masza   I think this plugin works quite nice. It gives a c...   Aug 10 2012, 17:44
- - jackda   Hey guys, how is this plugin different from repla...   Jan 28 2013, 16:24
- - kode54   It uses the same algorithm of volume measurement a...   Jan 29 2013, 05:08
- - Fandango   Hm, having read the whole thread now and only been...   Mar 10 2013, 21:13
- - marc2003   http://www.hydrogenaudio.org/forums/index....=0...   Mar 10 2013, 22:56
- - Fandango   Well, the question has been raised in #18, but it ...   Mar 11 2013, 00:57
- - Denma Panter   @kode54 Can you add like this? 1. If There is Rep...   Mar 11 2013, 09:05
|- - kode54   QUOTE (Denma Panter @ Mar 11 2013, 01:05)...   Mar 12 2013, 17:46
|- - Denma Panter   I thank you very much. 1. RG info with Daymic DSP...   Mar 12 2013, 21:30
- - Aldem   Got a question about how to use this component. ...   Apr 26 2013, 02:57
- - Case   You do not need to disable ReplayGain to use this ...   Apr 26 2013, 19:32
- - EpicForever   Is this possible to make any configuration for thi...   May 1 2013, 18:39
|- - Aldem   QUOTE (EpicForever @ May 1 2013, 13:39) I...   May 1 2013, 20:13
- - EpicForever   For symphonic you've said... How about for pro...   May 1 2013, 20:15
- - EpicForever   I can't edit my older post so I have to double...   May 1 2013, 21:43
- - xapz   Really like this component, it's almost perfec...   Nov 6 2014, 02:47
|- - mire777   I use VST plugin to boost sound.. But possibility ...   Nov 6 2014, 09:49
- - xapz   Sure, adding more DSPs/VSTs are an alternative do ...   Nov 6 2014, 10:53
- - carpman   Here's what I'd do (until r128Norm has an ...   Nov 6 2014, 11:42
- - xapz   Sounds like a reasonable approach. Thanks for the ...   Nov 6 2014, 19:27


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th December 2014 - 17:08