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:
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
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list