5 # Connect your hardware MIDI device, or launch a virtual MIDI device like
 
   8 #   $ xset -r && vkeybd; xset r on
 
  10 # Find out the port of the input MIDI device:
 
  14 #   client 128: 'Virtual Keyboard' [type=user,pid=25939]
 
  15 #       0 'Virtual Keyboard'
 
  17 # and have a lot of fun vocoding the crap out of your formant channel.
 
  18 CARRIER_TONE="alsamidisrc ports=128:0 ! fluiddec synth-gain=1 ! audioconvert"
 
  20 # Add some white noise to the carrier
 
  21 CARRIER_PARAMS="$CARRIER_TONE ! carrier. audiotestsrc wave=5 volume=0.1 ! carrier."
 
  22 CARRIER="adder name=carrier"
 
  25 #SINK="wavenc ! filesink location=audio-vocoder-test.wav"
 
  27 # Using vocoder_1337.so, in Debian it's available in the swh-plugins package.
 
  28 gst-launch-1.0 -v interleave name=i ! \
 
  29   capssetter caps="audio/x-raw,channels=2,channel-mask=(bitmask)0x3" ! audioconvert ! audioresample ! \
 
  30   ladspa-vocoder-1337-so-vocoder \
 
  50   $FORMANT ! audioconvert ! audioresample ! audio/x-raw, rate=44100, format=S16LE, channels=1 ! queue ! i.sink_0 \
 
  51   $CARRIER ! audioconvert ! audioresample ! audio/x-raw, rate=44100, format=S16LE, channels=1 ! queue ! i.sink_1 \