Dither NoiseShaping #974
DAVIDSystems
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
are there any Dither and NoiseShaping classes in NAUDIO ? Unfortunately i could not find any. But maybe i'm wrong.
Actually i used ChatGPT to find me some Dither Code for C# and this is the response:
_**Dither and noiseshaping are techniques used in audio signal processing to reduce quantization noise (distortion) when converting a high-resolution audio signal to a lower bit depth. In C#, you can implement dither and noiseshaping using the Dither and NoiseShaping classes in the NAudio library.
Here is an example of how you might use these classes to apply dither and noiseshaping to an audio signal:
// create a dither instance with a triangular probability density function
var dither = new Dither(DitherType.Triangular);
// create a noise shaping instance with a shaping curve that emphasizes high frequencies
var noiseShaper = new NoiseShaping(NoiseShapingCurve.HighFrequency);
// apply dither and noise shaping to the input signal
var outputSignal = dither.ApplyDither(inputSignal, noiseShaper);
Keep in mind that these classes are just one way to implement dither and noiseshaping in C#. There may be other libraries or methods you can use to achieve the same result.**
Beta Was this translation helpful? Give feedback.
All reactions