Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #75

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8c209d4
new 'save preset' method and add 'export preset' feature
larmedina75 Jun 2, 2018
9861a2a
Delete pulseaudio-equalizer.sublime-workspace
Jun 2, 2018
8b4f951
Import preset done
larmedina75 Jun 2, 2018
ed83621
About dialog and minor changes
larmedina75 Jun 3, 2018
38ae9eb
readme changes
larmedina75 Jun 3, 2018
fa3263b
readme changes
larmedina75 Jun 3, 2018
05859fc
Delete .gitignore
Jun 6, 2018
52f7f87
changes planned
larmedina75 Jun 6, 2018
46c25ae
Merge branch 'new' of https://github.com/larmedina75/pulseaudio-equal…
larmedina75 Jun 6, 2018
f4448d4
Enhabled Drag and Drog to import preset(s)
larmedina75 Jun 6, 2018
210312b
Enabled Drag and Drop to import preset(s)
larmedina75 Jun 6, 2018
71b11f3
Enabled Drag and Drop to import preset(s)
larmedina75 Jun 6, 2018
61825cc
rewrite app. start
Oct 4, 2021
174f064
header bar menu works
Oct 8, 2021
a8103c7
ui and functionality improves
Oct 10, 2021
7ac8cc8
save preset works
Oct 10, 2021
c4bae1e
Save and Delete works ok
Oct 11, 2021
0590119
version change
Oct 11, 2021
4a0a3ca
update readme
Oct 11, 2021
7f63d0b
Initial empty commit
Oct 11, 2021
69bd108
Initial empty commit
Oct 11, 2021
a51d210
Export and Import
Oct 13, 2021
a0ae61d
fix eq status detection
larmedina75 Nov 6, 2021
fb7b763
improves response to eq vallues changes
larmedina75 Nov 7, 2021
9bf7a0c
package config
larmedina75 Nov 8, 2021
639600c
fix import preset
larmedina75 Nov 21, 2021
35bc94d
update changelog
larmedina75 Nov 21, 2021
d25c624
minor fixes
larmedina75 Jul 21, 2022
f59a22f
drag&drop and fixes
larmedina75 Jul 23, 2022
34d8e5c
readme update
larmedina75 Jul 23, 2022
8ed27f5
error path
larmedina75 Jul 23, 2022
1e2774e
fix error
larmedina75 Aug 7, 2022
33f29cc
fixes and warnings msgs
larmedina75 Aug 7, 2022
85596f1
package update
larmedina75 Aug 7, 2022
405304e
update package
larmedina75 Aug 7, 2022
479ac33
new features and fixes
larmedina75 Jun 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 143 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

*.sublime-project
*.sublime-workspace
*.ui~

47 changes: 47 additions & 0 deletions DEBIAN/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
pulseaudio-equalizer-ladspa (2022.08.0-0_all) ; urgency=low

version 2022.08

* Debian packages for Ubuntu 21.10 and earlier with zstd compression support
* Debian packages with tar.zx compression support
* Fixed error when trying to delete a non user preset
* Fixed LADSPA plugin multiband EQ module listed after uninstall
* if swh plug-ins are not installed, a warning message is displayed

version 2022.07

* Import presets by drag and drop a .preset file, feature enabled again.
* Fixed error that mishandle the actual preset list when a personal preset is deleted

version 2021.11

* Improves detection of actions and changes on pesets
* Fixed detection of pulseaudio equalizer status on initialization
* Fixed bad sync to header bar and tool bar controls (preset box and enable/disable switch)
* Fixed error when equzliaer plugin for pulse audio is not present

version 2021.10

* Export a preset
* Import a preset
* Gnome 3 header bar enable / disable
* Option to get a traditional interface (menu and tool-bar, yeah I do hate header bars)
* Save modified frecuencies set as a new preset
* Delete local conf. presets
* Enhanced Save Preset
* About dialog and credits
* Equilizer polished inteface

version 2.7.2

* Add a failcheck when the equalizer sink is loaded
* Add more presets (useful presets, ex. Bass Boost)
* Enanced Save Preset
* Add Export preset
* Add Import preset
* About dialog and credits
* Enabled import presets by drag and drop a .preset files

-- Luis Armando Medina <[email protected]> Tue, 03 Oct 2017 13:30:57 +0200


12 changes: 12 additions & 0 deletions DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Package: pulseaudio-equalizer-ladspa
Version: 2022.08.0
Architecture: all
Maintainer: Luis Armando Medina Avitia <[email protected]>
Installed-Size: 6
Depends: swh-plugins, pulseaudio, python3-gi, libgtk-3-0
Section: admin
Priority: optional
Homepage: https://www.comoinstalarlinux.com/pulseaudio-equalizer-ladspa/
Standards-Version: 4.0.0
Description: PulseAudio Equalizer - LADSPA plugin graphical user interface
GUI for PulseAudio's LADSPA interface using Steve Harris' Multiband EQ (mbeq_1197) plugin
4 changes: 4 additions & 0 deletions DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
set -e

