Tag Archives: morse

morsegen and morse2ascii: Since we’re on the subject

I have a couple of other small Morse telegraphy tools in my list, and since we covered cwcp in the last post, it’s probably a good time to throw them into the mix. Here’s morsegen, from Luigi Auriemma.

2014-12-18-6m47421-morsegen

As you can see, morsegen is very straightforward, and really only reads text files and converts the contents into dash-or-dot sequences. No flags or frills, unless you consider the readout of Luigi’s fixed header to be a frill.

In that sense, I would prefer morsegen work a little more like morse, and accept text either as a target, or through a pipe. morsegen seems hard-coded to look for a target file, and read through that.

Which is all neither here nor there, and perhaps if you like, you can ask Luigi’s permission to adjust morsegen. I wonder if that wouldn’t make morsegen nearly identical to morse, though.

Here’s something a little more ambitious, by the same author: morse2ascii.

2014-12-18-6m47421-morse2ascii

The inner workings of morse2ascii are beyond me, but suffice to say that it reads through a wav file, senses the tones, and converts them into text. You can see the analysis and the results in the screenshot, taken from a random sound file borrowed from The Internet. 😕

As far as I can tell, as someone unskilled in the art of decoding Morse telegraphy, morse2ascii is doing a good job. The file I borrowed was supposedly a training session, working through basic letters and digits before moving into specific sequences. It looks right, anyway.

morse2ascii has the same arrangement as morsegen though, and won’t accept strings and wants a target file. So if you want to stream audio through morse2ascii, you might need to first capture the broadcast, then feed it to morse2ascii. I leave it to you to solve.

Both programs compile and run fine in Arch; morse2ascii is in AUR if you prefer. Debian has both prepackaged. Debian users get all the cool toys. … 😉

cwcp: Learn to walk before you run

I found qrq a week or two ago, and while qrq is probably a very useful program for people who need to improve their skills with Morse telegraphy, it might be geared more towards those who have already mastered the basics.

If you’re a newbie, cwcp might be more to your liking. Here’s the Linux Mint version.

2014-12-18-l3-b7175-cwcp

Much is the same between qrq and cwcp, but it’s also clear that their target audiences are different. cwcp has speed and volume controls, but also has controls for adjusting tone and other audio cues.

qrq seemed to focus on recognizing call signs and building proficiency and speed, while cwcp starts with letter and number groups, and works up through English words and into other categories. cwcp also lets you type in your own text, and will replay it as tones.

Like qrq, cwcp will need a little nudge with the alsa-oss package. I don’t see where that’s listed as a dependency in Debian, but I don’t know that oss is necessarily out of fashion, particularly among Debian fans.

In any case, if you’re not hearing anything, that might be the reason. cwcp is part of the unixcw package, so it might be that you get more “modern” sounds support by bringing in the qt rendition. Try it and tell me.

cwcp alone is not in Arch, but the unixcw suite is in AUR. If you only want the one program, it may be possible to carve it out. And if you’re an Arch user you probably can handle that. 😎

cwcp has color, as you can see, and I should note that cwcp seems comfortable arranging its layout to just about any terminal size, but only on startup. If you change dimensions after you begin your tutorial, cwcp might not notice it.

I think that’s about all I can think of to say about cwcp. It’s definitely every bit as fucntional as qrq, but intended more as a learning activity than as a speed and proficiency drill. Enjoy. 😉

qrq: How little I really know

I found qrq by way of a brute search through the Debian archives for anything text-related, and even though I haven’t a clue what to do with qrq, I’ll show it here out of fairness.

2014-12-11-6m47421-qrq-01 2014-12-11-6m47421-qrq-02

That’s only partly true — I do have a small idea what to do with qrq. The home page is very helpful, and the program itself has more than enough help just in its startup screen to keep me from shrugging with complete bewilderment. And I imagine if you’re learning or use Morse telegraphy at all, it will be very interesting.

It’s also worth highlighting that qrq involves some sound support. Very few console applications take the time to incorporate an audio element, unless they’re specifically intended for audio playback.

At this point I should mention that I have no training whatsoever with Morse code aside from learning about it in primary school. Or maybe tinkering with morse. So properly using qrq is well beyond my ability.

On the other hand, I do like the interface, even if it is pinned to 80×24. qrq has no flags that I could find, and the man page gives only a little more information than you’ll get from starting the program.

I noticed that qrq is in both Debian and Arch, and the Arch version will pull in alsa-oss when you install it. That might suggest that qrq is a little beyond the most recent developments in Linux audio, but I had no problems with qrq’s sound playback.

Other than the fact that I have no clue what those beeps and boops mean. :\

Between this and yfklog, I’m beginning to expect more from text-only applications intended for the amateur radio demographic. … 😐

ppt, bcd and morse: Dit dit, daw daw

One more out of bsd-games, because … well, just because. And this is a three-fer. Here’s ppt first.

2014-03-10-lv-r1fz6-ppt

If you’ve been in the computer game for a while you’ll recognize a strip of paper tape, cleverly rendered in ASCII characters. ppt will translate to image and back, as you can see in the screenshot above.

Now bcd.

2014-03-10-lv-r1fz6-bcd

Keeping with the 1960s-70s computer motif, bcd translates — only, I might add — from text to an ASCII rendition of a punch card. Anybody here remember punch cards, besides me? Anyone? Anyone … ? 😕

Last but not least: morse.

2014-03-10-lv-r1fz6-morse

By now you probably have an idea of what morse will do, if logic follows in this post. As you can see, morse will use the “dit-daw” notation, or better, the dot-dash notation. And like ppt, it will convert back and forth between its product and the original string.

So … aside from nostalgia, what use are any of these, K.Mandla?

Well, again, you’re the best judge of that. I suppose if you need some sort of bland cryptographic effort, it could work that way. After that … I’m out of ideas. 😉