Skip to content

Instantly share code, notes, and snippets.

@benjie
Created February 15, 2015 14:24
Embed
What would you like to do?
Dalek Audio
pcm.ladspa {
type ladspa
slave.pcm "plughw:1,0"
path "/usr/lib/ladspa"
capture_plugins [
{
label lsFilter
input {
controls [ 1 2200 ]
}
}
{
label mbeq
input {
# bands: 50hz, 100hz, 156hz, 220hz, 311hz, 440hz, 622hz, 880hz, 1250hz, 1750hz, 25000hz, 50000hz, 10000hz, 20000hz
controls [ -10 0 0 10 20 20 20 30 20 20 0 0 -10 -10 -20 ]
}
}
{
label amPitchshift
input {
controls [ 1.06 ]
}
}
{
label ringmod_1i1o1l
input {
controls [ 2 30 1 0 0 0 ]
}
}
]
}

Dalek Audio

Based heavily on Penguin Producer's instructions I tweaked some settings and played with some settings. We use alsaloop for low latency audio loopback, by sourcing from plug:ladspa we get the input (microphone) filtered but other sound effects can play unmodified.

This runs fine on the Raspberry Pi with an external USB sound card.

#!/bin/bash
alsaloop -c 1 --rate=16000 -A 2 -b -S 1 -C plug:ladspa -P hw:1 -t 50000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment