From 576d438efee22a9b9f9122b2af04f554ed88b564 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 20 Jun 2007 10:15:00 +0000 Subject: gst/equalizer/gstiirequalizer.c: Document parameter mapping. Original commit message from CVS: * gst/equalizer/gstiirequalizer.c: Document parameter mapping. --- gst/equalizer/gstiirequalizer.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'gst/equalizer') diff --git a/gst/equalizer/gstiirequalizer.c b/gst/equalizer/gstiirequalizer.c index 926b1e0a..ff11c9e7 100644 --- a/gst/equalizer/gstiirequalizer.c +++ b/gst/equalizer/gstiirequalizer.c @@ -311,9 +311,17 @@ gst_iir_equalizer_finalize (GObject * 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 - * f(x) = 0.25 * 5 ^ x - 0.25 +/* + * converts gain values to scale factors. + * + * 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 arg_to_scale (gdouble arg) -- cgit