home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff239.lzh / JGoodies / JustBeeps / README < prev    next >
Text File  |  1989-08-21  |  3KB  |  73 lines

  1. JustBeeps    by Phil Burk
  2.  
  3. Written using JForth Professional V2.0
  4.  
  5. Public Domain.  Freely Redistributable.
  6.  
  7. JustBeeps demonstrates the use of the Audio and Timer devices.
  8. It plays a series of notes, that are related to each other
  9. by just intoned intervals.
  10.  
  11. To hear the program, from the CLI, enter:
  12.  
  13.     JustBeeps
  14.  
  15. To compile and run the program, enter JForth as you normally would,
  16. then enter:
  17.  
  18.     cd :JustBeeps
  19.         include JustBeeps.f
  20.         JustBeeps
  21.  
  22. What is Just Intonation versus Equal Temperament?
  23.  
  24. Most western instruments are tuned in a 12 tone equal temperament.
  25. Every note in this scale is higher than the previous one by
  26. the 12th root of two.  If you go up 12 notes, you have gone up
  27. by 2**(12/12), or 2, which is an octave.
  28. Since all intervals between adjacent notes are
  29. equal, you can play equally well (or equally poorly) in any key.
  30. Bach, Lanfranco, and others developeded this tuning to make it
  31. easy to change keys during a piece, and also so you can play
  32. pieces in different keys without having to retune the instrument.
  33. This tuning was designed more for convenience then anything else
  34. and is basically a kludge.
  35.  
  36. Non-western instrument, eg. Indonesian gamelans, Indian sitars,
  37. etc. are typically tuned very differently.  They are generally
  38. tuned based on a just intoned system, with some deviations to
  39. get a more lively sound.  A just intoned system is one where
  40. the note intervals are based on ratios of whole numbers.
  41. A fifth might be exactly 3/2 higher in frequency than
  42. the tonic.  A third might be 5/4 higher in frequency.
  43. This can often give a much sweeter sound then equal temper.
  44. It can also sound "out of tune" to western ears.
  45.  
  46. In this simple program, there is no tonic.  Each note is some
  47. whole number ratio higher or lower then the previous note.
  48. Each interval will sound fairly "nice" but the tuning
  49. will sound like it is wandering all over the place.
  50. The program will select two whole number to make a ratio
  51. and calculate a new period for the note.  If the period
  52. is out of range it keeps trying till it gets one in range.
  53. It prints each pair of numbers it trys, then prints the final
  54. period.
  55.  
  56. I hope this simple example program will encourage you to
  57. experiment with the Amiga Audio capabilities.  If you are
  58. interested in experimental music you may want to get HMSL,
  59. the Hieracrchical Music Specification Language.
  60. This is an experimental object oriented composition language
  61. available for purchase from Frog Peak Music.  For information
  62. write:
  63.  
  64.     Frog Peak Music
  65.     P.O. Box 1051
  66.     San Rafael, CA
  67.     94915
  68.  
  69. HMSL has an extensive toolbox for experimenting with different
  70. tuning systems, MIDI, algorithmic composition, and interactive
  71. performance.
  72.  
  73.