You are not logged in.

#1 2008-08-09 06:02:35

coolaman
Member
From: france
Registered: 2008-07-28
Posts: 34
Website

Alsa equalizer

Hi, i want to have a realtime equalizer for alsa for my system ( my laptop's speakers are not very good ) .

For now, i play with asoundrc and ladspa plugins but it's not very useful .

I found this ( it is in early development ) but it don't work for me.If someone get it working : http://www.thedigitalmachine.net/alsaequal.html

Offline

#2 2008-08-09 16:21:47

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: Alsa equalizer

this looks interesting

[edit]

wow, this is nice

alsamixer-equal.png


update: I was able to get it working with speaker-test, but not mpd (yet)


update 2: ok, got it working with almost everything except MPD. Even by setting it as default.


here's an ~/.asoundrc (aka /etc/asound.conf) to use for reference

pcm.plugequal{
  type equal
    slave.pcm "plug:dmix"
}

ctl.equal{
  type equal
}
         
#I couldn't get this working, but I just assume it's essential
pcm.equal{
  type plug
  slave.pcm "plug:dmix"
}
             
pcm.!default {
  type plug                                                                                      
  slave.pcm "plugequal"                                                                          
}

The equalizer can only be accessed through the ncurses alsamixer by running alsamixer -D equal

Also, the 30hz band doesn't seem to do anything.

Last edited by NoOneImportant (2008-08-10 04:43:28)

Offline

#3 2009-07-20 06:25:06

masterLoki
Member
From: Between a chair & the keyboard
Registered: 2008-12-20
Posts: 16

Re: Alsa equalizer

Hi, as for now it seems to be work out of box and works great. I got it working with your NoOneImportant's asoundrc (put it on my path).
It also works with MPD (using git for AUR)
alsaequal is on AUR.

Last edited by masterLoki (2009-07-20 06:25:22)


masterLoki - Trying to understand the universe

Offline

#4 2009-07-20 07:29:09

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Alsa equalizer

what's it like on resources?


neutral

Offline

#5 2009-08-29 01:45:35

akira86
Member
Registered: 2009-01-16
Posts: 118

Re: Alsa equalizer

@sand_man : for me it's +10 %

@masterLoki : could you post your mpd.conf and your asound.conf (or rc)

for me alsaequal doesn't work with gstreamer and mpd. (it work well with mplayer)

here is my asound.conf :

ctl.equalizerV {
  type equal
  library "/usr/lib/ladspa/mbeq_1197.so"
  module "mbeq"
}

pcm.plugEqualizerV {
  type equal
  slave.pcm  "plug:dmix"
  library "/usr/lib/ladspa/mbeq_1197.so"
  module "mbeq"
}

#pcm.!default {
pcm.equalizerV {
   type plug
   slave.pcm plugEqualizerV
}

pcm.plugEqualizerF {
  type ladspa

  # The output from the EQ can either go direct to a hardware device
  # (if you have a hardware mixer, e.g. SBLive/Audigy) or it can go
  # to the software mixer shown here.
  #slave.pcm "plughw:0,0"
  slave.pcm "plug:dmix"

  # Sometimes you may need to specify the path to the plugins,
  # especially if you've just installed them.  Once you've logged
  # out/restarted this shouldn't be necessary, but if you get errors
  # about being unable to find plugins, try uncommenting this.
  path "/usr/lib/ladspa"

  plugins [
    {
      label mbeq
      id 1197
      input {
        #this setting is here by example, edit to your own taste
        #bands: 50hz, 100hz, 156hz, 220hz, 311hz, 440hz, 622hz, 880hz, 1250hz, 1750hz, 25000hz,
        #3500hz, 5000hz, 10000hz, 20000hz
        # de -70 a 30
        controls [ -70 -30 -10 0 0 0 0 0 0 0 0 0 0 0 0 ]
      }
    }
  ]
}

pcm.!default {
type plug
slave.pcm plugEqualizerF
}

I use ladspa as a normal equalizer and alsaequal to found the correct setting of ladspa.
Sometime I use alsaequal with mplayer for divx...

here is the command :

alsamixer -D equalizerV

to adjust alsaequal
and

mplayer -ao alsa:device=equalizerV  MyMovie.avi

Offline

#6 2009-11-07 22:54:21

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: Alsa equalizer

akira86 wrote:

for me alsaequal doesn't work with gstreamer and mpd. (it work well with mplayer)

I encoutered this problem, too.

Then, I figured out that alsaequal does *not* store the eq settings system-wide but on a per-user basis ($HOME/.alsaequal.bin). mpd runs as user mpd (check your mpd configuration), so copying .alsaequal.bin to /var/lib/mpd/ solved the problem for me.

Alternatively you can use su, alsamixer and probably chsh to set up eq settings for mpd.

Offline

#7 2009-11-08 01:38:42

akira86
Member
Registered: 2009-01-16
Posts: 118

Re: Alsa equalizer

thanks for the tips :-)

Offline

#8 2011-11-30 12:15:03

iode1
Member
Registered: 2011-10-23
Posts: 29

Re: Alsa equalizer

Could anyone help direct me to a solution for this return:

[iode1@arch ~]$ alsamixer -D equalizerV
ALSA lib control.c:882:(snd_ctl_open_noupdate) Invalid CTL equalizerV
cannot open mixer: No such file or directory

Thanks..


Lenovo Thinkpad SL410
Archlinux (XFCE, KDE)

Offline

#9 2011-11-30 16:30:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Alsa equalizer

What's in your asound.conf?

Offline

#10 2011-11-30 19:50:04

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Alsa equalizer

iode1, this thread is more than two years old and your problem does not really fit here. Please open a new thread of your own and ask again.

Besides, be sure to read our forum etiquette on necro bumping.

Closing.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB