Skip to content

Instantly share code, notes, and snippets.

@JanChec
Last active August 6, 2018 18:31
Show Gist options
  • Save JanChec/5f97bf874cffb9b0a90755828f76314f to your computer and use it in GitHub Desktop.
Save JanChec/5f97bf874cffb9b0a90755828f76314f to your computer and use it in GitHub Desktop.
Setup system wide DSP sink for Chord Mojo
#!/bin/bash -eu
pacmd list-sinks > /dev/null || pulseaudio -D
pacmd unload-module module-ladspa-sink || true
DEVICE_NAME=$(pacmd list-sinks | grep name: | egrep -o '<[^<>]+Chord[^<>]+>' | egrep -o '[^<>]+')
echo "Setting up PulseAudio to route into: $DEVICE_NAME..."
pacmd load-module module-ladspa-sink sink_name=dsp master=$DEVICE_NAME plugin=ladspa_dsp label=ladspa_dsp
echo "Done."
pacmd set-default-sink dsp
@JanChec
Copy link
Author

JanChec commented Aug 6, 2018

DSP: https://github.com/bmc0/dsp + installation: https://github.com/bmc0/dsp/wiki/System-Wide-DSP-Guide

Mojo is on USB, so we can't use loading by default from: https://github.com/bmc0/dsp/wiki/System-Wide-DSP-Guide - it has different name on every port, can't hardcode that.

In ~/.config/pulse/daemon.conf:

default-sample-rate = 192000

Effects. In ~/.config/ladspa_dsp/config:

input_channels=2
output_channels=2
effects_chain=@/home/kern3l/Music/DSP/effects.txt

Then effects.txt:

zita_convolver /home/kern3l/Music/DSP/330v2-current.wav

^ can use any effects from https://github.com/bmc0/dsp, I use convolver only with all my effects on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment