filoe / cscore

An advanced audio library, written in C#. Provides tons of features. From playing/recording audio to decoding/encoding audio streams/files to processing audio data in realtime (e.g. applying custom effects during playback, create visualizations,...). The possibilities are nearly unlimited.
Other
2.14k stars 450 forks source link

Is it possible to process audio based on LUFS scale? #469

Open donnyv opened 2 years ago

donnyv commented 2 years ago

I would like to take an audio file, process the audio to a certain LUFS scale and then save it to another format with that new volume. Is that possible with CSCore?

Artain commented 2 years ago

I don't know what you mean by certain LUFS scale because LUFS stands for (Loudness Units referenced to Full Scale) but if you want do process a audio file with LUFS specified in EBU R 128 than you only need to apply two filters.

Pre-filter (high pass) cutOffFrequency = 37.5 Hz Q = 0.5

RLB (high shelf) crossOverFrequency = 1500 Hz gain = 4.0 dB

This is possible with CSCore.