Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


LADSPA plugins and asound.conf
#5
Tim,

Is it possible that adding and enabling an output "6" is causing Moode to default to opening output "1" at boot?
Code:
pi@Sulky:/var/log $ cat moode.log | grep -i 'mpd output'
20180724 183823 worker: Configure MPD outputs
20180724 183823 worker: MPD output 1 ALSA default (on)
20180724 183823 worker: MPD output 2 ALSA crossfeed (off)
20180724 183823 worker: MPD output 3 ALSA parametric eq (off)
20180724 183823 worker: MPD output 4 ALSA graphic eq (off)
20180724 183823 worker: MPD output 5 ALSA bluetooth (off)
pi@Sulky:/var/log $




In the general mpd.conf settings section, I have 
Code:
mixer_type "software"
Added to drive the crossovers. (USB soundcard is a CM6206LX cheapie. Using hardware mixer/volume with my setup causes volume level "2" to be comfortable listening and level "5" to be too much, hence I added the "mixer_type = software" global.)
Code:
audio_output {
type "alsa"
name "LADSPA filters2 active"
device "plug:ladspa_filters2"
mixer_control "Speaker"
mixer_device "hw:1"
mixer_index "0"
dsd_usb "yes"
}

asound.conf added to /etc.
  • Using Charlie Laub's ACDf LADSPA plugin(s).
  • Not yet added as default ALSA device.
  • Woofermatch performs null operation on the HF drivers. That way I get output from the top channels. Otherwise I get woofer only. I may yet find a more elegant way to do it.

Code:
# LADSPA filters; they act serially on each channel
# Altering a channel first will alter any channels
# that channel is copied.
# Filters with the same input and output channel MUST be last to operate

pcm.ladspa_filters2 {
    type ladspa
    slave.pcm woofermatch
    path "/usr/local/lib/ladspa"  # must indicate filter directory
    channels 4                    # two is default, other channel counts must $
    plugins
    {
         0 {                      # Output 2 (RHF)- 2nd order HPF on TC9
              label ACDf
              policy none
              input.bindings.1 "Input"
              output.bindings.2 "Output"
              input { controls [22 1 0 500 0.707] } # 22 = 2nd order HPF
         }
         1 {                      # Output 3 (RLF)- 2nd order LPF on woofer
              label ACDf
              policy none
              input.bindings.1 "Input"
              output.bindings.3 "Output"
              input { controls [21 1 0 500 0.707] } # 21 = 2nd order LPF
         }
         2 {                      # Output 1 (LLF)- 2nd order LPF on woofer
              label ACDf
              policy none
              input.bindings.0 "Input"
              output.bindings.1 "Output"
              input { controls [21 1 0 500 0.707] } # 21 = 2nd order LPF
         }
         3 {                      # Output 0 (LHF) - 2nd order HPF on TC9
              label ACDf
              policy none
              input.bindings.0 "Input"
              output.bindings.0 "Output"
              input { controls [22 1 0 500 0.707] } # 22 = 2nd order HPF
         }
    }
}

# gain block to normalise woofer level
pcm.woofermatch {
    type ladspa
    slave.pcm out4way
    path "/usr/local/lib/ladspa"  # must indicate filter directory
    channels 4                    # two is default, other channel counts must $
    plugins
    {
         0 {                      # Output 0 (LHF) - raise HF
              label ACDf
              policy none
              input.bindings.0 "Input"
              output.bindings.0 "Output"
              input { controls [0 1 0] } # 0 = gain/phase
         }
         1 {                      # Output 1 (LLF) - Reduce woofer gain
              label ACDf
              policy none
              input.bindings.1 "Input"
              output.bindings.1 "Output"
              input { controls [0 1 -9] } # 0 = gain/phase
         }
         2 {                      # Output 2 (RHF) - raise HF
              label ACDf
              policy none
              input.bindings.2 "Input"
              output.bindings.2 "Output"
              input { controls [0 1 0] } # 0 = gain/phase
         }
         3 {                      # Output 3 (RLF) - Reduce woofer gain
              label ACDf
              policy none
              input.bindings.3 "Input"
              output.bindings.3 "Output"
              input { controls [0 1 -9] } # 0 = gain/phase
         }
    }

}


pcm.out4way {
    type plug
    slave {
         pcm "hw:1,0"
         channels 4
    }
}


Cheers,

J.
Reply


Messages In This Thread
LADSPA plugins and asound.conf - by jerms - 07-20-2018, 07:59 AM
RE: LADSPA plugins and asound.conf - by jerms - 07-25-2018, 01:14 PM
RE: LADSPA plugins and asound.conf - by jerms - 07-28-2018, 02:17 PM
RE: LADSPA plugins and asound.conf - by jerms - 12-15-2018, 11:40 AM

Forum Jump: