You are not logged in.

#1 2011-01-18 20:22:50

NickHu
Member
Registered: 2011-01-18
Posts: 8

Alsaequal Presets?

I have successfully set up alsaequal from AUR for use with MPD, however, I'm awful at this kind of stuff, and I was just wondering if there were any presets, like in the pulse audio equalizer plugin?

Offline

#2 2011-01-18 23:21:04

Anikom15
Banned
From: United States
Registered: 2009-04-30
Posts: 836
Website

Re: Alsaequal Presets?

No


Personally, I'd rather be back in Hobbiton.

Offline

#3 2011-01-18 23:31:17

debianubis
Member
From: London
Registered: 2011-01-18
Posts: 1
Website

Re: Alsaequal Presets?

I have creeps of the word pulseaudio ...


A good website design is user friendly and focused towards companies' overall direction like Web Design London and provides search engine friendly strucure such as SEO London

Offline

#4 2011-01-18 23:40:39

eduardo.eae
Member
From: Reconquista - Argentina
Registered: 2010-01-24
Posts: 71

Re: Alsaequal Presets?

I've made my own script to change presets with dmenu:

#!/bin/bash

seteq(){
    amixer -D equal -q set '01. 31 Hz' $1
    amixer -D equal -q set '02. 63 Hz' $2 
    amixer -D equal -q set '03. 125 Hz' $3 
    amixer -D equal -q set '04. 250 Hz' $4 
    amixer -D equal -q set '05. 500 Hz' $5 
    amixer -D equal -q set '06. 1 kHz' $6 
    amixer -D equal -q set '07. 2 kHz' $7 
    amixer -D equal -q set '08. 4 kHz' $8 
    amixer -D equal -q set '09. 8 kHz' $9 
    amixer -D equal -q set '10. 16 kHz' ${10} 
} 

Speakers()    { seteq 80 70 65 60 60 60 60 80 80 80 }
Notebook()     { seteq 00 75 75 70 50 50 60 70 85 85 }
Disable()   { seteq 66 66 66 66 66 66 66 66 66 66 }

$(echo -e "Speakers\nNotebook\nDisable" | dmenu -p 'Equal')

Offline

#5 2011-01-19 21:03:37

NickHu
Member
Registered: 2011-01-18
Posts: 8

Re: Alsaequal Presets?

That looks like exactly what I'm looking for! (Xmonad with Dmenu set up) But it errors with:

./equal: line 21: syntax error: unexpected end of file

sad

Offline

#6 2011-01-19 23:19:09

Anikom15
Banned
From: United States
Registered: 2009-04-30
Posts: 836
Website

Re: Alsaequal Presets?

You must have typed the command in wrong. That script doesn't even have 21 lines, but I didn't test it.


Personally, I'd rather be back in Hobbiton.

Offline

#7 2011-01-20 17:24:04

NickHu
Member
Registered: 2011-01-18
Posts: 8

Re: Alsaequal Presets?

Anikom15 wrote:

You must have typed the command in wrong.

http://paste.xinu.at/cjj
Really?


-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Offline

#8 2011-01-20 23:23:18

Anikom15
Banned
From: United States
Registered: 2009-04-30
Posts: 836
Website

Re: Alsaequal Presets?

Sarry, I read that script wrong. I thought the last line was a command....

Anyways I can't test it because I don't have dmenu....


Personally, I'd rather be back in Hobbiton.

Offline

#9 2011-01-20 23:27:49

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

Re: Alsaequal Presets?

I took the idea and made a zsh functions.


arst

Offline

#10 2011-01-21 19:45:47

NickHu
Member
Registered: 2011-01-18
Posts: 8

Re: Alsaequal Presets?

teh wrote:

I took the idea and made a zsh functions.

Care to share/explain? ^_^

Offline

#11 2011-01-22 06:57:59

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

Re: Alsaequal Presets?

Add the following lines in your ~/.zshrc

seteq(){
    amixer -D equal -q set '01. 31 Hz' $1
    amixer -D equal -q set '02. 63 Hz' $2 
    amixer -D equal -q set '03. 125 Hz' $3 
    amixer -D equal -q set '04. 250 Hz' $4 
    amixer -D equal -q set '05. 500 Hz' $5 
    amixer -D equal -q set '06. 1 kHz' $6 
    amixer -D equal -q set '07. 2 kHz' $7 
    amixer -D equal -q set '08. 4 kHz' $8 
    amixer -D equal -q set '09. 8 kHz' $9 
    amixer -D equal -q set '10. 16 kHz' ${10} 
} 

Speakers()    { seteq 80 70 65 60 60 60 60 80 80 80 }
Notebook()     { seteq 00 75 75 70 50 50 60 70 85 85 }
Disable()   { seteq 66 66 66 66 66 66 66 66 66 66 }

(Maybe you wanna customize your own presets)

Then just type "Speakers", or "Notebook", or "Disable" as a command, But I think is more "classy" using dmenu or a script in a key binding...

Don't know how to make it work on bash if that's the shell you are using.

Last edited by teh (2011-01-22 07:07:02)


arst

Offline

#12 2011-01-22 18:08:27

NickHu
Member
Registered: 2011-01-18
Posts: 8

Re: Alsaequal Presets?

I think I'd rather get it working in dmenu like above... But I can't tell what's wrong at all >.<

Offline

#13 2011-01-25 19:10:59

NickHu
Member
Registered: 2011-01-18
Posts: 8

Re: Alsaequal Presets?

Bump... Can anyone help me fix this bash script?

Offline

#14 2011-10-30 05:09:22

keripix
Member
From: Indonesia
Registered: 2009-12-13
Posts: 22
Website

Re: Alsaequal Presets?

hopefully im not violating any rule here by commenting on an old post...but i got the script working by changing the 3 functions at the botom to:

Speakers()    { seteq 80 70 65 60 60 60 60 80 80 80; }
Notebook()     { seteq 00 75 75 70 50 50 60 70 85 85; }
Disable()   { seteq 66 66 66 66 66 66 66 66 66 66; }

'I skate to where the puck is going to be, not where it has been.'
--Wayne Gretzky--

Offline

#15 2013-10-26 07:57:57

vohof
Member
Registered: 2013-08-14
Posts: 33

Re: Alsaequal Presets?

I'm cray, for future reference:

_seteq(){
  amixer -D equal -q set '01. 31 Hz' $1
  amixer -D equal -q set '02. 63 Hz' $2
  amixer -D equal -q set '03. 125 Hz' $3
  amixer -D equal -q set '04. 250 Hz' $4
  amixer -D equal -q set '05. 500 Hz' $5
  amixer -D equal -q set '06. 1 kHz' $6
  amixer -D equal -q set '07. 2 kHz' $7
  amixer -D equal -q set '08. 4 kHz' $8
  amixer -D equal -q set '09. 8 kHz' $9
  amixer -D equal -q set '10. 16 kHz' ${10}
}

seteq(){
  case $1 in
    speakers) _seteq 80 70 65 60 60 60 60 80 80 80;;
    notebook) _seteq 00 75 75 70 50 50 60 70 85 85;;
    headphones) _seteq 66 66 66 66 55 30 53 15 80 85;;
    *) _seteq 66 66 66 66 66 66 66 66 66 66;;
  esac
}
$ seteq headphones

Offline

#16 2013-10-26 18:01:22

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Alsaequal Presets?

vohof, there's no need to bump this thread for that. Closing. https://wiki.archlinux.org/index.php/Fo … Bumping.22


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB