5 # In order to have a MIDI carrier use the alsa loopback device and Timidity++ like this:
7 # $ sudo modprobe snd-aloop
8 # $ timidity -Os -o "hw:Loopback,0,0" -iA --sequencer-ports 1
10 # then connect to Timidity++ with a MIDI input device, e.g.:
13 # $ vkeybd --device alsa --addr 129:0
16 # and have a lot of fun vocoding the crap out of your formant channel
17 CARRIER_TONE="alsasrc device=hw:Loopback,1,0 ! audioconvert"
19 # Add some white noise to the carrier
20 CARRIER_PARAMS="$CARRIER_TONE ! carrier. audiotestsrc wave=5 volume=0.1 ! carrier."
21 CARRIER="adder name=carrier"
25 gst-launch-1.0 -v interleave name=i ! \
26 capssetter caps="audio/x-raw,channels=2,channel-mask=(bitmask)0x3" ! audioconvert ! audioresample ! \
27 ladspa-vocoder-1337-so-vocoder-lmms \
47 $FORMANT ! audioconvert ! audioresample ! audio/x-raw, rate=44100, format=S16LE, channels=1 ! queue ! i.sink_0 \
48 $CARRIER ! audioconvert ! audioresample ! audio/x-raw, rate=44100, format=S16LE, channels=1 ! queue ! i.sink_1 \