home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 201.lha / SendMorse / README < prev    next >
Text File  |  1988-12-27  |  3KB  |  61 lines

  1.  
  2. SendMorse is a little program I kinda "whipped up" for 2 purposes:
  3.  
  4.     1. Learn more about the audio.device (translate: learn something,
  5.         *anything* about the audio.device)
  6.     2. Practice my very ailing Morse code.
  7.  
  8. Thus, here it is in its glorious entirety.  (Gag).  Note that it's
  9. very heavily based on Rob Peck's "audio.c" from Chapter 8 of his book.
  10. Very heavily.....
  11.  
  12. For those who think I have a weird Makefile -- not ALL of us can have
  13. hard disks.  This make works very quickly as it throws everything into
  14. ram:.  Note the odd location of c.lib.  I have c32.lib on my SYS1 disk,
  15. so I had to put c.lib on my work disk....
  16.  
  17.  
  18. To use it: say "SendMorse [-sendrate] <filelist>".  It will send the
  19. files in the file list at the given word rate.  Default is 5.
  20.  
  21. Joe Larson (that's still me -- joe@dayton)
  22. November 12, 1988
  23. Golden Valley, Mn.
  24.  
  25. -------------------Little Notes Follow Hereafter----------------------
  26. A few little notes concerning timings for those who want to fiddle...  
  27.  
  28. There are a few items that may be worth fiddling with.
  29.  
  30.     1. The wave form.  I used a short sine wave sample that took me
  31.         about 20 seconds on my calculator.  However, it clicks a little
  32.         at the start of each dit or dah.  I don't know why.  I hope
  33.         someone tells me.....
  34.  
  35.     2. The MORSE_PERIOD value.  This defines the period of the sample.
  36.         (See the discussion on the audio.device for a definition of
  37.         this.)  Higher values mean lower frequency.
  38.  
  39.     3. The calculations for ditlength, ditcycles and dahcycles.  I
  40.         decided that I didn't want longer dits and dahs at slower speeds
  41.         but would just add more spacing between letters and words.  Thus,
  42.         ditcycles is a constant and dahcycles is 3*ditcycles.  You may
  43.         want to fiddle with these, but I think it works out well.
  44.  
  45.         Ditlength, though, was originally how long a dit was supposed
  46.         to be.  And I was using a ditlength pause between dits and
  47.         dahs and 3*ditlength between letters.  I have a constant defined
  48.         somewhere that is the number of ditlengths between words (currently
  49.         6).  This item is in 20 millisecond increments, as that's what
  50.         the Delay() function *seems* to use.
  51.  
  52.         Because of all this, the sendrate appears to be maybe a little
  53.         higher than you ask for.  That is, the default of 5 WPM on a 20
  54.         character sample SHOULD take about 48 seconds but seems to be a
  55.         little closer to 35 or 40.  You can add a little fudge factor
  56.         if you like -- I'm not too concerned about it.....
  57.  
  58.     4. Channel allocation.  I only use one channel.  I should probably
  59.         have used Rob's "GetAnyStereoPair" rather than just grabbing
  60.         a single channel, but that's the way it goes.
  61.