<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p> I've made such patch to decode termites hammering into morse.</p>
    <p> It uses the process described by andy, and datastructure for
      storing characters, it could also now be done with [text]</p>
    <p>I've made a version where [env] testes if there is sound
      amplitude or not,</p>
    <p>and compare with templates stored into datastructure.<br>
    </p>
    <p> Attached is that version that should work with mjlib/morse and
      latest pd-vanilla.</p>
    <p>Best,<br>
    </p>
    <p>patco<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 15/06/2016 à 15:34, Andy Farnell a
      écrit :<br>
    </div>
    <blockquote
      cite="mid:20160615133412.GC31821@moomin.default.moomin.uk0.bigv.io"
      type="cite">
      <pre wrap="">Yes did that once, but I lost it years ago (the 
patch I mean)

IIRC its not that hard.

Use a [timer] and onset/tone detector,
and an array that looks up the next state.
You need a way to navigate a tree - a state machine
with 26 terminal nodes (36 if you want numbers)
and there are four symbols to transition states,
dot, dah, short space and long gap (between letters)

The array is a 4-tree collapsed into a "Turing tape"
so you use the symbol to select the offset (jump) 
to the next state (table index) based on the last
symbol. A long gap always resets the index to 0. 

cheers,
andy


On Tue, Jun 14, 2016 at 11:41:20AM -0400, me.grimm wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello,

Has anyone made a patch/abstraction to "decode" or translate morse code to
text? I see text->morse but not the other way around....

thanks!
m
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>