mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst/equalizer/gstiirequalizer.c: Document parameter mapping.
Original commit message from CVS: * gst/equalizer/gstiirequalizer.c: Document parameter mapping.
This commit is contained in:
parent
3dbc3b7ad1
commit
7619871a05
2 changed files with 16 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-06-20 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* gst/equalizer/gstiirequalizer.c:
|
||||||
|
Document parameter mapping.
|
||||||
|
|
||||||
2007-06-20 Stefan Kost <ensonic@users.sf.net>
|
2007-06-20 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* gst/spectrum/gstspectrum.c: (gst_spectrum_event),
|
* gst/spectrum/gstspectrum.c: (gst_spectrum_event),
|
||||||
|
|
|
@ -311,9 +311,17 @@ gst_iir_equalizer_finalize (GObject * object)
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* args are in the range [-1 ... 1] with 0 meaning "no action"
|
/*
|
||||||
* convert to [-0.2 ... 1] with 0 meaning no action via the function
|
* converts gain values to scale factors.
|
||||||
* f(x) = 0.25 * 5 ^ x - 0.25
|
*
|
||||||
|
* arguments are in the range [-1 ... 1] with 0 meaning "no action"
|
||||||
|
* results are in the range [-0.2 ... 1] with 0 meaning "no action"
|
||||||
|
* via the function
|
||||||
|
* f(x) = 0.25 * 5 ^ x - 0.25
|
||||||
|
*
|
||||||
|
* visualize via gnuplot:
|
||||||
|
* set xrange [-1:1]
|
||||||
|
* plot 0.25 * exp (log (5) * x) - 0.25
|
||||||
*/
|
*/
|
||||||
static gdouble
|
static gdouble
|
||||||
arg_to_scale (gdouble arg)
|
arg_to_scale (gdouble arg)
|
||||||
|
|
Loading…
Reference in a new issue