I just did some playing with the PDL::FFT method (which I mentioned above by toma). It's only drawback, is it needs wav files to analyze.... no realtime reading from the dsp (unless maybe a chunk method of reading the dsp could be done?). I used a mechanical generator (Perl) to make a wav file 'A A A'. That is a di dah pause di dah pause di dah. The tone frequency was 400Hz. The resultant output follows below, it is a timestamp followed by frequency. As you can see, the 400 Hz shows up nicely, and the inter-di-dah slience is 105. The silence between letters can seen as 8.23. Now I can't say whether this is related to my particular soundcard, or what or non-standard conditions are in place, but it does show a method for doing the FFT on the audio..... the big glitch now is reading it off off the dsp directly. FWIW, I did see a hardwired unit that did this for $89 dollars on the internet. Maybe it's easier to do which real electronics?
0.01 400.00 0.01 400.00 0.02 400.00 0.02 400.00 0.02 400.00 0.02 400.00 0.03 400.00 0.03 400.00 0.03 400.00 0.03 400.00 0.04 400.00 0.04 400.00 0.04 400.00 0.04 400.00 0.05 400.00 0.05 400.00 0.05 400.00 0.05 400.00 0.06 105.26 0.07 105.26 0.08 105.26 0.08 105.26 0.09 105.26 0.10 105.26 0.11 105.26 0.12 105.26 0.13 105.26 0.14 105.26 0.15 400.00 0.15 400.00 0.16 400.00 0.16 400.00 0.16 400.00 0.16 400.00 0.17 400.00 0.17 400.00 0.17 400.00 0.17 400.00 0.18 400.00 0.18 400.00 0.18 400.00 0.18 400.00 0.19 400.00 0.19 400.00 0.19 400.00 0.19 400.00 0.20 400.00 0.20 400.00 0.20 400.00 0.20 400.00 0.21 400.00 0.21 400.00 0.21 400.00 0.21 400.00 0.22 400.00 0.22 400.00 0.22 400.00 0.22 400.00 0.23 400.00 0.23 400.00 0.23 400.00 0.23 400.00 0.24 400.00 0.24 400.00 0.24 400.00 0.24 400.00 0.25 400.00 0.25 400.00 0.25 400.00 0.25 400.00 0.26 400.00 0.26 400.00 0.26 400.00 0.26 400.00 0.27 400.00 0.27 400.00 0.27 400.00 0.27 400.00 0.28 400.00 0.28 400.00 0.28 400.00 0.28 400.00 0.29 400.00 0.29 400.00 0.29 400.00 0.29 400.00 0.30 400.00 0.30 400.00 0.30 400.00 0.30 400.00 0.31 400.00 0.31 400.00 0.31 400.00 0.31 400.00 0.32 400.00 0.32 400.00 0.32 400.00 0.32 400.00 0.33 400.00 0.33 400.00 0.33 400.00 0.33 400.00 0.34 8.23 0.46 8.23 0.58 8.23 0.70 8.23 0.82 8.23 0.94 8.23 1.07 8.23 1.19 8.23 1.31 8.23 1.43 8.23 1.55 400.00 1.55 400.00 1.56 400.00 1.56 400.00 1.56 400.00 1.56 400.00 1.57 400.00 1.57 400.00 1.57 400.00 1.57 400.00 1.58 400.00 1.58 400.00 1.58 400.00 1.58 400.00 1.59 400.00 1.59 400.00 1.59 400.00 1.59 400.00 1.60 105.26 1.61 105.26 1.61 105.26 1.62 105.26 1.63 105.26 1.64 105.26 1.65 105.26 1.66 105.26 1.67 105.26 1.68 105.26 1.69 400.00 1.69 400.00 1.70 400.00 1.70 400.00 1.70 400.00 1.70 400.00 1.71 400.00 1.71 400.00 1.71 400.00 1.71 400.00 1.72 400.00 1.72 400.00 1.72 400.00 1.72 400.00 1.73 400.00 1.73 400.00 1.73 400.00 1.73 400.00 1.74 400.00 1.74 400.00 1.74 400.00 1.74 400.00 1.75 400.00 1.75 400.00 1.75 400.00 1.75 400.00 1.76 400.00 1.76 400.00 1.76 400.00 1.76 400.00 1.77 400.00 1.77 400.00 1.77 400.00 1.77 400.00 1.78 400.00 1.78 400.00 1.78 400.00 1.78 400.00 1.79 400.00 1.79 400.00 1.79 400.00 1.79 400.00 1.80 400.00 1.80 400.00 1.80 400.00 1.80 400.00 1.81 400.00 1.81 400.00 1.81 400.00 1.81 400.00 1.82 400.00 1.82 400.00 1.82 400.00 1.82 400.00 1.83 400.00 1.83 400.00 1.83 400.00 1.83 400.00 1.84 400.00 1.84 400.00 1.84 400.00 1.84 400.00 1.85 400.00 1.85 400.00 1.85 400.00 1.85 400.00 1.86 400.00 1.86 400.00 1.86 400.00 1.86 400.00 1.87 400.00 1.87 400.00 1.87 400.00 1.87 400.00 1.88 8.23 2.00 8.23 2.12 8.23 2.24 8.23 2.36 8.23 2.48 8.23 2.60 8.23 2.73 8.23 2.85 8.23 2.97 8.23 3.09 400.00 3.09 400.00 3.10 400.00 3.10 400.00 3.10 400.00 3.10 400.00 3.11 400.00 3.11 400.00 3.11 400.00 3.11 400.00 3.12 400.00 3.12 400.00 3.12 400.00 3.12 400.00 3.13 400.00 3.13 400.00 3.13 400.00 3.13 400.00 3.14 105.26 3.14 105.26 3.15 105.26 3.16 105.26 3.17 105.26 3.18 105.26 3.19 105.26 3.20 105.26 3.21 105.26 3.22 105.26 3.23 400.00 3.23 400.00 3.24 400.00 3.24 400.00 3.24 400.00 3.24 400.00 3.25 400.00 3.25 400.00 3.25 400.00 3.25 400.00 3.26 400.00 3.26 400.00 3.26 400.00 3.26 400.00 3.27 400.00 3.27 400.00 3.27 400.00 3.27 400.00 3.28 400.00 3.28 400.00 3.28 400.00 3.28 400.00 3.29 400.00 3.29 400.00 3.29 400.00 3.29 400.00 3.30 400.00 3.30 400.00 3.30 400.00 3.30 400.00 3.31 400.00 3.31 400.00 3.31 400.00 3.31 400.00 3.32 400.00 3.32 400.00 3.32 400.00 3.32 400.00 3.33 400.00 3.33 400.00 3.33 400.00 3.33 400.00 3.34 400.00 3.34 400.00 3.34 400.00 3.34 400.00 3.35 400.00 3.35 400.00 3.35 400.00 3.35 400.00 3.36 400.00 3.36 400.00 3.36 400.00 3.36 400.00 3.37 400.00 3.37 400.00 3.37 400.00 3.37 400.00 3.38 400.00 3.38 400.00 3.38 400.00 3.38 400.00 3.39 400.00 3.39 400.00 3.39 400.00 3.39 400.00 3.40 400.00 3.40 400.00 3.40 400.00 3.40 400.00 3.41 400.00

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

In reply to Re: Morse code via sound card input by zentara
in thread Morse code via sound card input by aristotle73

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.