With a morse code practice oscillator and a morse code hardware mechanical straight key - TAPPING THE KEY, and sending an audio tone into the MIC JACK INPUT, this video demo's the typical mechanical switch bouncing that takes place and causes breaks/gaps in the audio tone output...and then it shows a very effective LINUX NATIVE REAPER technique to cure the erratic switch bouncing...
LINUX NATIVE REAPER already has everything you need to setup a software debounce software circuit using LInux Native Reaper's own plugins...with REAGATE performing the debouncing job, by increasing its HOLD SETTING to about 15ms
The LINUX NATIVE REAPER, uses the JACK AUDIO CONNECTION KIT for its audio/midi engine.
(look at the 2nd comment from Dali to go to the website where you can download and try LINUX NATIVE REAPER) you need 2 files...
the REAPER file itself and also the LIBSWELL file... download and unzip both of them in the same folder.... then move the LIBSWELL into the same folder where the REAPER EXECUTABLE is located...should look like this when your done unzipping:
here is a picture of my jack CATIA connection bay - with everything wired up: http://i.imgur.com/Gmvztm8.png
NOTE: system on the left , capture 2, is where the TONE from the MORSE CODE PRACTICE OSCILLATOR audio output connects to the MIC JACK INPUT. The MIC INPUT tone is shown on the SCOPE as the GREEN TOP WAVE FORM, the RED is the NATIVE LINUX REAPER regenerated tone by Reasynth. The apple 12 pole bandpass filter is also a native plugin of the LINUX NATIVE REAPER download...as well as Reagate & Reasynth. Reagate is operating first as an AUDIO TO MIDI NOTE TRIGGER with the GATE INPUT VOLUME Threshold set to just trigger a MIDI NOTE OUTPUT at the input audio from the MIC JACK - volume peak level...