PDA

View Full Version : PulseAudio Equalizer Script



Pages : [1] 2

psyke83
November 1st, 2009, 04:32 AM
http://ubuntuforums.org/attachment.php?attachmentid=136843&d=1258652669

Note 1: This package provides an equalizer interface for the LADSPA sound processing functionality of PulseAudio. If you wish to test or discuss an alternate PulseAudio equalizer implementation which does not rely on LADSPA processing, please see phish3 (http://ubuntuforums.org/member.php?u=970623)'s thread here (http://ubuntuforums.org/showthread.php?t=1378087).

Note 2: This script requires PulseAudio 0.9.19 or later to function properly, which has the following implications:

Jaunty users: your version of PulseAudio is outdated - you must upgrade. I recommend Luke Yelavich's PPA (https://launchpad.net/~themuso/+archive/ppa).
Karmic users: you do not need to upgrade PulseAudio. If you are already using the 0.9.20 packages from the semi-official Ubuntu Audio Dev PPA (https://launchpad.net/~ubuntu-audio-dev/+archive/ppa), the equalizer will continue working.
Lucid (testing) users: you have the latest version of PulseAudio - no further action is necessary.

Note 3: This script assumes that your PulseAudio setup is functioning properly. In other words: if your audio is not working, neither will this script.

Hey folks,

I'm releasing GUI and script for PulseAudio users that will set up system-wide equalized audio, without needing to restart PulseAudio or any running applications.

Enjoy!

Advantages:

Configurable 15 band equalizer for PulseAudio;
You can enable or disable equalized audio on-the-fly, without having to restart any running applications;
Offers the choice of using equalized audio for the current session or permanently;
No need to edit any configuration files by hand;
User-customizable: you can use any LADSPA audio processing plugin (http://www.ladspa.org/) (which can apply various audio effects beyond equalization);
Packaged as a .deb file for easy installation;
Graphical User Interface.


Installation:
Since v2.6, the pulseaudio-equalizer package is available from my PPA (https://launchpad.net/~psyke83/+archive/ppa), which you can access like so:

$ sudo software-properties-gtk --enable-ppa=psyke83/ppa; sudo apt-get update; sudo apt-get install pulseaudio-equalizer

Source code:
The source is available (https://code.launchpad.net/~psyke83/+junk/pulseaudio-equalizer) on Launchpad.

Usage:
Open the PulseAudio Equalizer (Applications -> Sound & Video). The interface should be fairly self-explanatory:


15 frequency bands you can adjust to your liking;
Preamp will boost your equalized volume (as a multiplier value from 1x to 4x);
Presets are included (based on VLC's built-in equalizer), or you can choose to save own favourite configuration as a new preset;
EQ Enabled will enable the equalizer in the current session (which applies to all running applications);
Keep Settings will configure your PulseAudio configuration to remain permanently equalized (and therefore, you won't need to run the PulseAudio Equalizer interface each time you login);
Advanced menu options so that you can reset all settings (useful for troubleshooting) or delete user presets;
Apply Settings will apply all changes.


TECHNICAL: How does the equalizer work?
The script uses a LADSPA audio processing plugin (http://www.ladspa.org/), specifically the Multiband EQ/mbeq_1197 (http://plugin.org.uk/) plugin from the swh-plugins package.

If you examine the pulseaudio-equalizer.sh script, you will see the following lines near the beginning:



# Default LADSPA plugin & control settings; control settings will be overridden if $HOME/.equalizerrc file exists.
PA_LADSPA_PLUGIN="mbeq_1197"
PA_LADSPA_LABEL="mbeq"
PA_LADSPA_CONTROL="-1,-1,-1,-1,-5,-10,-18,-15,-10,-5,-5,-5,-5,0,0"

What do these variables mean?

"mbeq_1197" refers to the LADSPA plugin file (located in /usr/lib/ladspa/);
"mbeq" refers to the internal label used by the LADSPA plugin (some plugin files can have multiple labels embedded inside);
the comma separated numbers refers to the actual equalization settings (detailed below).


You can use the "analyseplugin" utility from the "ladspa-sdk" package in order to see the detailed information on a particular LADSPA plugin. Here's the information for the plugin used by the script:


conn@inspiron:~$ analyseplugin mbeq_1197

Plugin Name: "Multiband EQ"
Plugin Label: "mbeq"
Plugin Unique ID: 1197
Maker: "Steve Harris <steve@plugin.org.uk>"
Copyright: "GPL"
Must Run Real-Time: No
Has activate() Function: Yes
Has deativate() Function: No
Has run_adding() Function: Yes
Environment: Normal or Hard Real-Time
Ports: "50Hz gain (low shelving)" input, control, -70 to 30, default 0
"100Hz gain" input, control, -70 to 30, default 0
"156Hz gain" input, control, -70 to 30, default 0
"220Hz gain" input, control, -70 to 30, default 0
"311Hz gain" input, control, -70 to 30, default 0
"440Hz gain" input, control, -70 to 30, default 0
"622Hz gain" input, control, -70 to 30, default 0
"880Hz gain" input, control, -70 to 30, default 0
"1250Hz gain" input, control, -70 to 30, default 0
"1750Hz gain" input, control, -70 to 30, default 0
"2500Hz gain" input, control, -70 to 30, default 0
"3500Hz gain" input, control, -70 to 30, default 0
"5000Hz gain" input, control, -70 to 30, default 0
"10000Hz gain" input, control, -70 to 30, default 0
"20000Hz gain" input, control, -70 to 30, default 0
"Input" input, audio
"Output" output, audio
"latency" output, control

As you can see from the text in blue, the mbeq_1197 plugin allows you to equalize 15 different bands. If you wish to customize the plugin or control settings, you can manually edit a preset and enter the appropriate LADSPA information (future versions will support different plugins easily via the interface). If you want to see the plugins available (for all audio processing effects, not merely equalization), use the "listplugins" and "analyseplugin <plugin_name>" utilities for guidance.

I have provided a "Laptop" preset which I have customized to improve the "tinny" audio from the internal speaker of my laptop (a Dell Inspiron 510m). While the settings may not be optimal for your setup, you may also find it useful for your own hardware.

If you have any problems, questions or suggestions to improve the script, please let me know.

Changelog:
v1.0 - 24/10/2009 - Initial version.
v1.1 - 25/10/2009 - Improved status checking; transition entire script to pacmd.
v1.2 - 25/10/2009 - Improved script indenting; added toggle option.
v1.3 - 25/10/2009 - Improved volume handling (existing levels are always maintained when toggling equalizer).
v1.4 - 25/10/2009 - Improved mute handling (existing mute setting is always maintained when toggling equalizer); renamed sink to match LADSPA plugin.
v1.5 - 02/11/2009 - Improved sink handling (user-defined sink will always be used/restored when equalizer is enabled/disabled); better status equalizer detection; better detection of running clients to transfer to equalized audio.
v1.6 - 04/11/2009 - Added options "always-on" and "always-off" to permanently store equalizer settings; added support for custom control settings (if $HOME/.equalizerrc file is present).
v1.7 - 04/11/2009 - Renamed options; options "enable-config" and "disable-config" will edit, backup & restore user configuration ($HOME/.pulse/default.pa) when possible; better status checking.
v1.8 - 04/11-2009 - Avoid duplicate module-ladspa-sink modules getting loaded; added undocumented options "write-equalizerrc" and "delete-equalizerrc" for interfaces.
v1.9 - 08/11/2009 - Now includes PyGtk interface; packaged as a .deb file; interface supports presets (but few meaningful presets are yet included). Requires testing.
v2.0 - 08/11/2009 - Added VLC's equalizers; better support for loading user presets.
v2.1 - 10/11/2009 - Added "debug" option to script; added swh-plugins, ladspa-sdk to depends; "Keep Settings" or selecting a preset will take effect immediately.
v2.2 - 14/11/2009 - Major re-write of PyGTK interface; now supports pre-amp, saving/deleting presets; fixed rare bug which caused "Keep Settings" to mute audio on restart.
v2.3 - 17/11/2009 - Better formatting of scale values on interface; ensure that preset list always remains sorted; script will automatically create user preset folder; confirmed Lucid Lynx compatibility.
v2.4 - 19/11/2009 - Preamp range now 1x to 2x, default is 1.5x and increments are now allowed; added Flat preset; selecting a preset will now apply settings immediately; improved script to make enabling EQ slightly faster; preamp setting is no longer controlled by presets; added application icon.
v2.5 - 04/02/2010 - Preamp range now between 0x and 2x, defaulting to 1x; improved script compatibility with new PulseAudio/Lucid Lynx version; misc bugfixes to prevent hangs on moving streams; optimized script to improve initialization speed and prevent loud pops when applying new settings; Fedora guideline compliance.
v2.6 - 05/02/2010 - Small configuration detection fix - first version in PPA.
v2.7 - 05/02/2010 - Small packaging fix.

sbersier
November 5th, 2009, 01:08 PM
This post has been removed since psyke83 (http://ubuntuforums.org/showpost.php?p=8210866&postcount=1) provided us for a nice python GUI. There no need anymore for the java GUI that was provided in this post and which made use of the now outdated v1.8 version of the pulseaudio-equalizer.sh

psyke83
November 5th, 2009, 02:09 PM
(Quoted from the PulseAudio Fixes thread):


OK. So...
- There is no more reference to an existing or non-existing default.pa file. It performs a "pulseaudio-equalizer status" operation.
- I didn't make use of the write-equalizerrc feature since I prefer to start in a neutral position (zeros everywhere)
- I separated in the GUI the two functions: (1)(enable, disable) and (2)(enable-config, disable-config)
It means that you can select the "Keep config" option without necessarily starting the equalizer
and as well you can deselect the "Keep config" option without stopping the equalizer
I did this because it was easier for me (I'm not a programmer. In fact, this is my first java program...)
- I've build a equalizer.jar and modified the install instructions.

The result is posted on the new thread and I will no more interfere in this one. My first post will be obsolete and will point to the new thread.
Thanks and best regards.
Steph

I see, thanks for the explanation, and thanks again for writing the interface.

Perhaps the next time you update the interface, you can also attach the equalizer.java file to your post, so that the source code is available?

alijaou
November 5th, 2009, 10:10 PM
Merci, ça fonctionne.

deankovell
November 5th, 2009, 10:59 PM
thanks psyke83 and sbersier. If I could I would give you some of my beans for this.

sbersier
November 6th, 2009, 01:22 AM
[removed]

vade
November 6th, 2009, 06:25 AM
Thanks a lot for working on this.

kjwein
November 7th, 2009, 01:36 AM
This fixed my sound problem, Thank you very much for doing this!

mojo2012
November 7th, 2009, 01:46 PM
Hi guys,

thank you so much for this little script an the config app. It solved my problem described here: http://ubuntuforums.org/showthread.php?p=8205002#post8205002.

Finally, sound is smootly and equally distributed over all speakers.

What I noticed is, that now the overall sound volume is much lower. Is there a way to make the whole sound louder as well?
I played around with the equalizer but couldn't make the volume louder.

sbersier
November 7th, 2009, 03:39 PM
Even if you push all the sliders to their maximum value?
If so, maybe you could have a look at http://ubuntuforums.org/showthread.php?t=795525 (http://ubuntuforums.org/showthread.php?t=795525)
You should look at "THE HARD WAY" section (if not already tried)...
... "So if you have a subwoofer and four speakers you're really in a bit of trouble here, because if you tell pulseaudio to use 6 channels, you get low frequency subwoofer sound, but surround sound movies send sound to a centre speaker that doesn't exist, and you don't get any voice on the front speakers. But if you tell pulseaudio that you have four channels, the subwoofer gets no sound. In this case you must define what channels to use manually."

It looks a bit like the problem you seem to have. I do not have a surround installation myself so I can't help you very much...

Good luck,
Steph

psyke83
November 7th, 2009, 08:19 PM
Hi guys,

thank you so much for this little script an the config app. It solved my problem described here: http://ubuntuforums.org/showthread.php?p=8205002#post8205002.

Finally, sound is smootly and equally distributed over all speakers.

What I noticed is, that now the overall sound volume is much lower. Is there a way to make the whole sound louder as well?
I played around with the equalizer but couldn't make the volume louder.

I don't have a surround configuration, so I'm not certain if there's a better way to solve this problem. The point of equalizer used by this script is not to redistribute volume across speakers.

Anyway, the best way to boost sound is to enable "flat-volumes" in PulseAudio, which will ensure that equalized volume is just as loud as regular audio (at least on my system). Here's the easiest way:


$ sed 's/flat-volumes = no/flat-volumes = yes/g' /etc/pulse/daemon.conf >~/.pulse/daemon.conf; pkill pulseaudio


Note that the above command will (necessarily) force PulseAudio to restart, so any running sound applications will also need to be restarted.

psyke83
November 8th, 2009, 08:50 AM
Folks,

I've packaged v1.9 of the script which now includes a GUI interface.

GUI Features:

15 equalizer bands available
ability to change settings without restarting applications;
ability to permanently save equalizer settings;
Convenient toggle checkmark to enable/disable the equalizer.

TODO:

Add more presets (the Flat and Laptop presets work correctly, the Pop preset is not accurate;
Add ability to save settings as a user-defined preset.

Problems (v1.9)
Unfortunately, although I included a .desktop file in the .deb package, the menu item for the PulseAudio Equalizer will not display. If anybody knows how to help, please get in touch with me (the PackagingFromScratch (https://wiki.ubuntu.com/PackagingGuide/Complete#Packaging%20from%20Scratch) instructions were of no use).

Until this problem is sorted, you can manually create a desktop link, like so:

Copy the .desktop file to your own desktop:
$ cp /usr/share/applications/pulseaudio-equalizer.desktop ~/Desktop/
Go to your desktop, double-click on the .desktop file, mark as trusted, and then the shortcut will appear properly.


You can grab the .deb from the first post (http://ubuntuforums.org/showthread.php?t=1308838).

fenian
November 8th, 2009, 09:14 AM
This rocks thanks a lot.

sbersier
November 8th, 2009, 10:34 AM
Psyke83: Indeed you GUI is a LOT better. In order not to introduce confusion I propose to remove mine. What do you think?
Best regards,
Steph

sbersier
November 8th, 2009, 10:56 AM
Hi Psyke83,
I've seen that in VLC media player the graphic equalizer already has presets (Classical, Reggae, Pop, ....) Maybe you could reproduce the values there.
Best regards,
Steph

psyke83
November 8th, 2009, 11:04 AM
Hi Psyke83,
I've seen that in VLC media player the graphic equalizer already has presets (Classical, Reggae, Pop, ....) Maybe you could reproduce the values there.
Best regards,
Steph

The next update will incorporate the VLC presets (though the frequency bands differ, I'll try to compensate) ;).

I plan to make this automatic in a future update, but if you have a setting that you like and want to save as a preset, you can do this:


Click "Apply Changes" to ensure the setting is saved.
Run:
$ cp ~/.equalizerrc ~/.pulse/presets/MyPreset.preset
The next time you run the GUI, you'll see "MyPreset" in the list.


Edit: fixed since v2.0

sbersier
November 8th, 2009, 12:49 PM
[removed since psyke83 incorporated the VLC settings]

psyke83
November 8th, 2009, 01:00 PM
I've interpolated (cubic spline) the values from VLC to your GUI. And since VLC uses a preamp value I've subtracted it in order to have 0 values for "Flat" setting.
I've attached a gzipped 'presets' directory.
Best regards,
Steph

I already added the VLC presets (manually) to v2.0.

I'm going to evaluate your files in depth a little later, but I immediately see a problem with the first (Classical) - it seems that the values are inverted... or am I wrong?

sbersier
November 8th, 2009, 01:01 PM
Note: I've intentionally rounded the values to integer values is it absolutely necessary? If not I can modify the previous attachement.

sbersier
November 8th, 2009, 01:05 PM
Ooops, yes indeed the signs are wrong for Classical settings. But if you've already done it. There no point for me to correct it.
Regards,
Steph

psyke83
November 8th, 2009, 01:10 PM
Ooops, yes indeed the signs are wrong for Classical settings. But if you've already done it. There no point for me to correct it.
Regards,
Steph

The problem is that I didn't compensate for the preamp, and used generally un-scientific methods ;). Feel free to fix up your presets, and if they're accurate, I'll include in the next update.

psyke83
November 8th, 2009, 01:14 PM
Note: I've intentionally rounded the values to integer values is it absolutely necessary? If not I can modify the previous attachement.

No, I don't believe that integers are required. However, I've limited the scales (sliders) to one decimal point in order to keep the interface compact.

psyke83
November 8th, 2009, 01:17 PM
Psyke83: Indeed you GUI is a LOT better. In order not to introduce confusion I propose to remove mine. What do you think?
Best regards,
Steph

That's not necessary unless you really want to.

If you wish to keep your interface, I recommend that you download the v1.8 script (still attached to the first post), attach to your post and change the instructions to reflect the fact that you need to use v1.8 and no later.

I've changed a few parts of the script to accommodate the Python interface (because it's my first attempt at programming in Python, I had to rely more on the bash script for passing status between scripts).

sbersier
November 8th, 2009, 01:27 PM
Okay. I will change my first post according to your recommendation.

Attached is the new 'presets' directory with decimal values (integer values are indeed not necessary) and with the 'Classical' setting corrected. I've made a quick check, it looks like the others a correct...

psyke83
November 8th, 2009, 01:40 PM
Okay. I will change my first post according to your recommendation.

Attached is the new 'presets' directory with decimal values (integer values are indeed not necessary) and with the 'Classical' setting corrected. I've made a quick check, it looks like the others a correct...

Unfortunately, some of your presets appear to cause distortion artifacts in music (I tried 'The Prodigy - Narayan' with your 'Full bass and treble' preset).

I assume this is because you adjusted for the preamp - it seems that the mbeq_1197 LADSPA plugin simply doesn't compensate for clipping artifacts.

Perhaps there's a better plugin we can use (I've tested tap_eq and it seems promising, but it's limited to 8 bands), but in the meantime we shouldn't correct the preamp on the VLC presets.

sbersier
November 8th, 2009, 01:50 PM
Attached: 'presets' without preamp correction. Changed interpolation method (gives better result on the sides) and corrected an error on the "reggae" setting. I hope that this time it's good...

Attachment modified.

sbersier
November 8th, 2009, 02:45 PM
I'm not so sure our hear can really make the difference between a 15-bands and an 8-bands equalizer. It just takes more time to adjust 15-bands...:razz: So, if the tap plugin is more convenient... why not?

Also, there is a quiet interesting idea for hear-disabled people. It would consist in being able to equalize separately left and right channels. Because, in some cases you can hear correctly from one hear and need some help to hear the trebles or basses from the other one.

psyke83
November 9th, 2009, 02:05 PM
I'm not so sure our hear can really make the difference between a 15-bands and an 8-bands equalizer. It just takes more time to adjust 15-bands...:razz: So, if the tap plugin is more convenient... why not?

Also, there is a quiet interesting idea for hear-disabled people. It would consist in being able to equalize separately left and right channels. Because, in some cases you can hear correctly from one hear and need some help to hear the trebles or basses from the other one.

It appears that the bw_eq ladspa plugin also causes distortion/clipping.

I checked your latest presets (without preamp correction), and they still cause clipping; when I manually reduced all the bands by 3.0, clipping vastly reduced (and in some presets, disappeared).

When using VLC's equalizer (with the PulseAudio equalizer disabled), no clipping occurs even when you move the bands to the maximum/minimum positions, so the accuracy of the values themselves are not the problem.

I propose that we take your latest presets, reduce all values by 3.0 or more, test the results, and adjust any remaining presets that cause distortion.

Vadi
November 9th, 2009, 02:09 PM
Presets, huh. Been looking to tinker with my voice for some VOIP-enabled games.

Going to give this a try.

edit: how can I select what stream do I want to apply this to?

psyke83
November 9th, 2009, 05:17 PM
Presets, huh. Been looking to tinker with my voice for some VOIP-enabled games.

Going to give this a try.

edit: how can I select what stream do I want to apply this to?

You can't. This applies the equalizer to the default sink (output device). You want to apply it to a source (input device), which I don't think is possible.

http://www.pulseaudio.org/wiki/Modules#module-ladspa-sink

Vadi
November 9th, 2009, 10:31 PM
Meh. And here I was all thinking I could put all those hours wasted into PA to good use :(

Hope it can work for sources soon.

nboddie
November 10th, 2009, 12:50 AM
Running Karmic, fully up to date.

I rebooted after installing this equalizer from the deb package, and all of a sudden pulseaudio wouldn't initialize when I logged in. Got the following errors in syslog:

Nov 9 17:32:45 nboddie-laptop pulseaudio[7399]: main.c: Module load failed.
Nov 9 17:32:45 nboddie-laptop pulseaudio[7399]: main.c: Failed to initialize daemon.
Nov 9 17:32:45 nboddie-laptop pulseaudio[7397]: main.c: Daemon startup failed.
Nov 9 17:32:46 nboddie-laptop pulseaudio[7405]: module-ladspa-sink.c: Master sink not found
Nov 9 17:32:46 nboddie-laptop pulseaudio[7405]: module.c: Failed to load module "module-ladspa-sink" (argument: "sink_name=ladspa_output.mbeq_1197.mbeq master= plugin=mbeq_1197 label=mbeq control=-0.1,-0.14,-0.12,-0.03,0.1,0.08,-0.12,-0.15,0.03,0.25,0.28,-0.9,-4.77,-8.63,-9.6"): initialization failed.

had to disable the equalizer with:

/ur/bin/pulseaudio-equalizer.sh disable-config

and then logging out and back in results in pulseaudio working correctly.

any fix for this problem?

psyke83
November 10th, 2009, 12:58 AM
Meh. And here I was all thinking I could put all those hours wasted into PA to good use :(

Hope it can work for sources soon.

No, because the ladspa module only works on sinks (outputs).

psyke83
November 10th, 2009, 01:10 AM
Running Karmic, fully up to date.

I rebooted after installing this equalizer from the deb package, and all of a sudden pulseaudio wouldn't initialize when I logged in. Got the following errors in syslog:

Nov 9 17:32:45 nboddie-laptop pulseaudio[7399]: main.c: Module load failed.
Nov 9 17:32:45 nboddie-laptop pulseaudio[7399]: main.c: Failed to initialize daemon.
Nov 9 17:32:45 nboddie-laptop pulseaudio[7397]: main.c: Daemon startup failed.
Nov 9 17:32:46 nboddie-laptop pulseaudio[7405]: module-ladspa-sink.c: Master sink not found
Nov 9 17:32:46 nboddie-laptop pulseaudio[7405]: module.c: Failed to load module "module-ladspa-sink" (argument: "sink_name=ladspa_output.mbeq_1197.mbeq master= plugin=mbeq_1197 label=mbeq control=-0.1,-0.14,-0.12,-0.03,0.1,0.08,-0.12,-0.15,0.03,0.25,0.28,-0.9,-4.77,-8.63,-9.6"): initialization failed.

had to disable the equalizer with:

/ur/bin/pulseaudio-equalizer.sh disable-config

and then logging out and back in results in pulseaudio working correctly.

any fix for this problem?

The script doesn't seem to write the master sink name to your configuration file.

Do this:

$ pulseaudio-equalizer.sh disable-config; pkill pulseaudio; sleep 10; pacmd info >~/Desktop/pacmd-info.log; pacmd stat >~/Desktop/pacmd-stat.log

Send me the two log file that are saved to your desktop.

nboddie
November 10th, 2009, 01:14 AM
files are attached.

psyke83
November 10th, 2009, 01:21 AM
files are attached.

Thanks, I just need a few more:


$ pkill pulseaudio; sleep 10; pulseaudio-equalizer.sh enable; sleep 5; pacmd info >~/Desktop/pacmd-info.log; pacmd stat >~/Desktop/pacmd-stat.log

Please send the logs again (same filenames on desktop).

nboddie
November 10th, 2009, 01:32 AM
here you go :)

sanskaras
November 10th, 2009, 01:47 AM
I got the same error in my syslog as above on restart. Otherwise this equalizer is awesome!


Nov 9 18:38:44 nick-laptop pulseaudio[2487]: module-ladspa-sink.c: Failed to load LADSPA plugin: file not found
Nov 9 18:38:44 nick-laptop pulseaudio[2487]: module.c: Failed to load module "module-ladspa-sink" (argument: "sink_name=ladspa_output.mbeq_1197.mbeq master=alsa_output.pci-0000_00_1b.0.analog-stereo plugin=mbeq_1197 label=mbeq control=0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0. 0,0.0,0.0,0.0,0.0"): initialization failed.
Nov 9 18:38:44 nick-laptop pulseaudio[2487]: main.c: Module load failed.
Nov 9 18:38:44 nick-laptop pulseaudio[2487]: main.c: Failed to initialize daemon.
Nov 9 18:38:44 nick-laptop pulseaudio[2482]: main.c: Daemon startup failed.

Attached are the from the commands in the previous post also.

sanskaras
November 10th, 2009, 01:59 AM
Well, I just figured out when I hit enable EQ or apply settings, the eq doesn't change. Probably because of these errors that simitaneously show up in the log - maybe related to the first errors?


Nov 9 18:52:25 nick-laptop pulseaudio[3331]: ratelimit.c: 178 events suppressed
Nov 9 18:52:29 nick-laptop pulseaudio[3331]: module-ladspa-sink.c: Failed to load LADSPA plugin: file not found
Nov 9 18:52:29 nick-laptop pulseaudio[3331]: module.c: Failed to load module "module-ladspa-sink" (argument: "sink_name=ladspa_output.mbeq_1197.mbeq master=alsa_output.pci-0000_00_1b.0.analog-stereo plugin=mbeq_1197 label=mbeq control=-16.0,-16.0,6.5,6.5,6.0,5.5,4.5,1.0,1.0,1.0,-8.0,-10.0,-16.0,-16.0,-20.4"): initialization failed.
Nov 9 18:52:32 nick-laptop pulseaudio[3331]: ratelimit.c: 198 events suppressed

And when the eq is enables or applied the volume jumps to maximum, which is well annoying lol.

psyke83
November 10th, 2009, 02:11 AM
I got the same error in my syslog as above on restart. Otherwise this equalizer is awesome!


Nov 9 18:38:44 nick-laptop pulseaudio[2487]: module-ladspa-sink.c: Failed to load LADSPA plugin: file not found
Nov 9 18:38:44 nick-laptop pulseaudio[2487]: module.c: Failed to load module "module-ladspa-sink" (argument: "sink_name=ladspa_output.mbeq_1197.mbeq master=alsa_output.pci-0000_00_1b.0.analog-stereo plugin=mbeq_1197 label=mbeq control=0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0. 0,0.0,0.0,0.0,0.0"): initialization failed.
Nov 9 18:38:44 nick-laptop pulseaudio[2487]: main.c: Module load failed.
Nov 9 18:38:44 nick-laptop pulseaudio[2487]: main.c: Failed to initialize daemon.
Nov 9 18:38:44 nick-laptop pulseaudio[2482]: main.c: Daemon startup failed.

Attached are the from the commands in the previous post also.

Your problem is different - install the packages "swh-plugins" and "ladspa-sdk". In the next update I'll add those as dependencies against the .deb file.

psyke83
November 10th, 2009, 02:48 AM
here you go :)

I didn't find a problem with your logs that explains the problem...

Can you install the latest update (2.1), open a terminal and run the following:

$ pulseaudio-equalizer.sh debug

When the process finishes, attach the newly-created ~/Desktop/pulseaudio-equalizer.log file.

nboddie
November 10th, 2009, 02:54 AM
installed 2.1, ran the debug script - log attached.

psyke83
November 10th, 2009, 03:14 AM
installed 2.1, ran the debug script - log attached.

I don't see any problems with those logs... everything should work fine.

You only have a problem if you choose "Keep Settings" (save the configuration), and then log out and back in?

Also can you confirm if the equalizer works in the current session (i.e. "EQ Enabled", or the "enable" script option)?

Perhaps give it another try, because I don't see why it shouldn't work.

Edit: you should re-download and install the 2.1 deb, as I re-uploaded with a fix. There was a slight error in the script causing the interface not to apply settings correctly (but it didn't affect the accuracy of the debug logs you sent).

nboddie
November 10th, 2009, 03:33 AM
OK,

Here's what I see now.

Leave 2.1 enabled.
restart system
when it comes up - no sound at all
fiddle with volume, sound preferences, equilizer (applying different presets, etc.) still no sound - leave sound up all the way (still no sound)
Run pulseaudio-equilizer.sh debug
volume applet has restarted, and now the sound is all the way down - move it up
play a song and now there is sound
The debug log is attached -

psyke83
November 10th, 2009, 05:11 AM
OK,

Here's what I see now.

Leave 2.1 enabled.
restart system
when it comes up - no sound at all
fiddle with volume, sound preferences, equilizer (applying different presets, etc.) still no sound - leave sound up all the way (still no sound)
Run pulseaudio-equilizer.sh debug
volume applet has restarted, and now the sound is all the way down - move it up
play a song and now there is sound
The debug log is attached -

It seems that your ALSA sink input is not initialized properly when PulseAudio is first run on your system, which causes a failure when setting up the equalized (LADSPA) sink. I'm not sure what's causing this issue, but here is a possible workaround:


Apply the preset/custom bands that you want. Ensure that "Enable EQ" is checked, but "Keep Settings" in unchecked.
Add a new GNOME startup entry which executes the following:
sleep 10; pulseaudio-equalizer.sh interface.applysettings


You may also notice that your login sound is not equalized along with some interruption in audio within the first 10 seconds of login - that's to be expected.

I'd appreciate to know if that helps.

nboddie
November 10th, 2009, 12:01 PM
OK,

So now you'll think I was crazy :(

I put together the startup script as you suggested, and in prep for putting it in I did:

pulseaudio-equalizer.sh enable
pulseaudio-equalizer.sh enable-config
rebooted

AND EVERYTHING WORKED!!! Without the startup script!!!
How disturbing....

SO at this point all seems well - maybe it was the 2.1 version? maybe I rolled the dice and came up sevens?

I'm flummoxed.

But at least for now I have equalized sound back....

Thanks for your efforts, if it hoses up again I'll post back here.

Cheers,

Ned

psyke83
November 10th, 2009, 12:21 PM
OK,

So now you'll think I was crazy :(

I put together the startup script as you suggested, and in prep for putting it in I did:

pulseaudio-equalizer.sh enable
pulseaudio-equalizer.sh enable-config
rebooted

AND EVERYTHING WORKED!!! Without the startup script!!!
How disturbing....

SO at this point all seems well - maybe it was the 2.1 version? maybe I rolled the dice and came up sevens?

I'm flummoxed.

But at least for now I have equalized sound back....

Thanks for your efforts, if it hoses up again I'll post back here.

Cheers,

Ned

I managed to replicate the issue, but I don't know what are the exact conditions that cause the problem.

Every time you click "Apply Settings", the configuration file will be re-written to ~/.pulse/default.pa (to update the control values). However, sometimes the bash script will not identify the master (ALSA) sink properly and write a blank entry instead of the master sink name.

I suspect there's some kind of timing issue/glitch when changing PulseAudio's running state. I'll have a look through the script and try to change it so that it works more reliably.

Screwbottle
November 10th, 2009, 12:31 PM
[QUOTE=psyke83;8210866]

(pulseaudio-equalizer.sh) from this post.


Hi psyke83

Need your help from this post. I have Karmic with all of the latest current patches and updates. Pulse Audio working fine, followed your guide, except for two issues.

Firstly could not find your script (edited out from the rest of your post above), so could not follow the instructions further, in connection with your script.
Secondly Pulse Audio does not hold my bass / low frequency emitter, between songs, all other surround channels fine (checking with Pulse Audio Volume Meter and can hear the audible difference) using Rhythmbox, XMMS, Totem or any other multimedia player. I have to invoke the bass channel by clicking on the desktop shortcut, and selecting a preset (most common one I like for my listening is "Soft"). Then the bass kicks in.

Any idea how I cna fix this to permanently activate and keep the low frequency channel active.

Regards
Andrew Brown aka Screwbottle

psyke83
November 10th, 2009, 01:26 PM
Firstly could not find your script (edited out from the rest of your post above), so could not follow the instructions further, in connection with your script.


The bash script is packaged in the .deb file, gets installed to "/usr/bin/pulseaudio-equalizer.sh", and is no longer intended for direct use (as a GUI now exists). Please ignore the "v1.8" instructions, they're redundant.


Secondly Pulse Audio does not hold my bass / low frequency emitter, between songs, all other surround channels fine (checking with Pulse Audio Volume Meter and can hear the audible difference) using Rhythmbox, XMMS, Totem or any other multimedia player. I have to invoke the bass channel by clicking on the desktop shortcut, and selecting a preset (most common one I like for my listening is "Soft"). Then the bass kicks in.

The "Keep Settings" option will ensure that PulseAudio always uses the equalizer settings (so it will survive a logout/restart/crash).

Keep in mind that this script's function is to provide software equalization alone - it does not take advantage of hardware bass/treble/equalizer functions. Also, I don't have a surround setup here, so I can't test if the LADSPA sink works correctly for all channels (perhaps not).

Screwbottle
November 10th, 2009, 02:57 PM
The bash script is packaged in the .deb file, gets installed to "/usr/bin/pulseaudio-equalizer.sh", and is no longer intended for direct use (as a GUI now exists). Please ignore the "v1.8" instructions, they're redundant.



The "Keep Settings" option will ensure that PulseAudio always uses the equalizer settings (so it will survive a logout/restart/crash).

Keep in mind that this script's function is to provide software equalization alone - it does not take advantage of hardware bass/treble/equalizer functions. Also, I don't have a surround setup here, so I can't test if the LADSPA sink works correctly for all channels (perhaps not).

Hi psyke83

Thanks for the prompt reply. Ummm I think there could be a problem with LADSPA sink for a multichannel setup. I followed your instructions "Keep Settings", rebooted and still the low frequency channel drops out, until I use the PulseAudio EQ. At least now after the reboot, it is holding my chosen EQ, and the low frequency, once selected via the PA EQ, over multiple songs. A small bug to live with until a fix is found. I'll keep tinkering.

As a matter of interest, in case this helps you, the sound chip is an onboard Realtek HD 82801I (LPCI string Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)), with 7.1 surround sound capability, although I use it with a Yamaha 5.1 surround analogue speaker setup. I know the chip set in LSPCI indicates Intel, as I think Realtek supply the silicon setup, and Intel dope it into their chipset, the X38 chipset, the mobo a MSI X-38 Diamond.

But other than that your instruction and technique from yourself and sbersier have definitely helped in "improving" my Linux sound. So to both of you your posts are very much appreciated, even for us long time Linux users.

Regards
Screwbottle

Lalika3
November 10th, 2009, 09:21 PM
Hi
pulseaudio-equalizer 2.1 all.deb install => Everything works.

Thanks.

(Excuse me my bad English)

starfleetcaptainrob
November 11th, 2009, 02:04 AM
Thank you! This worked great for me out of the box!

sbersier
November 11th, 2009, 05:55 AM
Hi Psyke83,
I've noticed that in v2.1 the Combo_box doesn't show up correctly at first (at least on my PC) because the list is too long and the window is positioned centered. If you add :

presets.set_wrap_width(4) to the declaration of your Combo_box (e.g. after presets = gtk.combo_box_new_text() ) then it solves this (very) minor problem.
Best regards,
Steph

sanskaras
November 11th, 2009, 06:24 AM
I installed the packages and everything works thanks! this is so much easier then the old equalizer.

I got a suggestion for the gui though, maybe a next version couldincorporate a zoom feature for the sliders that adjusts their range? Smaller adjustments might be easier that way, I don't see myself ever using more then +-10db. Right now with large range of the sliders, its hard to see visually (without reading the numbers) the difference in the frequencies.

keta
November 11th, 2009, 02:00 PM
Version 1.9 did not work for me, but with 2.1 everything works fine! Thanks sooo much!!! :D

sbersier
November 11th, 2009, 03:23 PM
Hi Psyke83,

Added two features:
1) the possibility to define the dB range (in the Options menu on the menu bar) as suggested by Sanskaras (http://ubuntuforums.org/showpost.php?p=8291476&postcount=54).
2) the ability to define user presets (not yet to remove them)

More details in the attachement.

Best regards,
Steph

2009/11/11 added Range options
2009/11/11 added user preset

Wipster
November 11th, 2009, 08:58 PM
Wow thankyou! I now have much better sound on my laptop it was driving me insane. Super Kudos ++

L8erG8er
November 12th, 2009, 10:00 AM
Psyke83:

Thanks for all of your hard work on this - I can't believe after several years of Ubuntu use we finally have a system wide equalizer!!

One question - when I move Karmic's new master volume slider up and down, I noticed the sound pops a little as the volume changes - anyone have any ideas on what causes that?

While the volume remains unchanged, no troubles, everything is great! Thanks again.

Zoot7
November 12th, 2009, 12:27 PM
@Psyke83

From one country man to another. Sincere Thanks!
I now have much better sound in Ubuntu than Windows.

psyke83
November 13th, 2009, 07:42 PM
Hi Psyke83,

Added two features:
1) the possibility to define the dB range (in the Options menu on the menu bar) as suggested by Sanskaras (http://ubuntuforums.org/showpost.php?p=8291476&postcount=54).
2) the ability to define user presets (not yet to remove them)

More details in the attachement.

Best regards,
Steph

2009/11/11 added Range options
2009/11/11 added user preset

Thanks for the modifications. I'm currently re-writing the interface (to add some new features, improve the appearance and clean up the code), will post it soon.

ratdude747
November 14th, 2009, 06:42 AM
:guitar::guitar::guitar::guitar::guitar:

you ROCK! thanks!. now my sound system is sounding like it should...

blacksm1th
November 14th, 2009, 10:28 PM
I can't run the last version 2.2. This is the output:

~:$ /usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py
Getting settings...
PulseAudio Equalizer/LADSPA Processor
-------------------------------------
Equalizer status: [disabled]
Equalizer configuration status: [disabled]
-------------------------------------
Traceback (most recent call last):
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 451, in <module>
Equalizer()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 297, in __init__
GetSettings()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 45, in GetSettings
f = open(eqconfig, "r")
IOError: [Errno 2] No such file or directory: '/home/azot/.pulse/equalizerrc'
~:$ /usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py
Getting settings...
PulseAudio Equalizer/LADSPA Processor
-------------------------------------
Equalizer status: [disabled]
Equalizer configuration status: [disabled]
-------------------------------------
Traceback (most recent call last):
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 451, in <module>
Equalizer()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 297, in __init__
GetSettings()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 50, in GetSettings
f = open(eqpresets, "r")
IOError: [Errno 2] No such file or directory: '/home/azot/.pulse/equalizerrc.availablepresets'
~:$ /usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py
Getting settings...
PulseAudio Equalizer/LADSPA Processor
-------------------------------------
Equalizer status: [disabled]
Equalizer configuration status: [disabled]
-------------------------------------
Traceback (most recent call last):
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 451, in <module>
Equalizer()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 297, in __init__
GetSettings()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 56, in GetSettings
ladspa_name = str(rawdata[1])
IndexError: list index out of range

After first an second error i created two empty files: "equalizerrc" and "equalizerrc.availablepresets" in ".pulse" dir. But then this "IndexError:"....

psyke83
November 15th, 2009, 12:34 AM
I can't run the last version 2.2. This is the output:

Try this:

$ pulseaudio-equalizer.sh interface.resetsettings

Then try to open the GUI again.

mestizo
November 15th, 2009, 12:35 AM
I can not download the deb file. It's a problem with the page, or what?. If there is another way to download it, be grateful. Thanks.

Edit: At the end, i can download the file with Internet Explorer on VirtualBox.

blacksm1th
November 15th, 2009, 02:19 AM
Try this:

$ pulseaudio-equalizer.sh interface.resetsettings

Then try to open the GUI again.

It's not working. I get the same output as before.

psyke83
November 15th, 2009, 02:47 AM
It's not working. I get the same output as before.

That's very odd. I deleted all files in ~/.pulse, restarted PulseAudio and tried the equalizer again - it works perfectly here. You may want to re-download the .deb file - I rebuilt the 2.2 package a few times due to small problems, but the latest version should work fine.

Judging from the output, your problem is probably due to an older version of the pulseaudio-equalizer.sh script present on your system. You should delete /usr/local/bin/pulseaudio-equalizer.sh, or any copies you may have installed elsewhere, and make sure that only one version exists in /usr/bin (provided by the .deb file).

Finaly, run:


$ pulseaudio-equalizer.sh debug

Attach the log file created on your desktop, and the contents of ~/.pulse/equalizerrc (if it exists).

blacksm1th
November 15th, 2009, 03:06 AM
Thank you psyke83. "/usr/local/bin/pulseaudio-equalizer.sh" was the problem.

sol12
November 15th, 2009, 06:30 AM
Thank you psyke83 !!!!!!!!!!!!!!!!!!!!

You did it....
I dont need my amplifier for my headphones anymore.
thxthxthxthxthxthx
(only thing: personal presets are not saved when i push the "save-button")

enabled + 3 % pulseaudio cpu usage. Thats not woth mentioning.

great job.

sbersier
November 15th, 2009, 09:34 AM
Thanks, installation is now much more simple it installs nicely where it should (psyke83, I think you can now remove the installation points in your post) Nothing to say. It just works (as far I can see). Good work!

psyke83
November 15th, 2009, 12:16 PM
Thank you psyke83 !!!!!!!!!!!!!!!!!!!!

You did it....
I dont need my amplifier for my headphones anymore.
thxthxthxthxthxthx
(only thing: personal presets are not saved when i push the "save-button")

enabled + 3 % pulseaudio cpu usage. Thats not woth mentioning.

great job.

I'll fix that in the next update. In the meantime, you just need to do this:

mkdir ~/.pulse/presets

F!o
November 16th, 2009, 09:44 PM
Hi psyke83,

your script is totaly what I was searching for since PulseAudio integration.
Equalizer works fine, but it kinda behaves odd, when changing the master volume.

When I'm listening to a song in Rhythmbox and I turn on the equalizer, changing the volume behaves just normal, but as soon as I stop playback and start it again, there is a crackling noise (sounds like dropouts or lag or something), whenever I change the master volume.

Any idea?

Thanks,
Flo

psyke83
November 16th, 2009, 10:17 PM
Hi psyke83,

your script is totaly what I was searching for since PulseAudio integration.
Equalizer works fine, but it kinda behaves odd, when changing the master volume.

When I'm listening to a song in Rhythmbox and I turn on the equalizer, changing the volume behaves just normal, but as soon as I stop playback and start it again, there is a crackling noise (sounds like dropouts or lag or something), whenever I change the master volume.

Any idea?

Thanks,
Flo

Unfortunately that seems to be an issue with the module-ladspa-sink in PulseAudio, and can't be fixed by me.

Just to confirm: the issue only happens at the moment that you change volume, and stops just after you stop changing the volume?

F!o
November 16th, 2009, 11:07 PM
Unfortunately that seems to be an issue with the module-ladspa-sink in PulseAudio, and can't be fixed by me.

Just to confirm: the issue only happens at the moment that you change volume, and stops just after you stop changing the volume?

Yup, it only occurs in the act of changing volume. It really sounds like lag.

Well, then I'm unfortunate. It doesn't really bother me, but it's just not the way it's supposed to be, is it?

Thanks,
Flo

psyke83
November 17th, 2009, 05:37 AM
Yup, it only occurs in the act of changing volume. It really sounds like lag.

Well, then I'm unfortunate. It doesn't really bother me, but it's just not the way it's supposed to be, is it?

Thanks,
Flo

It's a bug in Karmic's version of PulseAudio (0.9.19), and unlikely to be fixed in Karmic.

Coincidentally, I tested 0.9.20 (semi-official packages available from the Ubuntu Audio Dev PPA (https://launchpad.net/~ubuntu-audio-dev/+archive/ppa)), and I no longer notice any unusual sounds when changing volume levels.

ibuclaw
November 17th, 2009, 04:42 PM
It's a bug in Karmic's version of PulseAudio (0.9.19), and unlikely to be fixed in Karmic.

Coincidentally, I tested 0.9.20 (semi-official packages available from the Ubuntu Audio Dev PPA (https://launchpad.net/~ubuntu-audio-dev/+archive/ppa)), and I no longer notice any unusual sounds when changing volume levels.

So the odd pop, click or glitch in audio is limited to Karmic?
Actually, scratch that, it seems to occur every time an I/O operation occurs (ie: reading data from disk.)

update:
Just upgraded to the Ubuntu PPA Dev repository version and it has indeed gone!

update2:
The preamp is LOUD. And there is a noticeable distortion in Music. A limiter or compressor to keep the output audio tame would be nice. But having a quick look, seems to be outside the jurisdiction of your scripts.

One itch though, it would be nice to have it in realtime, rather than clicking "Apply". ;)

Regards
Iain

F!o
November 17th, 2009, 04:54 PM
It's a bug in Karmic's version of PulseAudio (0.9.19), and unlikely to be fixed in Karmic.

Coincidentally, I tested 0.9.20 (semi-official packages available from the Ubuntu Audio Dev PPA (https://launchpad.net/~ubuntu-audio-dev/+archive/ppa)), and I no longer notice any unusual sounds when changing volume levels.

I just updated to 0.9.20, but I still have the same situation as before.
Actually nothing changed, I think... Are you sure it's gone for you?

Thanks,
Flo

psyke83
November 17th, 2009, 05:54 PM
So the odd pop, click or glitch in audio is limited to Karmic?
Actually, scratch that, it seems to occur every time an I/O operation occurs (ie: reading data from disk.)

I didn't notice pops happening due to I/O load, even with 0.9.19 - that's odd.


update:
Just upgraded to the Ubuntu PPA Dev repository version and it has indeed gone!

Phew! Less work for me ;)


update2:
The preamp is LOUD. And there is a noticeable distortion in Music. A limiter or compressor to keep the output audio tame would be nice. But having a quick look, seems to be outside the jurisdiction of your scripts.

A limiter/compresser would mean chaining two LADSPA sinks together, which would increase CPU usage. A more reasonable alternative is to use more conservative values for the presets.

If you take a look at previous posts, sbersier and I discussed the issue of distortion in the presets. Reducing the values will resolve the issue - as an example, try the Laptop preset. It has less/no distortion because it uses smaller values compared to the other presets.

The Laptop preset is my own personal preset (which I had spent quite some time tuning), but the rest of the presets are a very quick port from the VLC's built-in list of equalizers, with little testing. I assume VLC has a built-in limiter, but the LADSPA plugin that the script uses does not.

I'll refine the presets in the next update, which should hopefully eliminate distortion in all cases.


One itch though, it would be nice to have it in realtime, rather than clicking "Apply". ;)


Me too :). Unfortunately, it's not possible. See this (http://ubuntuforums.org/showpost.php?p=8335138&postcount=10) post from the Lucid forum.

psyke83
November 17th, 2009, 06:04 PM
I just updated to 0.9.20, but I still have the same situation as before.
Actually nothing changed, I think... Are you sure it's gone for you?

Thanks,
Flo

Maybe it's volume distortion? Reduce the pre-amp to 1x, and try with the EQ enabled but all bands set to 0.0. See if the distortion is gone.

ibuclaw
November 17th, 2009, 06:41 PM
I didn't notice pops happening due to I/O load, even with 0.9.19 - that's odd.

I am on a Netbook, so my testimonial should be treated as a gauge for how well this runs on low-end machines. ;)



A limiter/compresser would mean chaining two LADSPA sinks together, which would increase CPU usage. A more reasonable alternative is to use more conservative values for the presets.

Oh, you use a ladspa plugin to control it?
Fixing it should be easy then.

Rather than toolchaining plugins, write your own that has both in one.
I've never done LADSPA programming myself, but I am familiar with how sound processing works.

For everything else you've mentioned. Thanks!

Regards
Iain

musarraf172
November 23rd, 2009, 03:30 PM
This is good guide. Thanks for that. But one thing I dont like i.e whenever I am changing the equalizer setting it makes my master and PCM volume 100 % > The sound suddenly becomes very loud...

psyke83
November 23rd, 2009, 04:36 PM
This is good guide. Thanks for that. But one thing I dont like i.e whenever I am changing the equalizer setting it makes my master and PCM volume 100 % > The sound suddenly becomes very loud...

Yes, that's normal - the ALSA sink volume will be set to the preamp multiplier. For example: if the multiplier is 1.5, your volume will be set to 150%.

When the equalizer is active, the LADSPA sink becomes default, so that becomes the main volume control, not the ALSA sink.

Turn the preamp down to 1.0x if you don't need a volume boost.

musarraf172
November 23rd, 2009, 05:08 PM
Yes, that's normal - the ALSA sink volume will be set to the preamp multiplier. For example: if the multiplier is 1.5, your volume will be set to 150%.

When the equalizer is active, the LADSPA sink becomes default, so that becomes the main volume control, not the ALSA sink.

Turn the preamp down to 1.0x if you don't need a volume boost.

Thanks dear. That solved my problem.....:D:D:D:D:popcorn:

diegodiaz
November 23rd, 2009, 06:44 PM
You need to update phyton to make it work right? because whe i try to install it, it says something like Pyhton-support =<0.90.0

psyke83
November 23rd, 2009, 07:17 PM
You need to update phyton to make it work right? because whe i try to install it, it says something like Pyhton-support =<0.90.0

You're on Jaunty?

NoVista
November 24th, 2009, 01:13 AM
Ubuntu has needed a system wide EQ forever.
This is wonderful.

Since the gain needs to remain constant with/without equalization, it would help if the preamp slider would go lower than x1.0 to attain this, especially needed if one is an audiophile, as the x1.0 threshold may not be low enough.
The original intent of an EQ, was to achieve a level sound across the spectrum, dependent upon the listening environment. Most people end up adding gain when achieving this.
So the only way to do a true listening comparison, between an equalized/non-equalized playback, is to have no change in total volume db. Hence the need for a lower threshold.

ENigma885
November 24th, 2009, 02:03 PM
Adding Bauer stereophonic-to-binaural DSP (http://bs2b.sourceforge.net/) to the equalizer's GUI will be a great improvement. I'm using this specific plugin with Audacious and it's just perfect.

**The developer releases a LADSPA version as well. (can be downloaded from HERE (http://downloads.sourceforge.net/project/bs2b/LADSPA%20plugin/0.9.1/ladspa-bs2b-0.9.1.tar.bz2?use_mirror=garr))

psyke83
November 24th, 2009, 04:41 PM
Adding Bauer stereophonic-to-binaural DSP (http://bs2b.sourceforge.net/) to the equalizer's GUI will be a great improvement. I'm using this specific plugin with Audacious and it's just perfect.

**The developer releases a LADSPA version as well. (can be downloaded from HERE (http://downloads.sourceforge.net/project/bs2b/LADSPA%20plugin/0.9.1/ladspa-bs2b-0.9.1.tar.bz2?use_mirror=garr))

The module-ladspa-sink (http://pulseaudio.org/wiki/Modules#module-ladspa-sink) only supports LADSPA plugins with a single "Input" and single "Output" port:


Currently this module only works with plugins that have one audio input port named "Input" and one output with name "Output". Patches welcome!

Here's the LADSPA plugin information:


conn@inspiron:~/Downloads/ladspa-bs2b-0.9.1$ analyseplugin bs2b

Plugin Name: "Bauer stereophonic-to-binaural 0.9.1 (3.1.0)"
Plugin Label: "bs2b"
Plugin Unique ID: 4221
Maker: "Boris Mikhaylov, Sebastian Pipping"
Copyright: "GPL 2 or later"
Must Run Real-Time: No
Has activate() Function: Yes
Has deativate() Function: No
Has run_adding() Function: No
Environment: Normal
Ports: "Lowpass filter cut frequency (Hz)" input, control, 300 to 2000, default 725
"Feeding level (dB)" input, control, 1 to 15, default 4.5
"Input left" input, audio
"Input right" input, audio
"Output left" output, audio
"Output right" output, audio


There are two input/output ports, so it won't work with PulseAudio unless this limitation is removed.

cloudscream
November 24th, 2009, 06:06 PM
FINALLY. An equalizer with a GUI for PulseAudio. Thank you very much! :KS Can't live without equalizers...
Now I'm using this with MPD. This is a very very useful addition!

I' running Karmic 64bit here with the latest updates. I've been using this for a week now with no problems.

sbersier
November 26th, 2009, 09:10 AM
Hi, Psyke83
In a next version (if there is) I suggest you to change lines 402-403 by the following:



preampscale.set_range(0,2)
# preampscale.set_increments(1, 1)
It will allow users to apply any preamp gain (not only integer values) between 0x and 2x

Also a good thing would be to save preamp settings for each preset since the needed preamp value is closely related to the chosen preset.

Best regards,
Steph

treesurf
November 26th, 2009, 11:03 AM
Thanks so much, this has improved the sound from my laptop. I'm still trying to figure out how to get PulseAudio to recognize the "subwoofer" on my laptop (Lenovo Y550 with Realtek ALC272), which would really make things sound much better. This is a definite step in the right direction, though.

One thing I have noticed, though: When I apply the laptop preset the volume has a definite jump up (which is a good thing!). However, when I use the hardware keys to lower the volume down towards zero, the volume gets trapped back in it's previous low range. Basically, I can't use the hardware volume keys to go back up to the higher volume of the laptop preset once I've used them to go down below the stock max volume. I have to open the gui back up and click the "EQ Enabled" box again.

SilverFrost
November 26th, 2009, 04:02 PM
Finally a good system-wide equalizer. Now the sound sounds very much better than before.

Thanks!

funnylife_ma
November 26th, 2009, 07:25 PM
hi psyche83,

can u host ur project on sthg like googlecode or sourceforge so that other people can profit from it ?

ramizz
November 27th, 2009, 06:55 PM
Yahoooooooooooo Thanks a million dude !!! I've been hoping for such a things for years !!!!! (in fact since I switched my laptop to ubuntu)

wolfshark
November 28th, 2009, 02:56 PM
This script is great! I need to leave Preamp to min though because it really screws the sound. Otherwise get this to the official packages ASAP :)

sigurnjak
November 29th, 2009, 08:24 AM
Bravo ! Amazing work !
How ever i have one minor problem . After reboot my volume is muted. How do i set to unmute at boot time . I noticed it when i lost cool login sound i found and set it up .

EQ set up rocks , keep up good work !:guitar:

psyke83
November 29th, 2009, 04:24 PM
Bravo ! Amazing work !
How ever i have one minor problem . After reboot my volume is muted. How do i set to unmute at boot time . I noticed it when i lost cool login sound i found and set it up .

EQ set up rocks , keep up good work !:guitar:

The next time you reboot and find your sound muted, don't change anything (i.e. leave the sound muted/unmodified), and run the following command:


$ pulseaudio-equalizer.sh debug

Then attach the log file that's saved to your desktop so I can see the problem.

sigurnjak
November 29th, 2009, 05:47 PM
Here it is .

lumanda
November 29th, 2009, 11:18 PM
Thanks a lot for this. What a boost. The sound is significantly increased.

drvista
November 30th, 2009, 01:15 AM
thank you for the great script but i think i have found a bug
whenver you change the preset the sound disappear for one sec and return
using karmic with the official packages only no package other than ubuntu official

topgun
November 30th, 2009, 11:49 AM
Thanks again for this fabulous package, my trance sound rocks more and more woot :D

meindian523
November 30th, 2009, 01:19 PM
/me has observed that reducing the volume in steps (eg by rolling the mouse wheel while pointing at the speaker icon in the notification area), the sound seems to jitter and then adjust to the new volume. If I'm not mistaken, this was the same issue reported by ibuclaw (aka tinivole). Could using Compiz be a part of the problem?

wd5gnr
November 30th, 2009, 02:38 PM
This is great work. Two observations/questions.

1) I run kubuntu. The python interface has a default icon hardwired into the script on line 362 and that entire folder doesn't exist on my machine. I just pointed it somewhere else, but might consider some simpler way of dealing with that.

2) The equalizer itself assumes that I want to attach it to one of my sound cards. But its the wrong sound card. Setting the PA default sink from padevchooser doesn't help that. It appears that padevchooser is broken. Using pacmd to do it manually work. I don't know if that is persistent or if I need to go munge some pulseaudio rc file somewhere.

But very nice! Thanks.

evoka0
November 30th, 2009, 04:06 PM
Hi,

Great work, thank you very much, you made my music rock again !!. However i have a problem since i use the laptop speakers or a usb headset to listen music, and it only works on the laptop speakers, when i change the sound output to the headset using pulseaudio applet voulume control, the equalization is gone. Hope there is a workarround to this problem.

Regards

psyke83
November 30th, 2009, 06:12 PM
This is great work. Two observations/questions.

1) I run kubuntu. The python interface has a default icon hardwired into the script on line 362 and that entire folder doesn't exist on my machine. I just pointed it somewhere else, but might consider some simpler way of dealing with that.

I'm not sure how to define a "stock" icon that would also work with KDE. Perhaps it's easier to install humanity-icon-theme and/or hicolor-icon-theme instead? Maybe there's a way to fallback to the default application icon; I'll investigate that.


2) The equalizer itself assumes that I want to attach it to one of my sound cards. But its the wrong sound card. Setting the PA default sink from padevchooser doesn't help that. It appears that padevchooser is broken. Using pacmd to do it manually work. I don't know if that is persistent or if I need to go munge some pulseaudio rc file somewhere.

For the sake of simplicity, the equalizer will configure itself to use the default PulseAudio sink at the moment that you enable the "EQ Enabled" checkmark.

The solution is to set the desired sound card as the default before you enable the equalizer. Your suspicions are correct about padevchooser - it's broken. Instead, set the default sink via the PulseAudio Volume Control (pavucontrol) application - the green checkmark corresponding to the desired sound card on the Output Devices tab.

You can do the following:
1. Completely reset/disable the equalizer (via the Advanced menu of the interface). Close the equalizer interface.
2. Run PulseAudio Volume Control (pavucontrol), and set the desired sound you wish to use as the default (via the green checkmark button on the Output Devices tab).
3. Re-open the equalizer and enable it via the "EQ Enabled" checkmark.

Providing that equalized audio now works with the desired card, you can enable the "Keep Settings" checkmark - this will save the current settings to the $HOME/.pulse/default.pa file.

psyke83
November 30th, 2009, 06:17 PM
Hi,

Great work, thank you very much, you made my music rock again !!. However i have a problem since i use the laptop speakers or a usb headset to listen music, and it only works on the laptop speakers, when i change the sound output to the headset using pulseaudio applet voulume control, the equalization is gone. Hope there is a workarround to this problem.

Regards

The equalizer does not support hotplugging of devices, unfortunately. When you click the "EQ Enabled" checkmark, it configures the equalized audio using the sound card that was set as the default at the moment you enabled it.

If you hotplug a new device, the equalized sink will not reconfigure itself.

psyke83
November 30th, 2009, 06:20 PM
/me has observed that reducing the volume in steps (eg by rolling the mouse wheel while pointing at the speaker icon in the notification area), the sound seems to jitter and then adjust to the new volume. If I'm not mistaken, this was the same issue reported by ibuclaw (aka tinivole). Could using Compiz be a part of the problem?

Compiz isn't related.

The distortion during volume changes is unavoidable, and appears to be a quirk of the PulseAudio LADSPA module.

When the equalizer is enabled, there are two sinks (output devices) active:

the master sink (your real sound card), which is always set to the preamp volume multiplier (preamp of 1.0x is 100% volume, preamp of 1.5x is 150%, etc.).
the ladspa sink, which filters audio through the master sink and becomes the new source for system volume control.

You can observe this behaviour using the PulseAudio Volume Control application on the Output devices tab.

psyke83
November 30th, 2009, 06:24 PM
Here it is .

Your log is unusual.

I don't see any problem with the output, but I can tell that you didn't use the "Keep Settings" checkmark of the interface. You do realize it's necessary to allow the equalizer to survive reboots, don't you?

If your sound is getting muted at startup when the equalizer isn't active, then it's not the fault of the equalizer.

wd5gnr
November 30th, 2009, 09:42 PM
The solution is to set the desired sound card as the default before you enable the equalizer. Your suspicions are correct about padevchooser - it's broken. Instead, set the default sink via the PulseAudio Volume Control (pavucontrol) application - the green checkmark corresponding to the desired sound card on the Output Devices tab.


Good tip. I just used pacmd, but agree that's better. Probably explains why I never got ear candy to work. I assumed padevchooser's default seetings were working ;)

kimme
December 1st, 2009, 01:59 AM
Thanks for this script. This latest Ubuntu 9.10 (Karmic Koala) has finally made pulse audio work without hitches and now an equalizer also.... :)

afrodeity
December 1st, 2009, 06:05 PM
Congratulations, you've gone and done it!!! System wide equaliser for Ubuntu. Can't thank you enough, it was on my wishlist. Now all we need are mods, effects, some visualisation. Keeps getting better and better.This should definitely be part of the standard install. :)

I see there are cool presets!

Not sure how it relates to my onboard VT1708/A VIA Azalia HDAC onboard sound, but it easily throws up distortion. Will play some more with the pulsaudio levels to see what's up.Maybe there's a way to maximise integration with VIA?;)

afrodeity
December 1st, 2009, 06:47 PM
Crikey, Pulseaudio is now eating my CPU, sitting at 53% when I check top! How do I lower this, I only have a 1.6 ghz Celeron?

UPDATE:It could be the Pulseaudio Volume Control, I see the CPU use for Pulsaudio went down all of a sudden, but this because card configuration got dumped.Its not showing up under configuration (no cards available for configuration). No sound, dummy output!

tonyriva
December 1st, 2009, 08:02 PM
It seem that if the config file doesn't exist the gui doesn't create it and simply fail.


Traceback (most recent call last):
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 519, in <module>
Equalizer()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 354, in __init__
GetSettings()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 46, in GetSettings
f = open(eqconfig, "r")
IOError: [Errno 2] Nessun file o directory: '/home/antonio/.pulse/equalizerrc'


I miss something?

afrodeity
December 2nd, 2009, 09:22 AM
Okay I have my pulseaudio volume control configuration which controls Azalia HDAC set to Analog Stereo Ouput + Digital Stereo (IEC958) Input.

There definitely some interactions going on between the Azalia and the LASDPA for example, both are listed in the Output Devices tab. Wonder if this just means I need a soundcard?

psyke83
December 3rd, 2009, 09:48 PM
It seem that if the config file doesn't exist the gui doesn't create it and simply fail.


Traceback (most recent call last):
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 519, in <module>
Equalizer()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 354, in __init__
GetSettings()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 46, in GetSettings
f = open(eqconfig, "r")
IOError: [Errno 2] Nessun file o directory: '/home/antonio/.pulse/equalizerrc'


I miss something?

The configuration file should be written automatically by the bash script at /usr/bin/pulseaudio-equalizer.sh.

If you had an older version of the script in /usr/local/bin/ (before it was packaged in .deb form), it will conflict with the newer version provided by the .deb package in /usr/bin/ - you should delete it.


$ sudo rm /usr/local/bin/pulseaudio-equalizer.sh

If your problem isn't solved, please send me the log from this command:

$ pulseaudio-equalizer.sh debug

phish3
December 4th, 2009, 05:37 AM
Hi - I'm one of the smaller time pulseaudio devs and it took me a long time to get around to replying to this thread but I thought I should mention that upstream pulseaudio has a native equalizer (with an unofficial ppa). It should be officially released soon and available in the main audio PPAs for 9.10
This equalizer has pretty much an infinite number of bands and is realtime and of higher quality... additionally mbeq lies about frequency meanings.
Looky at the front-end here:
http://yasdb.blogspot.com/2009/08/qpaeq-dynamic-band-subdivision.html
How to setup here:
http://www.pulseaudio.org/wiki/SystemEqualizer

psyke83
December 4th, 2009, 05:52 AM
Hi - I'm one of the smaller time pulseaudio devs and it took me a long time to get around to replying to this thread but I thought I should mention that upstream pulseaudio has a native equalizer (with an unofficial ppa). It should be officially released soon and available in the main audio PPAs for 9.10
This equalizer has pretty much an infinite number of bands and is realtime and of higher quality... additionally mbeq lies about frequency meanings.
Looky at the front-end here:
http://yasdb.blogspot.com/2009/08/qpaeq-dynamic-band-subdivision.html
How to setup here:
http://www.pulseaudio.org/wiki/SystemEqualizer

Thanks for the info.

I tried using your qpaeq interface on a GNOME system (with the necessary eq-enabled pulseaudio packages from a PPA, and the proper python qt packages installed for the interface) and it didn't work. Also, are there any plans to release a GTK interface?

phish3
December 4th, 2009, 06:51 AM
Thanks for the info.

I tried using your qpaeq interface on a GNOME system (with the necessary eq-enabled pulseaudio packages from a PPA, and the proper python qt packages installed for the interface) and it didn't work. Also, are there any plans to release a GTK interface?

Recent build after instructions on the wiki above followed? If so, can you post the errors or hop by freenode #pulseaudio to investigate the problem more? I have no official plans for a gtk client but the backend uses dbus to communicate so you're free to create one and drop it in if you're adamant about not using qt.

NoVista
December 4th, 2009, 01:10 PM
WoW!

What is that, 75 bands? I lost count.
That would make a killer notch filter for shortwave radio use.

sergio.ub
December 5th, 2009, 10:52 AM
well, thank you all for your efforts.
Effectively, i have some questions and some suggestions about "official" and "psyche's" equalizer.
Since i embraced linux some years ago, i missed environmental effects applied to sound (who has audigy/x-fi or recent asus high-end cards and use win can realize what i mean). Still i have a win partition i use only to play songs (using AMAROK, although 2.1!) with the creative sound server. some presets of environmental effects (like theater, or new age) are really stunning.
Now, alsa doesn't manage in any way environmental audio. since no audio driver provides an interface for EAX/EFX builtin functions of high end audio cards it's a perfect task for Pulse Audio.
PA has two ways od doing it:

1)Using OpenAL as a sink (also OpenAl-soft doesn't use computation power of audio processing units..that slows down cpu)
2)Using a LADSPA plugin for environmental audio (does it really exists???)

the first way seems to me more viable: openal-soft implements some enviromental effects, and is a multiplatform industry standard.
I had some cross posts with chris robinson (openal-soft father), suggesting him to move computation towars OpenCL to gain speed and decrease latency. it's a hard task and chris is alone. I'm not so much skilled to help him.

so my idea is:
1)use openal as a sink pilot it via equalizer.
2)help chris in moving cpu-critical routines to OpenCL.

phish3
December 5th, 2009, 02:34 PM
I've had whims on some digital audio effects before but couldn't really think of anything I'd really want to use for more than a few minutes. If you can propose and fleshout a useful effect, I may consider it in the future (so far the only thing more I have planned is some new approaches to normalizing). Also, the cpu usage for audio effects is pretty low on todays computers and I can improve the equalizer's backend a bit to do most of the work there for nearly the same cpu cost with most any combination of filters/effects. Audio is one of those things were we can do alot of processing without hardware acceleration (way different story for images/graphics).

MattiViljanen
December 8th, 2009, 01:43 AM
Thanks, the equalizer script works just fine! After some fine-tuning I actually find my old headphones barely acceptable again! Points for that!

And the new Pulseaudio equalizer... I downloaded the newer pulseaudio from here:
https://launchpad.net/~ubuntu-audio-dev/+archive/ppa
However, there is no module-dbus-protocol.so file in the pulseaudio package. Therefore, I can't test qpaeq.py script, nor the "newer and better" equalizer. So ATM I'm using 0.9.21 and pulseaudio-equalizer deb from the first post.

Has anyone managed to get the Python script working on 9.10 64-bit?

EDIT: There doesn't seem to be the missing DBUS module in nevions PPA neither... Back to square one. I also tried to compile Pulseaudio from git, but still nothing...

phish3
December 8th, 2009, 11:22 PM
Thanks, the equalizer script works just fine! After some fine-tuning I actually find my old headphones barely acceptable again! Points for that!

And the new Pulseaudio equalizer... I downloaded the newer pulseaudio from here:
https://launchpad.net/~ubuntu-audio-dev/+archive/ppa (https://launchpad.net/%7Eubuntu-audio-dev/+archive/ppa)
However, there is no module-dbus-protocol.so file in the pulseaudio package. Therefore, I can't test qpaeq.py script, nor the "newer and better" equalizer. So ATM I'm using 0.9.21 and pulseaudio-equalizer deb from the first post.

Has anyone managed to get the Python script working on 9.10 64-bit?

EDIT: There doesn't seem to be the missing DBUS module in nevions PPA neither... Back to square one. I also tried to compile Pulseaudio from git, but still nothing...

Sorry about that, I don't personally run ubuntu so I don't test it's packages as much. The packages should be fixed now and at least include the modules themselves (I inspected the results myself :-). Everything should work on 9.10 amd64 and i386.

On the compiling note you must have libfftw3-dev and libdbus1-dev installed for the modules to be enabled.

afrodeity
December 9th, 2009, 12:20 PM
If I add the pulseaudio dev ppa will the equaliser get updated too?

Djzn.BR
December 10th, 2009, 01:13 AM
Hi folks.

Currently, I am using Aqualung with this same Multiband EQ with the following values:

4,14,14,6,2,2,2,2,2,2,2,2, 7.5 ,20,30
LATENCY 768,0

However, Aqualung only deals with RVA values instead of ReplayGain and also, the Music Store from Aqualung is a concept really hard to catch, so I am planning in abandoning this application. (Was using ultimately because of the FX EQ plugin feature).

Now I am using Songbird 1.2.0, and the built-in equalizer in it is crap. However, that is my replacement for now and it can benefit from this system wide equalizer.

I want to find a way to turn off this PREAMP option in the python script, because it is only helping to distort the sound. So this preamp is a no-go for me, and my goal is to use the same setting I was using in Aqualung, so wich file do I need to edit and why the preset files have further values among the ones needed.

Thanks for any help.

urthmover
December 10th, 2009, 03:02 AM
So what do I need to do to install this system wide equalizer after I've added the PPA from above?

sudo apt-get ?

citaworvk
December 10th, 2009, 07:40 PM
Thank you. This works great.

betterthanjordan79
December 10th, 2009, 10:22 PM
This is brill!!!thaks a million!!!worked 100%!!!

afrodeity
December 11th, 2009, 12:41 PM
Comparison between the two equalisors please!

phish3
December 11th, 2009, 07:25 PM
pros for the one included in pulseaudio mainstream:
realtime adjustments
unlimited bands* (qpaeq dynamically scales the bands to the width of the window)
higher accuracy than mbeq (the ladspa plugin the alternative relies on)
frequencies are natural (mbeq's frequencies are proportional to real frequencies)

*the limit is half the sample-rate of your master sink/sound card. One cannot specify more any more useful information beyond that number of bands (theoretical limit).

inherent cons with the mbeq backed equalizer:
frequencies (coefficients you specify in control) above it's 1024 hz are ignored
aliasing occurs because the filter doesn't sample sufficiently
fixed number of bands (again, the bands above 1024hz are ignored)

Not really for this purpose but here's a blog (http://yasdb.blogspot.com/2009/08/equalization-abound.html) post I had written way back when detailing theoreticals of equalization and listing the problems with mbeq.

Also the thread original creator - sorry to be a bit of a thread jack but would you mind putting a link to this post and http://pulseaudio.org/wiki/SystemEqualizer listing it as an upstream alternative?

ozguitarplayer
December 13th, 2009, 10:43 AM
Hi,
New install of Karmic Koala.
PulseAudio Multiband installed from a .deb file link supplied in this topic.

You mentioned PulseAudio mainstream has realtime adjustments, where can I find the mainstream version?

rdingram
December 13th, 2009, 03:09 PM
Thank you. Thank you. Thank you. I have been looking for something like this for some time. Makes the laptop speakers useable!

~Las~
December 14th, 2009, 06:39 PM
Thanx a lot..waited for this for a long time :-)

mocha
December 15th, 2009, 05:31 AM
WOW! Why isn't this a default addon to the distro pulseaudio packages?? I'm only seeing about 2% sporadic CPU increase with pulseaudio as well. Excellent work.

ivotron
December 16th, 2009, 03:43 AM
Dude, you're my hero, thanks much for this. This should be definitively included for 10.4 (Lucid)

afrodeity
December 16th, 2009, 04:51 PM
If anybody is getting kludgy sound, just turn down the pre-amp.Usually the source of bother with the presets overloading the system. If sound borks (doesn't get louder, it just fails in certain frequencies), then turn the preamp setting down.So default should be generally lower. Just my two cents.:)

johoe
December 16th, 2009, 05:56 PM
Hi there!

This here is really what I've been looking for my whole "linux-life"! Sound is so much better now
BUT I warmly recommend using the pulseaudio-equalizer from phish3 (http://ubuntuforums.org/showpost.php?p=8436269&postcount=115) - it's so much better! You get realtime adjustments, no distortion whatever pre-amp is set etc. and most important: simply brilliant sound!
All what you need and what you have to do is explained here: http://pulseaudio.org/wiki/SystemEqualizer

This should got to the official ubuntu-audio-dev ppa!

We just need a gtk interface - see, what I can do about this ;)

Great work!!

regards, johoe

sbersier
December 16th, 2009, 07:31 PM
Hi there!

This here is really what I've been looking for my whole "linux-life"! Sound is so much better now
BUT I warmly recommend using the pulseaudio-equalizer from phish3 (http://ubuntuforums.org/showpost.php?p=8436269&postcount=115) - it's so much better! You get realtime adjustments, no distortion whatever pre-amp is set etc. and most important: simply brilliant sound!
All what you need and what you have to do is explained here: http://pulseaudio.org/wiki/SystemEqualizer

This should got to the official ubuntu-audio-dev ppa!

We just need a gtk interface - see, what I can do about this ;)

Great work!!

regards, johoe
Well, I'm glad qpaeq works for you... I have Ubuntu Karmic 32 bits. I've tried to make it work. I've followed strictly the procedure indicated. But there is a problem with the dbus protocol module (I have it installed as well as fftw3 ).
Can you tell me what version of Ubuntu you're using? And is your computer 32 or 64bits?
Thanks,
Stéph

johoe
December 16th, 2009, 08:18 PM
Well, I'm glad qpaeq works for you... I have Ubuntu Karmic 32 bits. I've tried to make it work. I've followed strictly the procedure indicated. But there is a problem with the dbus protocol module (I have it installed as well as fftw3 ).
Can you tell me what version of Ubuntu you're using? And is your computer 32 or 64bits?
Thanks,
Stéph

hmm, I'am running exactly the same version (karmic/32bit) as you do. I've installed it on two different machines.
I installed these packackes
python, python-dbus, python-qt4 and python-qt4-dbus
of course you need some of the libqt4-* libraries too.

maybe you can post the the error you get...

johoe

sbersier
December 16th, 2009, 09:06 PM
hmm, I'am running exactly the same version (karmic/32bit) as you do. I've installed it on two different machines.
I installed these packackes
python, python-dbus, python-qt4 and python-qt4-dbus
of course you need some of the libqt4-* libraries too.

maybe you can post the the error you get...

johoe
libdbus-1, libfftw3, python, python-dbus, ..., python-qt4* are all installed. The problem shows up at the install stage and solely for module-equalizer-sink which has undefined references to pa_dbus_*** stuff....
Well, I'll stick to the pulseaudio-equalizer.py script for the moment. It works...

phish3
December 17th, 2009, 12:32 AM
I think I figured it out - you probably need libdbus-1-dev installed (and to rerun configure), I updated the wiki to mention this. This should only be needed if you're compiling from source... the packages seem to work fine although it looks like I forgot to include qpaeq. There are download links on the wiki. In source compiling case you might also want to place "0.9.21" inside .tarball-version in the sourcetree to force the git-version-gen script to detect the build as 0.9.21... else you'll get 0.9.19 and issues might ensue... all due to upstream muckery with git, sorry.

buddyd16
December 17th, 2009, 01:38 AM
Thank you very much for this. I can now watch tv using my capture card without the god awful audio it had before I used this utility.

dhruv_1884
December 17th, 2009, 05:58 AM
This is absolutely awesome. Have been waiting for this for a realllllly long time.

finally we have the Power of Pulse :guitar:

sbersier
December 17th, 2009, 01:00 PM
I think I figured it out - you probably need libdbus-1-dev installed (and to rerun configure), I updated the wiki to mention this. This should only be needed if you're compiling from source... the packages seem to work fine although it looks like I forgot to include qpaeq. There are download links on the wiki. In source compiling case you might also want to place "0.9.21" inside .tarball-version in the sourcetree to force the git-version-gen script to detect the build as 0.9.21... else you'll get 0.9.19 and issues might ensue... all due to upstream muckery with git, sorry.
In fact, it looks like what was missing was libdbus-qt-1-dev (you should check that and possibly add it to your wiki instructions). After I installed it I could install everything.
But... As soon as I load the "module-equalizer-sink" module the sound is chopped (about 5 times/second) making the sound just unhearable and makes the qpaeq.py script useless.... I tried with and without tsched=0.
Furthermore, now the pulseaudio-equalizer.sh shell script doesn't work anymore...



steph@steph-desktop:/usr/share/pulseaudio-equalizer$ pulseaudio-equalizer.sh enable
PulseAudio Equalizer/LADSPA Processor 2.4 (19/11/2009)
-------------------------------------
Current operation: enabling equalizer
-------------------------------------
Suspending clients...
Unloading module-ladspa-sink...
Unloading & reloading stream-restore module...
Loading module-ladspa-sink...
Moving active PulseAudio clients to LADSPA sink (ladspa_output.mbeq_1197.mbeq)...
And it get stuck there...
So, I don't have any equalizer anymore.
Not good, not good...

phish3
December 18th, 2009, 05:35 AM
Regarding the choppyness... did you have pavucontrol opened or any instances of flash while it was getting choppy? I've heard of some problems like this when there are 1 or more instances of flash and other sound programs opened - no clear reason why, but flash is always a problem child for sound. Also what kind of cpu do you have and do you have powersaving mode enabled (cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)

As for getting back to the old equalizer, make uninstall since it looks like you're trying to compile from sources (I generally wouldn't recommend that) and remove the relevant entries from your /etc/pulse/default.pa.

HTH

brookie
December 18th, 2009, 08:30 PM
Thanks man!
I added the ubuntu audio ppa listed in the first post for karmic, ran update manager and it did a partial upgrade. Downloaded the .deb and installed it and "voila!". This old laptop on these old speakers sounds awesome on the 'Rock' setting.
What a great Christmas present!
Cheers,
brook

afrodeity
December 19th, 2009, 06:54 PM
I changed the settings in the pavucontrol, looking for a better setting. Now my volume control has disappeared in the panel, and pavucontrol won't connect. If I try to open pavucontrol, it tells me "Connection failed, Connection refused"



pulseaudio
E: module-udev-detect.c: Failed to get card object.
E: module-ladspa-sink.c: Master sink not found
E: module.c: Failed to load module "module-ladspa-sink" (argument: "sink_name=ladspa_output.mbeq_1197.mbeq master= plugin=mbeq_1197 label=mbeq control=0.0,0.0,0.0,0.0,0.0,-4.5,-10.0,-6.0,0.5,1.0,2.0,4.0,4.0,0.0,0.0"): initialization failed.
E: main.c: Module load failed.
E: main.c: Failed to initialize daemon.


and



killall pulseasudio
pulseasudio: no process found


I I try sound settings
System > Sound

I get "Waiting for sound system to respond"

How do I manually change the pacucontrol settings?

brookie
December 19th, 2009, 10:37 PM
By the way,
Any idea as to why Ubuntu Karmic does a Partial Distribution Upgrade when the Ubuntu Audio Dev PPA (https://launchpad.net/%7Eubuntu-audio-dev/+archive/ppa) is added to Software Sources, and Update Manager is run?

Just askin? :O

xl_cheese
December 20th, 2009, 05:06 PM
I just installed this and I am not getting any EQing on my system when I apply the changes. I hear a brief audio pause and then it's the same as before.

Is there anything else I need to do? Do I need to restart my computer after installing?

psyke83
December 20th, 2009, 09:25 PM
phish3,

Can you please start a new thread regarding your equalizer implementation? This is only causing confusion for new users who are trying your patched packages with my script, and I may decide to continue improving the script beyond equalization (e.g., to support multiple LADSPA plugins on the interface). As soon as you make the new thread, I'll edit the first post with the link.

sanket_s
December 21st, 2009, 02:28 PM
One small bug (or may be a glitch) on Karmic, I installed and when i try presets and as soon as i press apply, my sound tray icon is kinda restarted, wanted to know if its like that in the settings to restart the sound or its crashing and restored on its own... following is from the logs, most likely showing each time I applied a new preset...

messages:
Dec 21 18:50:00 ... pulseaudio[1875]: ratelimit.c: 71 events suppressed
Dec 21 18:50:05 ... pulseaudio[1875]: ratelimit.c: 24 events suppressed
Dec 21 18:50:12 ... pulseaudio[1875]: ratelimit.c: 17 events suppressed
Dec 21 18:50:18 ... pulseaudio[1875]: ratelimit.c: 17 events suppressed
Dec 21 18:50:24 ... pulseaudio[1875]: ratelimit.c: 24 events suppressed
Dec 21 18:50:29 ... pulseaudio[1875]: ratelimit.c: 58 events suppressed

adlin5000
December 21st, 2009, 11:04 PM
Thanks. I have been looking for an equalizer for Ubuntu for a while now. This does everything I need and quite well.

The only gripe, and a minor one, is that every change regardless of if the equalizer is enabled, causes the audio to cut out for a sec. Maybe you could find a way to only make changes when the apply button is hit?

Thanks again.

Indigo340
December 22nd, 2009, 11:02 AM
Thanks for a great equaliser ! :P:):P

I was having some problems to begin with so I read through this entire thread to see if anyone else had them and what could be done about them.
The funny thing is that I happened to experience almost all of the problems in this thread !
The only one that I dealt with was the volume level that was out of sync with my global controller, when using the volume control the volume level would drop dramatically, this was easy to put right by following the good advice.
All the others including, scratchy sounds when adjusting volume control, clipping, not saving volume level between tracks, volume level not being remembered on re-boot etc they all 'fixed themselves' after lowering the slider levels and fine tuning for my system.

I first thought that having such a huge scale for each slider would be way too much for the simple soundcard in my old laptop and I was partly correct but as I played with it more and more I realised that the Pre-Amp control has way more than enough 'gain'. Once I turned it down to 1.2, I found it more than sufficient and I could then get a better balance when also reducing the the EQ sliders into the negative range, reducing Pre-Amp level to 1 meant that I could actually increase some of the EQ sliders a fraction into the positive range without problems.

So I have a some suggestions for improvements;


Give the Pre-Amp control a minus or negative range maybe down to -1.0 that would allow the equaliser sliders to actually add db in the required ranges and reduce the maximum Pre-Amp gain to +1.5
The EQ ranges could also be reduced, plus or minus 30db is way too much range, half of that would be adequate.
Please Please Please try to remove the need to click 'Apply Settings' it is very annoying and makes fine tuning very difficult.
Or better still, tell me how to re-set these ranges myself, I am a noob so try to use words and phrases I can understand. :)

brookie
December 22nd, 2009, 04:02 PM
FYI, I found a post explaining a bit about the Partial Dist. Upgrade I experienced after adding the Ubuntu Audio Dev ppa to my sources and running Update Manager.

Here is the link (http://ubuntuforums.org/showthread.php?t=1343434) to that post in case someone else experienced this.

The EQ and Pulseaudio are working fine though.

Cheers,
brook

jabezkaiser
December 22nd, 2009, 09:33 PM
This is really great, now I get better sound quality on my laptop. A question, I am having a bit problem with adobe-flashplugin in browsers, it doesn't use PulseAudio Equalizer. how can I configure it to use PulseAudio Equalizer and not the Internes Audio Anlog Stereo?? Here my Audio Setting window.

140872

dreadyman
December 23rd, 2009, 07:50 PM
Just thanks, you did it!

Hope it will be included by default in lucid lynx !

brookie
December 23rd, 2009, 08:33 PM
Hey psyke83,

I just upgraded to rhythmbox - 0.12.6-0ubuntu1 (https://launchpad.net/%7Ejmatthew/+archive/ppa) on Karmic and I don't hear that popping/skipping sound anymore when adjusting the volume with the mouse wheel.

Just thought I'd let you know. The changelog for Rhythmbox is here (http://ftp.gnome.org/pub/GNOME/sources/rhythmbox/0.12/rhythmbox-0.12.6.changes) but I was working on a podcast glitch and found this changlog (https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/451176) at launchpad which says something about fixing:
499051 - xfade backend doesn't play nice with LADSPA filters

Maybe that was the trick? Anyhow, thanks again for this awesome EQ.

Merry Christmas,
brook

ps - just played Rhythmbox for an hour, popping sound came back (after listening to a podcast) when adjusting volume with mouse wheel, restarted rhythmbox, and no popping when adjusting volume. seems like the poppins starts after rhythmbox has been playing a while??? ...after a couple of more hours just listening to music, no popping still!

promet
December 24th, 2009, 09:01 AM
You sir, are an officer, a gentleman, a saint and a scholar.

I am going to begin taking up a collection to erect some classical statuary in your honor...

This really puts the cherry on the sundae of Karmic Koala for me; just outstanding, also...Merry Christmas to me! ;)

Cheers

jorrieboy
December 25th, 2009, 10:37 PM
I have a problem with this.

When I listen music I hear all the time a weird "popping" noise...
I use the rock preset, and my preamp is 1.0x
I have tried this with al lot of songs, but i still hear the "popping" noise all the time.
p.s. the music i listen is rock/metal

Does somone have a solution for this problem?

(sorry if my English is not so good...)

jonathanfrancisco
December 26th, 2009, 07:13 AM
:guitar: this solutions really rocks! thanks so much!

kernel_script
December 28th, 2009, 05:48 PM
Hello psyke83, thank you very much for sharing this man, really really great work!

Please, which is the license of it?

claytronic
December 29th, 2009, 04:33 AM
Add my thanks as well. This script just supercharged my whole Ubuntu audio experience!

:guitar:

promet
December 29th, 2009, 07:03 AM
Another interesting note. In addition to making my regular desktop box a righteous rock machine; I've also installed this on an eeepc where I am running the Karmic Netbook Remix.

This little guy was really producing some, truly, weak sound, but now with the PulseAudio Equalizer script, I can pump up and adjust the audio on that sucker (4G 701) and really push those tiny speakers, and so now can listen to good streaming net audio in the kitchen while I'm cooking, or streaming internet news radio stations when I shower...

Gasp! I fear I have shared too much! :p Hahahaha!

Cheers!

helliewm
December 29th, 2009, 04:58 PM
The sound on whatever setting-classical.pop,softrock is really tinny and awful. I have an Audiologu sound card and medium priced £70 Logitech speakers with subwoofer/ Also its really tinny on my N130 Netbook too.

The AlSA Gamix mixer seems much better? Or am I doing something wrong??.

jorrieboy
December 30th, 2009, 07:23 PM
I have a problem with this.

When I listen music I hear all the time a weird "popping" noise...
I use the rock preset, and my preamp is 1.0x
I have tried this with al lot of songs, but i still hear the "popping" noise all the time.
p.s. the music i listen is rock/metal

Does somone have a solution for this problem?

(sorry if my English is not so good...)

Can I PLEASE have an awnser for this problem?!

promet
December 30th, 2009, 07:47 PM
jorrieboy

do you have "gnome-alsamixer" installed? You may have your PCM setting too high, which will produce some distortion at high app volumes. There are, honestly, a lot of things that could be causing that.

Sometimes there are several sound system sliders controlling the volumes of system sound. I like to go into gnome-alsamixer, PulseAudio Volume Control (pavucontrol), and the other volume/mixer controls on my system. I set all of the output, PCM and other relevant sliders down to about 50% to make sure nothing is "spiking" and then go into the "new" Pulseaudio Equalizer and do my "fine tuning" in there...

Also, if you use a microphone or other input device, I would try muting those also, when they are not in use. This sometimes messes with Ubuntu sound, this can be done in the same mixer/volume control apps.

Without a more detailed explanation of your sound system, it is hard to offer more specific help than that. I hope this is helpful on some level though.

Cheers...

jorrieboy
January 1st, 2010, 01:56 PM
Thanks, the sound quality is a lot better now.

promet
January 1st, 2010, 10:44 PM
Why you're very welcome, glad I could be of some help...

Happy New Year (in which Ubuntu will kick further tail!)

vauge
January 2nd, 2010, 11:57 PM
++1

Thank you.

joel.bacal
January 3rd, 2010, 09:34 AM
hey! I want to know.. how to uninstalla the script from the computer... I installed it, but got problem changing the volume when I was listening to music..

Now I uninstalled the deb package, but still have the ladspa plugin marked as my default output in the pulseaudio manager.

Thanks in advance!

funnylife_ma
January 3rd, 2010, 11:49 PM
thanks to psyche83, this great piece of software is now in main Fedora 12 repositories

741Baus
January 8th, 2010, 01:26 PM
Thanks psyche83 this is a awesome bit of kit :guitar:

gilson585
January 9th, 2010, 01:16 PM
I must say this is a sweet little tool. Thanks so much for posting this. May I request that the preamp be able to go below 1x and the eq bands be adjustable. Even as it is it is great thx so much. This should be added to the Ubuntu repo's.

For example if it could follow the 2/3 octave standard like this dual dbx pro unit http://www.dbxpro.com/215/215.php

diddy1234
January 9th, 2010, 06:50 PM
Could I also request this be added either as standard or as a repo add on ?

How do we go about getting Ubuntu to include this ?

Sound has always been a bit lagging in linux as in windows i had a general graphic equalizer once the sound card drivers were installed.

This add on would compliment users from windows.
After all a windows user would expect the same functionality in Ubuntu (linux users tend to over see this major factor).

regarding the frequency banding, I know that this can be edited by the user (as I have done) but it would be nice if 30hz existed as well as 15khz (between 10khz and 20khz).

There seems to be too many mid range bands, are these needed ?

The 10khz and 20khz cover too much frequency range.

towheedm
January 10th, 2010, 06:02 AM
Has anyone verified the centre frequencies of mbeq that the PulseAudio Eq Script depends on? I installed the PulseAudio Eq Script and basically it works. However, I find it next to impossible to set the eq to my liking. I'm comparing this to using WinAmp under WinXP and trying to get comparable quality.

Reading the post by phish3 he says
additionally mbeq lies about frequency meanings.. So I decided to test this statement to see if this was why I find it so difficult to adjust the eq to my liking.

I modified the following line in the pulseaudio-equalizer.sh as follows:


PA_LADSPA_INPUTS="30,60,120,180,240,360,420,480,540,600,660,720,780, 1000,2000"I then created a new preset using the Flat preset as a template but modified the frequency values to reflect the changes made above.

I reset the equalizer using the "Reset to default" option under the Advanced menu and then selected my new preset from the presets list. As you can see from the above, my highest frequency is 2K. However, when I tested the preset, the 2K slider was still adjusting the high frequencies (20K) and not the mid-band as I expected.

Again my question is has anyone tested the frequencies from mbeq or is this a bug either in mbeq or the pulseaudio-equalizer.sh script? Am I going about this the wrong way and is there someway to change these frequency values?

Does anyone know the Q of the frequency bands or the technical specs of the DSP routines used by mbeq? I think this would greatly help in determining the optimum centre frequency for the various bands.

Thanks.

phish3
January 10th, 2010, 04:54 PM
Reading the post by phish3 he says...

This is in reference to mbeq's processing which is not sampled sufficiently (sampled at IIRC 1024hz, I believe the control points specified above 1024 were also ignored) and who's hz (control points) are proportional to real x/second hz that we hear in. So frequencies are not as advertised and a crapload of aliasing occurs. See bottom 2 graphics here (http://www.danbullard.com/dan/aliasing.html)




Again my question is has anyone tested the frequencies from mbeq or is this a bug either in mbeq or the pulseaudio-equalizer.sh script? Am I going about this the wrong way and is there someway to change these frequency values?


I don't think this is mbeq's fault.



Does anyone know the Q of the frequency bands or the technical specs of the DSP routines used by mbeq? I think this would greatly help in determining the optimum centre frequency for the various bands.

mbeq uses an FFT/FIR filter, thus there is no Q parameter.

towheedm
January 11th, 2010, 04:53 AM
OK thanks.

So I decided to try your qpaeq equalizer. Since the binary was not listed in the PPA you provided at
http://pulseaudio.org/wiki/SystemEqualizer I downloaded the qpaeq.py script from sourceforge.

I uninstalled psyke83 script completely including all configuation files and then I installed all required dependencies for qpaeq and modifed the /etc/pulse/default.pa as stated. Two problems:

1. I launch the equalizer using
python qpaeq.py . After the window opens, pulseaudio CPU usage goes to 100%. Also when I try to play music using Rythmbox there is no sound. I have included the master=alsa...... to reflect my soundcard. The FFT based equalizer shows up on PA volume control and is selected. I have tried everything I could think off but still no sound. The FFT equalizer is definitely selected as the sink. Also, the progress bar in Rythymbox jumps in 5sec intervals. I do not think I have freq scaling or whatever you call that.

2. If I try to resize the window, then the weirdest thing happens: python qpaeq.py process memory usage starts climbing from 53MiB to over 800Mib and its CPU usage goes to 100%.

What have I done wrong?

How can I get a binary without having to compile. I am not to familiar with compiling.

Thanks phish3.

phish3
January 11th, 2010, 06:30 AM
I don't think it is necessary to uninstall psyke83's script. Anywho, first make sure you have working sound and just to be sure try a non rythmbox sound test, preferably something with native pulse output (not alsa). Also make sure to test with pavucontrol closed and see if that results in a change. Please pulseaudio -k && pulseaudio -D after you've closed pavucontrol.

Re 2: cpu usage should jump for a second and go back down to normal as part of the resizing process, but the qpaeq python process shouldn't take more than like 40 MiB tops, try the git versions to see if they help...

duffydack
January 11th, 2010, 04:24 PM
I found this from the PulseAudio Fixes & System-Wide Equalizer Support thread. Never did any modifications, just installed the EQ application and it works a treat. Well there are 2 minor quirks, when I move the volume slider I get crackling, and playing SID files (using Audacious2) causes audacious to use a lot of cpu and speed through the track likes on fast-forward...apart from those, it sounds a whole lot better.
Using Karmic btw

*edit* I fixed the sid problem by setting the output from 44100 to 22050 in the sid plugin preferences. Seems anything higher than 22050 speeds it up

towheedm
January 12th, 2010, 02:21 AM
I don't think it is necessary to uninstall psyke83's script. Anywho, first make sure you have working sound and just to be sure try a non rythmbox sound test, preferably something with native pulse output (not alsa). Also make sure to test with pavucontrol closed and see if that results in a change. Please pulseaudio -k && pulseaudio -D after you've closed pavucontrol.

Re 2: cpu usage should jump for a second and go back down to normal as part of the resizing process, but the qpaeq python process shouldn't take more than like 40 MiB tops, try the git versions to see if they help...
Well it took me a bit to figure that GIT was similar to souceforge. Please excuse my ignorance. So I D/L'ed the file from GIT. But before that, pulseaudio works properly on my system even with Rythymbox. Did the whole HOWTO Pulseaudio Fixes thing from the first post in this thread.

I used pavucontrol to verify that the FFT equalizer was selected as the default sink and that my SoundBlaster was not muted, then daemonized pulseaudio. Opened Rythymbox and got the qpaeq to work. BTW, much much much better quality. However, problem #2 still exists. If I try to resize the qpaeq window, it becomes non-responsive and starts eating memory. I looked at the memory map using the system monitor and saw that the heap was eating all of the memory, looks like a bug in Python to me. qpaeq.py memory usage was quite low. After leaving it for about 15mins, it chewed up all of my physical memory and about 1GiB of swap.

The other thing now is that once I restart and log in, the SoundBlaster is always muted so I have to pavucontrol and unmute it. But once I do this, close pavucontrol, daemonize PA launch qpaeq and open up Rythymbox, there's nice sound. Unfortunately, once I daemonize PA I loose the ability to control the volume with the volume control on my kybd. Any suggestions on these two issues, especially the resizing will be greatly appreciated.

I will try and compile although I have never ever had to before. My only programming experience is with VisualBasic and VBA under Windows. BTW, went into GNOME Alsa Mixer and turned on the 3D Control. PA + qpaeq + 3D = WOW WOW WOW!

Thanks.

Using Karmic with latest updates, P4 2.8GHz 1MiB RAM 2GiB swap.

phish3
January 12th, 2010, 11:34 AM
I made a thread for the upstream/qpaeq based equalizer, please direct relevant posts here http://ubuntuforums.org/showthread.php?t=1378087

repsakkgn
January 14th, 2010, 03:53 PM
im running ubuntu 9.10 with latest updates. I've installed the attached .deb, while installing it downloaded 2 files. now i've got P-A-equalizer in gnome menu, but it will not start. the output in console says "Traceback (most recent call last):
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 519, in <module>
Equalizer()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 354, in __init__
GetSettings()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 62, in GetSettings
persistence = int(rawdata[6])
ValueError: invalid literal for int() with base 10: ''
"
what should i do? the idea is awesome, and i'd like to try....

psyke83
January 15th, 2010, 05:55 PM
im running ubuntu 9.10 with latest updates. I've installed the attached .deb, while installing it downloaded 2 files. now i've got P-A-equalizer in gnome menu, but it will not start. the output in console says "Traceback (most recent call last):
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 519, in <module>
Equalizer()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 354, in __init__
GetSettings()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 62, in GetSettings
persistence = int(rawdata[6])
ValueError: invalid literal for int() with base 10: ''
"
what should i do? the idea is awesome, and i'd like to try....

Did you previously test the equalizer before it was packaged in .deb form? If so, delete the old script and the saved settings:

$ sudo rm /usr/local/bin/pulseaudio-equalizer.sh
$ rm ~/.pulse/equalizerrc*

Then try again.

psyke83
January 15th, 2010, 05:56 PM
I made a thread for the upstream/qpaeq based equalizer, please direct relevant posts here http://ubuntuforums.org/showthread.php?t=1378087

Thanks, I've provided a link to your thread in the first post.

psyke83
January 15th, 2010, 06:04 PM
Could I also request this be added either as standard or as a repo add on ?

How do we go about getting Ubuntu to include this ?

I'm not sure if that's worthwhile, considering the alternative EQ implementations for PulseAudio which are currently superior. I wrote the script and Python interface for some fun and for some practice in programming in Python, but the code is a mess. I haven't even moved the source to a suitable repository yet (though I will soon).


regarding the frequency banding, I know that this can be edited by the user (as I have done) but it would be nice if 30hz existed as well as 15khz (between 10khz and 20khz).

The script cannot offer bands which are not already supported by the LADSPA plugin currently in use. Version 2.4 uses the mbeq_1197" plugin. Take a look at the plugin information:


conn@inspiron:~$ analyseplugin mbeq_1197

Plugin Name: "Multiband EQ"
Plugin Label: "mbeq"
Plugin Unique ID: 1197
Maker: "Steve Harris <steve@plugin.org.uk>"
Copyright: "GPL"
Must Run Real-Time: No
Has activate() Function: Yes
Has deativate() Function: No
Has run_adding() Function: Yes
Environment: Normal or Hard Real-Time
Ports: "50Hz gain (low shelving)" input, control, -70 to 30, default 0
"100Hz gain" input, control, -70 to 30, default 0
"156Hz gain" input, control, -70 to 30, default 0
"220Hz gain" input, control, -70 to 30, default 0
"311Hz gain" input, control, -70 to 30, default 0
"440Hz gain" input, control, -70 to 30, default 0
"622Hz gain" input, control, -70 to 30, default 0
"880Hz gain" input, control, -70 to 30, default 0
"1250Hz gain" input, control, -70 to 30, default 0
"1750Hz gain" input, control, -70 to 30, default 0
"2500Hz gain" input, control, -70 to 30, default 0
"3500Hz gain" input, control, -70 to 30, default 0
"5000Hz gain" input, control, -70 to 30, default 0
"10000Hz gain" input, control, -70 to 30, default 0
"20000Hz gain" input, control, -70 to 30, default 0
"Input" input, audio
"Output" output, audio
"latency" output, control



There seems to be too many mid range bands, are these needed ?

The 10khz and 20khz cover too much frequency range.

There's no need to hide them, either.

What I have done is constrain the negative and positive ranges for the control ranges, because the mbeq_1197 filter tends to introduce aliasing/distortion when you set the gain to any positive value, and also to make user adjustments of the sliders more convenient.

With exception to "Laptop", all the included presets suffer from this problem (as they're ported from VLC's equalizer, which does not have distortion problems). Recently, I haven't had time to investigate ways to mitigate this problem (and not many ladspa EQ plugins currently exist).

incontinentiabuttocks
January 18th, 2010, 04:31 PM
Can I just say, as a relative newbie to Ubuntu (and linux in general) that I am extremely grateful for the creator/s of this package. I had been searching for one of these for over 2 years and now that I've found one, I will most likely stick to Ubuntu for a very long time (it was the main reason for me going back to Windows for a while - I like my sound)

Thanks once again.

diddy1234
January 26th, 2010, 11:58 PM
Thanks for your reply.

I still think its an excellent add on.

I will look at your other post regarding a better control

If I were to implement a better control, how do i remove this current installation ?

Id rather not compile from source just yet, hence your current files are easy to install and get working.

Sparckus
January 28th, 2010, 06:16 PM
Works a treat thanks very much :)

cement_head
January 28th, 2010, 07:17 PM
OH YEAH BABY!!!!!


"HELL's BELL's" never sounded so damm good....


:popcorn:

matej_jack
January 30th, 2010, 01:41 PM
Is it possible to change frequencies? I would like to change 20Hz, 30Hz, 50Hz and 60Hz.
The lowest possible now is 50Hz, then 100Hz. :frown:

duffydack
January 31st, 2010, 01:03 AM
OH YEAH BABY!!!!!


"HELL's BELL's" never sounded so damm good....


:popcorn:

LOL, nice.. I admit, the quality, with a laptop, even a studio17 with JBL speakers, is awesome.

ktp
February 3rd, 2010, 03:49 AM
First this is great...makes me want to get really good speaks now!!

One question...how can I keep the set alsamixer's "Master" volume. Every time system restart or I hit apply in EQ, the master volume goes 100% and I get humming noise. If I set it at like 92% or disable the EQ, I don't hear the humming noise. Anything I can do to make sure the master volume is at 92%? I sure don't want to disable EQ. =)

psyke83
February 4th, 2010, 04:11 AM
First this is great...makes me want to get really good speaks now!!

One question...how can I keep the set alsamixer's "Master" volume. Every time system restart or I hit apply in EQ, the master volume goes 100% and I get humming noise. If I set it at like 92% or disable the EQ, I don't hear the humming noise. Anything I can do to make sure the master volume is at 92%? I sure don't want to disable EQ. =)

You would need to set the pre-amp to (roughly) 0.9x, which isn't yet possible in v2.4. I'll add this capability in the next version (as soon as I set up a new installation - my laptop died).

Edit: OK, I've updated to v2.5 which allows preamp levels below 1x. You can find the new version within the pulseaudio-equalizer_2.5debsrc.tar.bz2 archive (as it seems the forum no longer allows .deb attachments). When I get time, I intend to publish the source on Launchpad and will make future versions available from my PPA.

ktp
February 5th, 2010, 03:00 AM
Thanks so much!! PPA would be great also.

ktp
February 5th, 2010, 04:34 AM
I just tried the latest and set preamp to .8 but sound server seems to not start on restart the system with following error:

pulseaudio[2034]: module.c: Failed to load module "module-stream-restore" (argument: "restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false"): initialization failed.
main.c: Module load failed.
main.c: Failed to initialize daemon.

I have to clean out the ~/.pulse/ directory to fix it. I tried it twice and then went back to previous version.

psyke83
February 5th, 2010, 04:52 AM
I just tried the latest and set preamp to .8 but sound server seems to not start on restart the system with following error:

pulseaudio[2034]: module.c: Failed to load module "module-stream-restore" (argument: "restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false"): initialization failed.
main.c: Module load failed.
main.c: Failed to initialize daemon.

I have to clean out the ~/.pulse/ directory to fix it. I tried it twice and then went back to previous version.

The problem is that v2.4 of the script searched for the phrase "Generated from: pulseaudio-equalizer.sh" in the ~/.pulse/default.pa file, and if it found the phrase then it will know that the equalizer configuration is active.

However, with version 2.5, I dropped the .sh suffix (now it looks for "Generated from: pulseaudio-equalizer"), so the script wasn't detecting the old configuration files correctly. Deleting ~/.pulse/default.pa* once should solve the problem permanently.

Can you confirm that v2.5 is now working correctly after having deleted the stale configuration?

psyke83
February 5th, 2010, 09:12 PM
I just tried the latest and set preamp to .8 but sound server seems to not start on restart the system with following error:

pulseaudio[2034]: module.c: Failed to load module "module-stream-restore" (argument: "restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false restore_device=false"): initialization failed.
main.c: Module load failed.
main.c: Failed to initialize daemon.

I have to clean out the ~/.pulse/ directory to fix it. I tried it twice and then went back to previous version.

Update: the equalizer is now available from my PPA (and the bug has been fixed).

I recommend that you first install the latest version (through my PPA), and then delete your ~/.pulse/default.pa* files to get rid of the invalid configuration that's still potentially on your system. Thanks.

ktp
February 6th, 2010, 12:14 AM
Update: the equalizer is now available from my PPA (and the bug has been fixed).

I recommend that you first install the latest version (through my PPA), and then delete your ~/.pulse/default.pa* files to get rid of the invalid configuration that's still potentially on your system. Thanks.

It's working great now (using PPA). Thanks!!

duffydack
February 6th, 2010, 07:05 PM
My volume control applet keeps disappearing after installing the newer version.. also, any other sounds like my email notify sound and system sounds while i`m playing music with any application, is just a clicking static sort of sound...

psyke83
February 6th, 2010, 07:18 PM
My volume control applet keeps disappearing after installing the newer version.. also, any other sounds like my email notify sound and system sounds while i`m playing music with any application, is just a clicking static sort of sound...

If you were using v2.5 of the script, it may have written an invalid configuration file. Newer versions won't create this problem, but if the bad configuration is still present, it will cause problems.

Try:

$ rm ~/.pulse/default.pa*; pkill pulseaudio

MetalMusicAddict
February 6th, 2010, 07:19 PM
I'm wondering the future of this since pulseaudio git master has an eq?

psyke83
February 6th, 2010, 07:27 PM
I'm wondering the future of this since pulseaudio git master has an eq?

It's hard to tell. The built-in EQ still doesn't have a GTK interface, which may preclude it from being used in Ubuntu Lucid by default.

Aside from that, my version can be expanded to use different LADSPA plugins (which, as you know, range beyond simple EQ). The interface is already somewhat capable of using other LADSPA plugins, but needs more work.

The disadvantage of PulseAudio's LADSPA module (used by my interface) is that it's not possible to truly change settings in real-time (which is why you need to click "Apply settings" after each change).

duffydack
February 7th, 2010, 02:22 PM
If you were using v2.5 of the script, it may have written an invalid configuration file. Newer versions won't create this problem, but if the bad configuration is still present, it will cause problems.

Try:

$ rm ~/.pulse/default.pa*; pkill pulseaudio

there isnt a file called default.pa in my ~ but there is one in /etc/pulse/
should I remove it?
For now i`ve just uninstalled the equalizer, removed anything in .pulse called equalizer* and reinstalled it..see what happens

tjk
February 10th, 2010, 02:42 AM
I skimmed through this thread (and the web) but could not find a fix for my problem...

I installed the PA eq today on Kubuntu 9.10 - 64-bit (KDE 4.3.5). It appeared that there were no errors and that everything installed correctly. However, the main problem that I have is that the eq has no effect on the tone.

As well, if I use a preset the eq automatically disables itself. If I don't use the presets everything else appears like it should work (but doesn't).

EDIT: Further to this, when starting the eq in the terminal I'm given the error message: "cannot access /home/tim/.pulse/presets/*.preset: No such file or directory" When I look in that directory it is empty... no preset file(s).

Any ideas what may be wrong?

brookie
February 10th, 2010, 06:54 PM
Thanks for putting this in your ppa psyke! It's much easier to keep it updated that way. Much appreciated.
Cheers,
brook

diddy1234
February 10th, 2010, 10:32 PM
I had fun and games trying to figure out what PPA was at first then to find psyke83's own PPA.

So for anyone wanting to add psyke83 ppa its here :-

https://launchpad.net/~psyke83/+archive/ppa

excellent work psyke83

Shame ubuntu doesnt let you post deb files anymore but this way seems to work well, plus everyone gets updates if you update this package.

Just installed it and reading the first post there should be the equalizer available under Applications >- sound and video

However this equalizer does not exist.

This can be ran by -
./pulseaudio-equalizer-gtk

the gui then appears.

It would appear that if the user does not have a .pulse directory the menu option does not exist or it could be that it does not exist until a reboot is performed.

How do i change the default frequency bands ?
is there a way to get this to auto run when logging in (as i have to get this enabled to run).

Adamsmasher23
February 11th, 2010, 03:42 AM
EDIT: Further to this, when starting the eq in the terminal I'm given the error message: "cannot access /home/tim/.pulse/presets/*.preset: No such file or directory" When I look in that directory it is empty... no preset file(s).

Any ideas what may be wrong?


I am having this same problem; I can't start the equalizer at all. My presets directory is empty.

Any suggestions? Could someone post a .preset file?

psyke83
February 11th, 2010, 06:07 AM
I skimmed through this thread (and the web) but could not find a fix for my problem...

I installed the PA eq today on Kubuntu 9.10 - 64-bit (KDE 4.3.5). It appeared that there were no errors and that everything installed correctly. However, the main problem that I have is that the eq has no effect on the tone.

As well, if I use a preset the eq automatically disables itself. If I don't use the presets everything else appears like it should work (but doesn't).

EDIT: Further to this, when starting the eq in the terminal I'm given the error message: "cannot access /home/tim/.pulse/presets/*.preset: No such file or directory" When I look in that directory it is empty... no preset file(s).

Any ideas what may be wrong?

The "no such file or directory" message is not really an error - it will show for people who have never saved a custom preset, so it's not related to your problem.

Please attach the log generated from this command:

$ pulseaudio-equalizer debug

necronwarrior
February 12th, 2010, 12:56 PM
Hello,
I am having a problem using the EQ with firefox. Heres what happned:--->
While playing music from
http://www.groveshark.com (http://www.groveshark.com/)
The equalizer enables perfectly. But when I try to change the preset firefox stops playing(the song is still playing but no sound). All other applications(eg. vlc ) work fine.
Please help.

psyke83
February 23rd, 2010, 05:02 AM
Hello,
I am having a problem using the EQ with firefox. Heres what happned:--->
While playing music from
http://www.groveshark.com (http://www.groveshark.com/)
The equalizer enables perfectly. But when I try to change the preset firefox stops playing(the song is still playing but no sound). All other applications(eg. vlc ) work fine.
Please help.

Switching presets while playing music on that site doesn't give me any problems...

However, I'm running the Lucid development release, so it may be different for Karmic. Are you using the 32bit or 64bit release?

Nonno Bassotto
February 28th, 2010, 11:55 PM
I tried it and lost my sound. Before enabling it, I had two entries under the tab "output" in the Pulseaudio preferences. One reads



RV620 Audio Device [Radeon HD 34xx Series] Digital Stereo HDMI
Stereo


and the other one I don't remember, but had "Analog" in it. The one with analog was the one selected.

Now I have the digital one and


Lapsda Plugin Multiband EQ on RV620 Audio Device [Radeon HD 34xx Series] Digital Stereo HDMI
Stereo

but I lost the analog entry.

Noone of the two available entries allows me to hear any sound whatsoever.

What can I do?

Nonno Bassotto
March 1st, 2010, 01:57 AM
I solved it removing .pulse

psyke83
March 1st, 2010, 02:11 AM
I tried it and lost my sound. Before enabling it, I had two entries under the tab "output" in the Pulseaudio preferences. One reads



RV620 Audio Device [Radeon HD 34xx Series] Digital Stereo HDMI
Stereo


and the other one I don't remember, but had "Analog" in it. The one with analog was the one selected.

Now I have the digital one and


Lapsda Plugin Multiband EQ on RV620 Audio Device [Radeon HD 34xx Series] Digital Stereo HDMI
Stereo

but I lost the analog entry.

Noone of the two available entries allows me to hear any sound whatsoever.

What can I do?

Run:

$ pulseaudio-equalizer debug

Attach the log so I can see.

You can then run the equalizer, choose "Reset to defaults" from the Advanced menu to get sound working again.

Adamsmasher23
March 1st, 2010, 10:30 PM
I attached the log. When I ran it, a dialog came up, saying:
pa_stream_writable_size() failed: Connection terminated

Ceiber Boy
March 2nd, 2010, 07:17 PM
Good job thank you

marinero_arrr
March 7th, 2010, 02:46 PM
Hey, great job.
I'm having some trouble in karmic with 7.1. when I play some mp3 on audacious, totem, any app, the subwoofer channel it's quiet but when I apply some settings on the pulseaudio equalizer the subwoofer starts output the sound of the center channel. I stop & start audacious and the sound works again without the subwoofer.

I like the subwoofer working with the mp3 but I have to "apply settings" in the equalizer for every app playing sound.

it's a odd behavior of the equalizer,¿sould the subwoofer had worked form the beginning or the subwoofer shouldn't be activated when I apply settings?

psyke83
March 10th, 2010, 10:00 PM
Hey, great job.
I'm having some trouble in karmic with 7.1. when I play some mp3 on audacious, totem, any app, the subwoofer channel it's quiet but when I apply some settings on the pulseaudio equalizer the subwoofer starts output the sound of the center channel. I stop & start audacious and the sound works again without the subwoofer.

I like the subwoofer working with the mp3 but I have to "apply settings" in the equalizer for every app playing sound.

it's a odd behavior of the equalizer,¿sould the subwoofer had worked form the beginning or the subwoofer shouldn't be activated when I apply settings?

The equalizer employs *software* equalization by filtering audio through a LADSPA plugin. What the implications are for surround sound configurations/subwoofer setups, I don't know (simply as I don't own such hardware, and therefore cannot experiment).

It may be the case that the LADSPA plugin only supports 2-channel stereo output, I've never looked into the issue deeply. You may want to investigate the alternate equalizer (linked in my first post, but remember that this is not a support thread for it).

ThatBum
March 12th, 2010, 07:13 AM
Heya, my audio skips and stutters when the equalizer is active. Pulse takes ~20% CPU when it's active. Is my hardware too old? It's a Pentium D 820 (2.8GHz). Sound card is SB Audigy 4 (not pro). Memory is 2 GB.

Otherwise good work. I have my ghetto 4.1 surround made from two sets of two decade year old computer speakers and the stock HP woofer, but eh. VLC's equalizer works fine by the way, I think equalizing all of Pulse is too much for my rig.

E: BOINC is causing a lot of the skipping. Suspending BOINC stops most of it, but it's still there when playing music with VLC or whatever. Setting a lower nice value for pulseaudio removes it completely, but it has to be pretty mean (-10), which I don't like doing, really. I think optimization is in order, or, as I said, my machine is too old. It is...uh...5 years old? Yeah, that sounds right.

unratedexter
March 17th, 2010, 09:48 AM
awesome stuff man - works perfectly in Lucid :D

himek
April 3rd, 2010, 06:06 PM
The package doesn't pull necessary gnome dependencies on Kubuntu.

$ pulseaudio-equalizer-gtk
Getting settings...
ls: cannot access /home/cician/.pulse/presets/*.preset: No such file or directory
Traceback (most recent call last):
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 519, in <module>
Equalizer()
File "/usr/share/pulseaudio-equalizer/pulseaudio-equalizer.py", line 362, in __init__
icon = self.window.set_icon_from_file("/usr/share/icons/hicolor/16x16/apps/gnome-volume-control.svg")
glib.GError: Failed to open file '/usr/share/icons/hicolor/16x16/apps/gnome-volume-control.svg': No such file or directory

tron_5
April 12th, 2010, 01:21 PM
Great work! Exactly what I was looking for.
Thank you.

ghostcoil
April 19th, 2010, 06:49 PM
Great work - thanks a lot!

BlueSkyNIS
May 2nd, 2010, 03:06 PM
Good job, thank you!

thort
May 2nd, 2010, 05:39 PM
Thank You! It works very well. :)

Rob3rt0
May 7th, 2010, 01:20 PM
Hi all, I'm having trouble finding the right 'setup'
for my equalizer when im listening to Hip Hop.
I have 15 GB's of Hip Hop so i need help. :S

Any ideas, downloads or anything?
Or else please link me a tutorial for how to setup your equalizer perfectly.

psyke83
May 7th, 2010, 09:27 PM
Hi all, I'm having trouble finding the right 'setup'
for my equalizer when im listening to Hip Hop.
I have 15 GB's of Hip Hop so i need help. :S

Any ideas, downloads or anything?
Or else please link me a tutorial for how to setup your equalizer perfectly.

I don't understand... there is no setup required. All you can do is create a new preset... and to do that requires your own ears, not mine.

Rob3rt0
May 8th, 2010, 12:31 PM
I don't understand... there is no setup required. All you can do is create a new preset... and to do that requires your own ears, not mine.

I need help with that too many controls. : S
I have no idea of audio ...
They should have included the Hip Hop / Rap preset. :S

Frogs Hair
May 8th, 2010, 02:56 PM
Hi,

Bass starts on the left mids are in the middle and highs or treble are one the right . The first 1/3 of the bands being bass and so on. Make very small adjustments until you find a setting you like . It may take some time there is no way around that. Good Luck

n1ght5t4lk3r
May 8th, 2010, 04:52 PM
I thought this was exactly what i was looking for. I added the ppa to my software sources as pointed out at https://launchpad.net/~psyke83/+archive/ppa (https://launchpad.net/%7Epsyke83/+archive/ppa) (this machine is running Ubuntu 9.04) and also imported the key successfully

gpg: requesting key 16AE4E77 from hkp server keyserver.ubuntu.com
gpg: key 16AE4E77: public key "Launchpad PPA for Conn" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

ran the sudo apt-get update but got 404 errors

W: Failed to fetch http://ppa.launchpad.net/psyke83/ppa/ubuntu/dists/jaunty/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/psyke83/ppa/ubuntu/dists/jaunty/main/source/Sources 404 Not Found

edit.. I've been trying this since yesterday repeatedly incase server was down or something

n1ght5t4lk3r
May 8th, 2010, 05:45 PM
never mind about the above issue, I clicked on the "View Package Details" link at the top right of the page and found a .deb which i successfully installed

psyke83
May 8th, 2010, 05:51 PM
never mind about the above issue, I clicked on the "View Package Details" link at the top right of the page and found a .deb which i successfully installed

The equalizer won't work on Jaunty unless you manage to upgrade your version of PulseAudio to 0.9.19 or newer (and no, I'm not aware of anywhere which offers such packages for Jaunty).

n1ght5t4lk3r
May 8th, 2010, 06:10 PM
lol, i was just coming to post about this, after over 24 hours of frustration I find the equalizer isn't working despite being installed correctly, all dependancies satisfied and so on.

So.. basically all of this is useless for 9.04? There is no other equalizer that will work? currently I have to use vlc for my music which is not ideal due to crappy library management since it mainly really a video player but has an awesome equalizer... rythmbox has no useable equalizer and tried Amarok upon suggestion but seems its for KDE which not only did not work for me but totally screwed up my machine's appearance until I had to restart this machine and re-apply my gnome theme.

I thought this pulse audio equalizer sounded a bit too good to be true...

ah well, nothing wrong with vlc until ubuntu 10.04 is stable and bug free enough to be viable to upgrade to ( i see no reason to upgrade to 9.10 just to upgrade once again to 10.04 after all the bugs i've read about on the forums have been ironed out) then i can use pulse equalizer)

thanks anyway

digitalcircuit36939
May 9th, 2010, 01:38 AM
The equalizer works very well for me (I'm using it to overcome poor quality speakers), but a warning for 32bit users going to 64bit.

If you clean install a 64bit version of Ubuntu over a 32bit version (or restore the custom presets from a backup), it will make your system unusably slow until you disable the equalizer (e.g. remove the .pulse folder).

Took a bit of troubleshooting to find this out, I'll just need to recreate the custom presets from my memory. It seems the preset files differ between 32bit and 64bit in some crucial way. Other than that, I've had no problems. Thanks for this excellent program! :)

squiddy
May 11th, 2010, 07:41 PM
nice one, mate :)

works like a charm on lucid.

bark50
May 19th, 2010, 01:12 AM
Thanks! :)

steve_gts
May 19th, 2010, 04:31 PM
my problem was it not changing the audio output, did a google search and ended up half way through this thread with an answer :-)

squiddy
May 24th, 2010, 05:30 AM
if the preset is based on VLC EQ, then why doesn't it produce the same quality?

beke
May 24th, 2010, 11:02 PM
Just wanted to let you know that the gui won't start up using a clean Kubuntu 10.04 install.

The problem seems to be the missing \usr\share\icons\hicolor\16x16\apps\gnome-volume-control.svg . Replacing it manually allows the gui to start.

Works like a charm otherwise. Thanks a lot!

hhh
May 28th, 2010, 03:57 AM
Holy...



wow, running this on sidux, gracias hombre.

junoon53
May 30th, 2010, 05:04 PM
Awesome! The only issue is that it keeps resetting the master volume to 100% every time I change the equalizer settings. Any idea why? I'm using lucid.

Lancelot59
June 15th, 2010, 10:00 PM
It's been working great for me so far, but whenever I try to adjust any of the frequency ranges it stops working. I need to restart Firefox for example if I'm watching a video when I adjust it. The audio just dies.

psyke83
June 16th, 2010, 06:57 PM
Hi,
First let me say great work with the equalisation script, its helped me almost get the sound response I wanted from my computer.
How tricky would it be to write a script like this (or adapt this) to work with another LADSPA plugin (fil-plugin's filters) which provides a 4 band parametric equaliser which I think would be highly desired for sound engineers/enthusiasts. I think this one seems to be pretty good, if 4 bands where not enough would it be possible to 'chain' single-band parametric?

The interface already has the capability of using other LADSPA plugins if you feed it a customized preset file, but there are some limitations due to the way that I designed the GUI, and also due to PulseAudio's LADSPA support.

Take a look at one of the preset files, perhaps you might understand better.

Here's the "Laptop" preset (/usr/share/pulseaudio-equalizer/presets/Laptop.preset) with explanations of each line added:


mbeq_1197 -> this is the plugin label + _ + plugin unique ID (which is the format that PulseAudio needs when specifying the LADSPA plugin)
mbeq -> this is the plugin label (also needed by PulseAudio)
Multiband EQ -> this is the "friendly" plugin name to be used by the interface.
2 -> this is the preamp level (which is currently ignored)
Laptop -> the name of the preset
15 -> the number of bands used by the plugin, which will follow below
-1 -> band 1's value
-1 -> band 2's value
-1 ..
-1 ..
-5 ..
-10 ..
-18 ..
-15 ..
-10 ..
-5 ..
-5 ..
-5 ..
-5 ..
0 -> band 14's value
0 -> band 15's value
50 -> band 1's frequency (only used to display on the interface)
100 -> band 2's frequency (only used to display on the interface)
156 ..
220 ..
311 ..
440 ..
622 ..
880 ..
1250 ..
1750 ..
2500 ..
3500 ..
5000 ..
10000 -> band 14's frequency (only used to display on the interface)
20000 -> band 15's frequency (only used to display on the interface)
I've written the interface to expect a simple layout such as the above - X amount of bands, X amount of frequencies.

The mbeq_1197 LADSPA plugin is quite simple, conforming to the above, containing just 15 bands within its parameters:


conn@dimension:~$ analyseplugin mbeq_1197

Plugin Name: "Multiband EQ"
Plugin Label: "mbeq"
Plugin Unique ID: 1197
Maker: "Steve Harris <steve@plugin.org.uk>"
Copyright: "GPL"
Must Run Real-Time: No
Has activate() Function: Yes
Has deativate() Function: No
Has run_adding() Function: Yes
Environment: Normal or Hard Real-Time
Ports: "50Hz gain (low shelving)" input, control, -70 to 30, default 0
"100Hz gain" input, control, -70 to 30, default 0
"156Hz gain" input, control, -70 to 30, default 0
"220Hz gain" input, control, -70 to 30, default 0
"311Hz gain" input, control, -70 to 30, default 0
"440Hz gain" input, control, -70 to 30, default 0
"622Hz gain" input, control, -70 to 30, default 0
"880Hz gain" input, control, -70 to 30, default 0
"1250Hz gain" input, control, -70 to 30, default 0
"1750Hz gain" input, control, -70 to 30, default 0
"2500Hz gain" input, control, -70 to 30, default 0
"3500Hz gain" input, control, -70 to 30, default 0
"5000Hz gain" input, control, -70 to 30, default 0
"10000Hz gain" input, control, -70 to 30, default 0
"20000Hz gain" input, control, -70 to 30, default 0
"Input" input, audio
"Output" output, audio
"latency" output, control
The fil-plugins LADSPA plugin is more complicated:


conn@dimension:~$ analyseplugin filters.so

Plugin Name: "4-band parametric filter"
Plugin Label: "Parametric1"
Plugin Unique ID: 1970
Maker: "Fons Adriaensen <fons@kokkinizita.net>"
Copyright: "GPL"
Must Run Real-Time: Yes
Has activate() Function: Yes
Has deativate() Function: Yes
Has run_adding() Function: No
Environment: Normal or Hard Real-Time
Ports: "Input" input, audio
"Output" output, audio
"Filter" input, control, toggled, default 0
"Gain" input, control, -20 to 20, default 0
"Section 1" input, control, toggled, default 0
"Frequency 1" input, control, 20 to 2000, default 200, logarithmic
"Bandwidth 1" input, control, 0.125 to 8, default 1, logarithmic
"Gain 1" input, control, -20 to 20, default 0
"Section 2" input, control, toggled, default 0
"Frequency 2" input, control, 40 to 4000, default 400, logarithmic
"Bandwidth 2" input, control, 0.125 to 8, default 1, logarithmic
"Gain 2" input, control, -20 to 20, default 0
"Section 3" input, control, toggled, default 0
"Frequency 3" input, control, 100 to 10000, default 1000, logarithmic
"Bandwidth 3" input, control, 0.125 to 8, default 1, logarithmic
"Gain 3" input, control, -20 to 20, default 0
"Section 4" input, control, toggled, default 0
"Frequency 4" input, control, 200 to 20000, default 2000, logarithmic
"Bandwidth 4" input, control, 0.125 to 8, default 1, logarithmic
"Gain 4" input, control, -20 to 20, default 0
The interface could be modified to support the fil-plugins plugin properly, but I'm not sure if it's worthwhile (and I don't think that a regular screen would fit all the details onto the interface without scrolling).

Finally, I don't think you can chain multiple LADSPA plugins together - or at least if it were possible, it would greatly increase CPU usage and latency to make it impractical. The interface would also become far too complicated.


Would this be something you would be interested in pursuing for greater sound customisation or could you offer some tips you might have on this subject if I where to give it a go.

Thanks and best regards,
WipI'm not sure if it's worthwhile. The next upstream release of PulseAudio will feature built-in equalization that is not related to my interface or LADSPA plugins, and will probably offer better quality/latency etc.

nanoc
June 16th, 2010, 10:31 PM
Is there a way to specify the frequencies which are modified by the equalizer ?

I would really be interested in removing some very specific frequencies at
233, 466, 932 and 1864 hertz.

Thanks for the script.

Wipster
June 16th, 2010, 11:51 PM
Hi psyke83 thanks for getting back to me so quickly.


I'm not sure if it's worthwhile. The next upstream release of PulseAudio will feature built-in equalization that is not related to my interface or LADSPA plugins, and will probably offer better quality/latency etc.

Ah I didn't realise this was the case, thats good to hear (heh) I shall keep my eyes open for that one.
I think the interface would be big enough to fit the details needed, for instance this is the interface for that plugin for LV2:
http://nedko.arnaudov.name/soft/lv2fil/trac/attachment/wiki/WikiStart/lv2fil.png
If the PulseAudio equaliser doesn't do parametric I think I'l have a tinker with that, strip out the dials and replace with text boxes see if I can get something working, be good experience anyway.

Thanks again.

inunu
June 19th, 2010, 01:22 PM
Thanks for this great script, sorted out my audio problems on my Dell Precision M90, Ubuntu Lucid.

CCC999
June 19th, 2010, 06:16 PM
Thanks for this great script. Compensates for overly bass bias of my otherwise good sound system. Love the way this is out of sight, universal, and easily changed. I just upgraded to Lucid 10.04 on a home built desktop, ran the script with no issues at all. Thanks again!:guitar:

CCC999
June 20th, 2010, 01:33 AM
Thanks for this great script. Compensates for overly bass bias of my otherwise good sound system. Love the way this is out of sight, universal, and easily changed. I just upgraded to Lucid 10.04 on a home built desktop, ran the script with no issues at all. Thanks again!:guitar:
Note, after using for a few hours I noticed a consistent pause in all applications. Rather than leaving it on, I'll just use it as needed - still just what was needed for Pulse!

adlin5000
June 30th, 2010, 08:53 AM
I just have a few questions.

In order to get a decent volume, I have the preamp set to 1.7. Unfortunately this causes distortion whenever it peaks. Listening to Metallica or any other heavy metal is particularly bad. I can drop the volume and its OK, but its very low. Is there a way to just up the base volume level?

Second, I saw this one earlier in the thread but did not see a fix. When I do a full reboot I have no sound whatsoever. When I try and open any of the pulseaudio apps I get a "connection failed" error. I then have to kill anything trying to play audio, open the equalizer, shut it off, open the pulse manager, turn the equalizer back on and re-apply the settings. Not a huge issue as I only do a full reboot about once a month and there are no issues with suspend.

If there has been fixes around, sorry, just call me an idiot and point me in the right direction. Thanks

Absurd
July 1st, 2010, 05:12 AM
Is there a way to just up the base volume level?
Not without decreasing the midrange and treble a little. That's why it's called an equalizer. If there's distortion, then the sound is not equalized.

retznto
July 1st, 2010, 10:32 PM
I've been having some problems trying to remove the plugin :(

I used apt-get --purge remove to uninstall the software, but it doesn't seem to have removed everything, as I have to manually reselect "Internal Audio Analog Surround 5.1" instead of "LADSPA Plugin Multiband EQ on Internal Audio Analog 5.1". I have tried removing the mbeq_1197.so file, but that broke my sound completely (so I have since restored it).

That was probably completely the wrong way to go about removing it completely, so any help would be gladly accepted :)

Thanks

Edit: Never mind, I found the equaliser stuff at the bottom of the config file in ~/.pulse

psoulocybe
July 3rd, 2010, 12:11 AM
You rock!!!! This just made my Sennheisers so happy!