Closed arjunmenon closed 6 years ago
Could you post your .asoundrc
? What user is MPD running as? If MPD isn't running as pi
, it won't find your .asoundrc
.
aplay music_test/test_track.mp3
aplay can't decode MP3s, so it just plays them as raw data.
effects_chain=gain 2.0 g2reverb -w 200 15 0.1 0.9 -10 -10 -10
g2reverb
requires a stereo input, so you have to set input_channels=2
and output_channels=2
in the ladspa_dsp config. You should also modify your .asoundrc
. See the README for more info.
why does it say
disabled ladspa_host.o
The ladspa_host
effect requires libltdl. If you don't plan on loading LADSPA effects with dsp or ladspa_dsp, you don't need to worry about this.
Hey Thanks for pointing out the channels for g2reverb.
I got it working now by removing the user specific configs for DSP and ALSA. I set them both to global defaults.
/etc/asound.conf
pcm.dsp {
type plug
slave {
format FLOAT
rate unchanged
channels unchanged
pcm {
type ladspa
path "/usr/lib/ladspa"
playback_plugins [{
label "ladspa_dsp"
}]
slave.pcm {
type plug
slave {
pcm "hw:0,0"
rate unchanged
channels unchanged
}
}
}
}
}
pcm.!default {
type copy
slave.pcm "dsp"
}
I had to also remove any sound card settings in the MPD config as well. This was crashing the aplay
with seg fault.
It works nice now, thanks!
The ladspa_host effect requires libltdl. If you don't plan on loading LADSPA effects with dsp or ladspa_dsp, you don't need to worry about this.
This was not the case when I had installed the module a while back. Is this a recent change?
In an earlier post you had suggested to use a LADSPA plugin for range compression, (though I am interested in room correction). I would like to try VLevel. This installs the plugin as a shared object file in /usr/local/lib/ladspa/vlevel-ladspa.so
I would have to simply link it like this?
effects_chain=gain -3.0 ladspa_host /usr/local/lib/ladspa/vlevel-ladspa.so VLevel --length 88200 --max-multiplier 15
_I also like to know about zitaconvolver effects, but I will open a new thread, since this is not related to it.
Is this a recent change?
Not really. I added the ladspa_host
effect in September of last year. It has always required libltdl.
I would have to simply link it like this?
Not quite. You can use the analyseplugin
program to find the plugin labels and control ports. Looking at the code, I can see that the plugin provides two effects: vlevel_mono
and vlevel_stereo
. You probably want to use vlevel_stereo
so you don't get a weird panning effect if the two channels have unequal volumes. The controls are given as numeric values in the order they appear, so you would load the effect like this:
ladspa_host /usr/local/lib/ladspa/vlevel-ladspa.so vlevel_stereo <Look-ahead (seconds)> <Strength> <Use Maximum Multiplier> <Maximum Multiplier> <Undo>
For the parameters you gave in your example, you'd invoke it like this:
ladspa_host /usr/local/lib/ladspa/vlevel-ladspa.so vlevel_stereo 2 0.8 - 15 -
-
selects the default value. You can verify the values by running dsp
or ladspa_dsp
in verbose mode. Be sure to set the number of channels properly.
By the way, I just pushed a commit to add /usr/local/lib/ladspa
to the default search path in the ladspa_host
effect, so you don't have to give the full path anymore:
ladspa_host vlevel-ladspa vlevel_stereo 2 0.8 - 15 -
Nice, ;)
Hey I have MPD installed in Rpi via upmpdcli. ALSA is default.
DSP is not running with MPD
There are no changes to the config, everything is default. The Pi itself has the audio routed to the default jack.
This is the output for the
configure file
for dsp _(by default, why does it saydisabled ladspa_host.o
)_I searched for LADSPA with ASLA for Pi I followed this - https://www.raspberrypi.org/forums/viewtopic.php?t=46997 But with no luck. In the end of the post it says to comment two lines in
/usr/share/alsa/alsa.conf
if Pulse and Alsa are installed both, I tried it anyway,Before commenting I got error with
aplay
After commenting, I just heard noise. No errors. Just noise.
In $HOME/.config/ladspa_dsp/config
Now this effect_chain worked perfectly while testing through the CLI
Running on RPI 3 jessie version 8 kernel 4.9.35-v7+
EDIT - I also tried this effects chain in the config
effects_chain=gain -30.0 lowshelf 90 0.9s +3.0
It still didnt work. The
dsp
device is loaded thoughAnd doing
mpg321 -a dsp music_test/test_track.mp3
plays the file with extremely low volume.But the problem still remains, MPD output is ignoring the alsa config and playing unfiltered through the default audio jack.