sudo xdg-desktop-menu install /usr/share/applications/pulseaudio-equalizer.desktop
4 changes: 4 additions & 0 deletions DEBIAN/preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
set -e

sudo mkdir -p /usr/share/pulseaudio-equalizer/presets
16 changes: 8 additions & 8 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Maintainer: FFY00 <[email protected]>
pkgname=pulseaudio-equalizer-ladspa-ffy00-git
pkgname=pulseaudio-equalizer-ladspa
pkgver=1.0.r0.4856f57
pkgrel=3
pkgdesc="A 15-band equalizer for PulseAudio (FFY00's fork)"
pkgdesc="A 15-band equalizer for PulseAudio"
arch=(any)
url="https://github.com/FFY00/pulseaudio-equalizer-ladspa"
url="https://github.com/larmedina75/pulseaudio-equalizer-ladspa"
license=('GPL3')
depends=('pygtk' 'swh-plugins' 'gnome-icon-theme' 'pulseaudio' 'bc' 'python2-gobject')
depends=('python-gobject' 'gtk3' 'swh-plugins' 'pulseaudio' 'bc')
makedepends=('git')
provides=('pulseaudio-equalizer-ladspa')
conflicts=('pulseaudio-equalizer-ladspa')
replaces=('pulseaudio-equalizer-ladspa')
source=('remote::git+https://github.com/FFY00/pulseaudio-equalizer-ladspa')
source=('remote::git+https://github.com/larmedina75/pulseaudio-equalizer-ladspa')
md5sums=('SKIP')

