Code: Select all
#~/.asoundrc
# Bandpass plug
# this will tie everything together.
pcm.bandpass222 {
type plug
slave.pcm "highpass"
hint {
show on
description "My Bandpass Filter"
}
}
# high pass filter
# remove freqs below 60hz from fronts, center, and rears
# remove freqs below 5hz from subwoofers
pcm.highpass {
type ladspa
slave.pcm "lowpass";
path "/usr/lib/ladspa";
channels 6
plugins {
0 {
label hpf
policy none
input.bindings.0 "Input";
output.bindings.0 "Output";
input {
controls [60]
}
}
1 {
label hpf
policy none
input.bindings.1 "Input";
output.bindings.1 "Output";
input {
controls [60]
}
}
2 {
label hpf
policy none
input.bindings.2 "Input";
output.bindings.2 "Output";
input {
controls [60]
}
}
3 {
label hpf
policy none
input.bindings.3 "Input";
output.bindings.3 "Output";
input {
controls [60]
}
}
4 {
label hpf
policy none
input.bindings.4 "Input";
output.bindings.4 "Output";
input {
controls [60]
}
}
5 {
label hpf
policy none
input.bindings.5 "Input";
output.bindings.5 "Output";
input {
controls [5]
}
}
}
}
# Low pass filter
# removes freq above the higher range
# of human hearing (20,000 Hz)
# removes any freq above 300hz from the subwoofers
pcm.lowpass {
type ladspa
slave.pcm "hw:0,0";
path "/usr/lib/ladspa";
channels 6
plugins {
0 {
label lpf
policy none
input.bindings.0 "Input";
output.bindings.0 "Output";
input {
controls [20000]
}
}
1 {
label lpf
policy none
input.bindings.1 "Input";
output.bindings.1 "Output";
input {
controls [20000]
}
}
2 {
label lpf
policy none
input.bindings.2 "Input";
output.bindings.2 "Output";
input {
controls [20000]
}
}
3 {
label lpf
policy none
input.bindings.3 "Input";
output.bindings.3 "Output";
input {
controls [20000]
}
}
4 {
label lpf
policy none
input.bindings.4 "Input";
output.bindings.4 "Output";
input {
controls [20000]
}
}
5 {
label lpf
policy none
input.bindings.5 "Input";
output.bindings.5 "Output";
input {
controls [300]
}
}
}
}