aplonis has asked for the wisdom of the Perl Monks concerning the following question:

Somewhere there exists a Morse Code audio playout script in Perl. It is (an extraneous) part of some larger module which controls external events via the parallel port...or possibly those X10 gizmos

Does anybody know where I might locate that Morse Code audio playout script?

Replies are listed 'Best First'.
Re: Morse code audio playout?
by Anonymous Monk on Feb 05, 2006 at 10:15 UTC
Re: Morse code audio playout?
by graff (Chancellor) on Feb 05, 2006 at 15:05 UTC
    It looks like the PM node cited in the first reply does not handle audio output. But if you do a search on CPAN for "Morse", you'll find: Acme::Morse::Audible

    ... which probably isn't exactly what you want either, but it probably does provide a model from which you could adapt a slightly different version to do what you really want.

    Good luck with that.

Re: Morse code audio playout?
by bart (Canon) on Feb 05, 2006 at 16:38 UTC
    Are you the same person who asked the same question on comp.lang.perl.misc? You should have showed some more patience, somebody went through a lot of trouble writing some script in reply.
      Eh, that was me, and I just copy'n'pasted them in. No sweat.:-) He did get a nice OO one from crazyinsomniac here, so it does pay to ask in multiple locations. Although I've learned it's best to wait a day or 2 between posting to different locations, to prevent the appearance of impatience.

      I'm not really a human, but I play one on earth. flash japh
Re: Morse code audio playout?
by aplonis (Pilgrim) on Feb 05, 2006 at 22:59 UTC

    Yes, thanks to all. Not meaning to be impolite, but I generally post queries in plural locations and don't mind at all when others do the same. It's a habit I got into at work where the powers that be hold that patience is not a virtue...alas. The tactic has bled into my private endeavours too, I fear. The comp.lang.perl listing was my first news post in more than ten years by the way. And I do appreciate all the help.

    For some reason I could not get Acme::Morse::Audible to work as described on my NetBSD box. I will have to study that and puzzle it out.

    I'll be studying the MIDI::* modules next in the hopes of improving what I managed to cobble together in the mean time. The MIDI function, I am hoping, will speed things up over the route I used.

    About that latter, from my end I had dug into the Audio::Wav module and discovered it could generate a sine wave, which I thoroughly abused to get something working for at least the time being.

    The results of my own puny efforts are on-line here...

    gus_morse.pl

    ...which is admittedly crude, but which I expect to polish after study of everyone's kind contributions.

    Thanks to all,

    Gan Starling
    Kalamazoo MI USA