pkgver() {
Expand All @@ -20,8 +20,8 @@ pkgver() {
}

package() {
install -Dm644 "$srcdir/remote/equalizerrc" "$pkgdir/usr/equalizerrc"
install -Dm644 "$srcdir/equalizerrc" "$pkgdir/usr/equalizerrc"

cp -r "$srcdir/remote/share" "$pkgdir/usr/"
cp -r "$srcdir/remote/bin" "$pkgdir/usr/"
cp -r "$srcdir/share" "$pkgdir/usr/"
cp -r "$srcdir/bin" "$pkgdir/usr/"
}
69 changes: 61 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,64 @@
# pulseaudio-equalizer-ladspa
A LADSPA based multiband equalizer approach for getting better sound out of pulseaudio.
This equalizer clearly is more potent than the (deprecated ?), optional one from Pulseaudio.
# Pulseaudio Equalizer
A LADSPA based multiband equalizer approach for getting better sound out of PulseAudio.
This equalizer clearly is more potent and easy to use than previous versions.

## Differences
* Add a failcheck when the equalizer sink is loaded
* Add more presets (useful presets, ex. Bass Boost)
I like to play Spotify or other audio sources and get a good sound. Other equalizers work great but it uses Gnome 3 header bar and I do really hate this header bars distribution, so I try to fix this, and I add some extra features.


![Image of Pulseaudio equalizer for Linux](https://www.comoinstalarlinux.com/wp-content/uploads/pulseaudio-equalizer-ladspa-2021.11-comoinstalarlinux.com-equalizer-ecualizador-liunx-ubuntu-mint-debian-mx-gtk3-gnome3.png)

## Features on version 2024.07

* Export all user presets to a folder is posible
* Tow more presets added Gospel, and Blues
* Fixed error when trying to delete a non user preset
* Fixed LADSPA plugin multiband EQ module listed after uninstall
* if swh plug-ins are not installed, a warning message is displayed

## Features on version 2022.07

* Debian packages for Ubuntu 21.10 and earlier with zstd compression support
* Debian packages with tar.zx compression support
* Import presets by drag and drop a .preset file, feature enabled again.
* Fixed error that mishandle the actual preset list when a personal preset is deleted

## Features on version 2021.11

* Fixed preset file import Error, dialog freeze
* Improves detection of actions and preset changes
* Fixed detection of PulseAudio equalizer status on initialization
* Fixed bad sync to header bar and toolbar controls (preset box and enable/disable switch)
* Fixed error when equalizer plugin for PulseAudio is not present

## Features on version 2021.10

* Export a preset
* Import a preset
* Gnome 3 header bar enable/disable switch
* Option to have a traditional interface (menu and tool-bar, yeah I do hate header bars)
* Save modified frequencies set as a new preset
* Delete local conf. presets
* Enhanced Save Preset
* About dialog, credits, and license
* Equalizer polished interface

## Todo

* Automatically detect non Gnome 3 Desktop environments (MATE, Cinnamon, XFce, etc.)
* Multi language support
* experimental pipewire support

### Original Sources
https://code.launchpad.net/~psyke83/+junk/pulseaudio-equalizer
https://github.com/jjo/config/tree/master/.pulse

https://github.com/pulseaudio-equalizer-ladspa/equalizer
https://code.launchpad.net/~psyke83/+junk/pulseaudio-equalizer
https://github.com/jjo/config/tree/master/.pulse

### Donations and Support

If you think this software is useful or you want to support its development and maintenance, make a donation.

You can contribute from 0.00004 to 1 bitcoin or just a tip for a cup of coffee, caffeine always helps to write more and better software.

BTC: 3CvPpZKtX6n4qXrscJNqcwL5Ps5Y1Ydkex
XMR: 42yQLLnxiNR2teFXBorZi3cpARqRDUfcMDTHJMyUry3mB8nH8jiSPUJgtrjWPL5jMu9paHU7fsemhdNub3Xo5itfQwwMiVG
26 changes: 14 additions & 12 deletions bin/pulseaudio-equalizer
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# Intended for use in conjunction with PulseAudio Equalizer (pulseaudio-equalizer.py/pulseaudio-equalizer-gtk) PyGTK script.
#

# Don't execute the script with elevated privileges
[[ $EUID = 0 ]] && { echo "This script must not be run as root!"; exit 1; }

# Default LADSPA plugin & control settings; settings will be overridden if $CONFIG_NAME file exists.
PA_LADSPA_PLUGIN="mbeq_1197"
PA_LADSPA_PLUGIN_NAME="Multiband EQ"
Expand All @@ -20,17 +23,12 @@ PA_CURRENT_PRESET=""

PRESET_DIR1=$HOME/.config/pulse/presets
PRESET_DIR2=/usr/share/pulseaudio-equalizer/presets
SCRIPT_NAME=pulseaudio-equalizer
SCRIPT_VERSION="4.0 (29.01.2017)"
SCRIPT_NAME=./pulseaudio-equalizer
#SCRIPT_NAME=pulseaudio-equalizer
SCRIPT_VERSION="4.1 (29.01.2017)"
CONFIG_NAME=$HOME/.config/pulse/equalizerrc
LOG_NAME=$HOME/pulseaudio-equalizer.log

# Don't execute the script with elevated privileges
if [[ ! $EUID -ne 0 ]]; then
echo "This script must not be run as root!" 1>&2
exit 1
fi

# PyGTK Interface - Reset Settings
if [ "$1" = "interface.resetsettings" ]; then
# Convert commas into newlines and dump all settings to configuration file
Expand Down Expand Up @@ -338,7 +336,7 @@ if [ "$1" = "disable" -o "$1" = "enable" ]; then
echo -n >/tmp/eqcommands.sh

# Unload & reload stream-restore module
echo "Unloading & reloading stream-restore module..."
#echo "Unloading & reloading stream-restore module..."
echo >>/tmp/eqcommands.sh "unload-module $(pacmd list | grep -B1 -m1 'name: <module-stream-restore>' | grep ' index: ' | sed 's/ index: //g')"
echo >>/tmp/eqcommands.sh "load-module module-stream-restore"

Expand All @@ -357,14 +355,14 @@ if [ "$1" = "disable" -o "$1" = "enable" ]; then
echo >>/tmp/eqcommands.sh "set-sink-mute $PA_MASTER_SINK $PA_CURRENT_MUTE"

# Execute all queued commands (for potential speed benefit)...
pacmd </tmp/eqcommands.sh >/dev/null
#pacmd </tmp/eqcommands.sh >/dev/null
fi

if [ "$1" = "enable" ]; then
echo "-------------------------------------"
echo "Current operation: enabling equalizer"
echo "-------------------------------------"
echo -n >/tmp/eqcommands.sh
#echo -n >/tmp/eqcommands.sh

# Unload & reload stream-restore module with restore_device option disabled (to ensure that previously cached per-client sinks are not used)
echo "Unloading & reloading stream-restore module..."
Expand All @@ -382,7 +380,7 @@ if [ "$1" = "enable" ]; then

# Unmute & set preamp level on ALSA sink (as LADSPA sink will act as primary volume control)
echo "Setting ALSA sink ($PA_MASTER_SINK) preamp ("$PA_PREAMP"x)..."
#echo >>/tmp/eqcommands.sh "set-sink-volume $PA_MASTER_SINK $PA_REAL_PREAMP"
echo >>/tmp/eqcommands.sh "set-sink-volume $PA_MASTER_SINK $PA_REAL_PREAMP"
echo >>/tmp/eqcommands.sh "set-sink-mute $PA_MASTER_SINK 0"

# Set the LADSPA sink as the default
Expand All @@ -397,6 +395,10 @@ if [ "$1" = "enable" ]; then
pacmd </tmp/eqcommands.sh >/dev/null
fi

if [ "$1" = "disable" ]; then
pacmd </tmp/eqcommands.sh >/dev/null
fi

if [ "$1" = "" -o "$1" = "-h" -o "$1" = "--help" ]; then
echo -e "Usage: $SCRIPT_NAME [option]"
echo -e "WARNING: This is for internal use by the pulseaudio-equalizer-gtk interface."
Expand Down
Loading