X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flibretro-common%2Faudio%2Fdsp_filters%2FEQ.dsp;fp=deps%2Flibretro-common%2Faudio%2Fdsp_filters%2FEQ.dsp;h=5a69a68de974932fa9ba83e076146865781320c4;hb=3719602cbe883fb394a71353e20a10a4a306e814;hp=0000000000000000000000000000000000000000;hpb=8659d7fd2cdb11f63724ead0997f47f4c694f8c2;p=pcsx_rearmed.git diff --git a/deps/libretro-common/audio/dsp_filters/EQ.dsp b/deps/libretro-common/audio/dsp_filters/EQ.dsp new file mode 100644 index 00000000..5a69a68d --- /dev/null +++ b/deps/libretro-common/audio/dsp_filters/EQ.dsp @@ -0,0 +1,41 @@ +filters = 1 +filter0 = eq + +# Defaults + +# Beta factor for Kaiser window. +# Lower values will allow better frequency resolution, but more ripple. +# eq_window_beta = 4.0 + +# The block size on which FFT is done. +# Too high value requires more processing as well as longer latency but +# allows finer-grained control over the spectrum. +# eq_block_size_log2 = 8 + +# An array of which frequencies to control. +# You can create an arbitrary amount of these sampling points. +# The EQ will try to create a frequency response which fits well to these points. +# The filter response is linearly interpolated between sampling points here. +# +# It is implied that 0 Hz (DC) and Nyquist have predefined gains of 0 dB which are interpolated against. +# If you want a "peak" in the spectrum or similar, you have to define close points to say, 0 dB. +# +# E.g.: A boost of 3 dB at 1 kHz can be expressed as. +# eq_frequencies = "500 1000 2000" +# eq_gains = "0 3 0" +# Due to frequency domain smearing, you will not get exactly +3 dB at 1 kHz. + +# By default, this filter has a flat frequency response. + +# Dumps the impulse response generated by the EQ as a plain-text file +# with one coefficient per line. +# eq_impulse_response_output = "eq_impulse.txt" +# +# Using GNU Octave or Matlab, you can plot the response with: +# +# f = fopen('/path/to/eq_impulse.txt'); +# l = textscan(f, '%f'); +# res = l{1}; +# freqz(res, 1, 4096, 48000); +# +# It will give the response in Hz; 48000 is the default Output Rate of RetroArch