From 2f43b8738cb52b4e07f386728638bd106c321e5b Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 20 Jul 2007 11:37:37 +0000 Subject: gst/equalizer/: Better algorith for the center frequencies. Subtract band filters from input for negative gains. Rewo... Original commit message from CVS: * gst/equalizer/gstiirequalizer.c: (gst_iir_equalizer_band_set_property), (gst_iir_equalizer_child_proxy_get_child_by_index), (gst_iir_equalizer_child_proxy_get_children_count), (gst_iir_equalizer_child_proxy_interface_init), (gst_iir_equalizer_class_init), (arg_to_scale), (setup_filter), (gst_iir_equalizer_compute_frequencies): * gst/equalizer/gstiirequalizer10bands.c: (gst_iir_equalizer_10bands_class_init): * gst/equalizer/gstiirequalizer3bands.c: (gst_iir_equalizer_3bands_class_init): * gst/equalizer/gstiirequalizernbands.c: Better algorith for the center frequencies. Subtract band filters from input for negative gains. Rework the gain mapping. --- gst/equalizer/gstiirequalizer3bands.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gst/equalizer/gstiirequalizer3bands.c') diff --git a/gst/equalizer/gstiirequalizer3bands.c b/gst/equalizer/gstiirequalizer3bands.c index 17e7b553..08a1dfac 100644 --- a/gst/equalizer/gstiirequalizer3bands.c +++ b/gst/equalizer/gstiirequalizer3bands.c @@ -27,9 +27,9 @@ * * * - * gst-launch filesrc location=song.ogg ! oggdemux ! vorbisdec ! audioconvert ! equalizer-3bands band1=-1.0 ! alsasink + * gst-launch filesrc location=song.ogg ! oggdemux ! vorbisdec ! audioconvert ! equalizer-3bands band1=1.0 ! alsasink * - * This lowers the volume of the 2nd band which is at 632 Hz by FIXME db. + * This raises the volume of the 2nd band which is at 1110 Hz by 6 db. * * */ @@ -84,16 +84,16 @@ gst_iir_equalizer_3bands_class_init (GstIirEqualizer3BandsClass * klass) gobject_class->get_property = gst_iir_equalizer_3bands_get_property; g_object_class_install_property (gobject_class, ARG_BAND0, - g_param_spec_double ("band0", "20 Hz", - "gain for the frequency band 20 Hz, ranging from -1.0 to +1.0", + g_param_spec_double ("band0", "110 Hz", + "gain for the frequency band 110 Hz, ranging from -1.0 to +1.0", -1.0, 1.0, 0.0, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); g_object_class_install_property (gobject_class, ARG_BAND1, - g_param_spec_double ("band1", "632 Hz", - "gain for the frequency band 632 Hz, ranging from -1.0 to +1.0", + g_param_spec_double ("band1", "1110 Hz", + "gain for the frequency band 1110 Hz, ranging from -1.0 to +1.0", -1.0, 1.0, 0.0, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); g_object_class_install_property (gobject_class, ARG_BAND2, - g_param_spec_double ("band2", "20 kHz", - "gain for the frequency band 20 kHz, ranging from -1.0 to +1.0", + g_param_spec_double ("band2", "11 kHz", + "gain for the frequency band 11 kHz, ranging from -1.0 to +1.0", -1.0, 1.0, 0.0, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); } -- cgit v1.2.1