home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / rec / music / synth / 18814 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  4.1 KB

  1. Xref: sparky rec.music.synth:18814 comp.music:5327
  2. Path: sparky!uunet!news.tek.com!gvgpsa!gvgspd!not-for-mail
  3. From: mrk@gvgspd.gvg.tek.com (Michael R. Kesti)
  4. Newsgroups: rec.music.synth,comp.music
  5. Subject: Numbers (Was: Problem with SysEx dumps...)
  6. Message-ID: <1ervjgINN9sq@gvgspd.gvg.tek.com>
  7. Date: 24 Nov 92 01:13:20 GMT
  8. References: <3178@bsu-cs.bsu.edu> <1992Nov23.133450.1@adcalc.fnal.gov>
  9. Distribution: usa
  10. Organization: Grass Valley Group, Grass Valley, CA
  11. Lines: 77
  12. NNTP-Posting-Host: gvgspd.gvg.tek.com
  13.  
  14. In article <1992Nov23.133450.1@adcalc.fnal.gov> kissel@adcalc.fnal.gov writes:
  15.  
  16. >In article <3178@bsu-cs.bsu.edu>,
  17.                            jaysen@bsu-cs.bsu.edu (Jason A. Brotherton) writes:
  18.  
  19. >>    F0 40 00 02 00 04 00 00 F7
  20. >>    |  |  |  |  |  |  |  |  |- End of transfer
  21. >>    |  |  |  |  |  |  |  |---- Sub Command #2 for Data Dump All, Internal
  22. >>    |  |  |  |  |  |  |------- Sub Command #1 for Data Dump All, Internal
  23. >>    |  |  |  |  |  |---------- K4 Id #
  24. >>    |  |  |  |  |------------- Synthesizer Group
  25. >>    |  |  |  |---------------- Function Group # for Data Dump All
  26. >>    |  |  |------------------- Channel #  (why is this not 1????)
  27. >>    |  |---------------------- K4 Id #
  28. >>    |------------------------- SysEx Message
  29. >> 
  30.  
  31. >                       As far as the channel #'s, the Sysx data is in
  32. >hexidecimal, so the MIDI channel #'s are 0 thru F.  - Wally
  33.  
  34. No, it has nothing to do with these numbers being expressed in hexadecimal.
  35. Jason could have just as accurately written the message above, without
  36. affecting the content, in the following way:
  37.  
  38.      240 64  0  2  0  4  0  0 247
  39.  
  40. Had he written it this way, he would have been using decimal numbers, rather
  41. than hexadecimal, but the magnitudes of the numbers, and therefore their
  42. meaning, would not have been changed.
  43.  
  44. The reason the value of the channel field in this message is 0, rather than
  45. the 1 that Jason expected is that the channel information is held in the
  46. low 4 bits of this byte, and those four bits can exist in 16 different
  47. combinations.  They may be:
  48.  
  49.             BINARY   DECIMAL   HEXADECIMAL
  50.             ------   -------   -----------
  51.                          0000  =    0    =      0
  52.                          0001  =    1    =      1
  53.                          0010  =    2    =      2
  54.                          0011  =    3    =      3
  55.                          0100  =    4    =      4
  56.                          0101  =    5    =      5
  57.                          0110  =    6    =      6
  58.                          0111  =    7    =      7
  59.                          1000  =    8    =      8
  60.                          1001  =    9    =      9
  61.                          1010  =   10    =      A
  62.                          1011  =   11    =      B
  63.                          1100  =   12    =      C
  64.                          1101  =   13    =      D
  65.                          1110  =   14    =      E
  66.                          1111  =   15    =      F
  67.  
  68. Because of this, we should say that the 16 MIDI channels available are 0
  69. through 15, but many people are uncomfortable with this, so the manufacturers
  70. choose instead to number them 1 through 16.  When dealing with the message
  71. data directly, we must remember this.
  72.  
  73. Similarly, the MIDI program change command's data field allows the use of the
  74. low 7 bits of a byte to specify which of 128 programs are to be selected.
  75. This time, though, some manufacturers allow the user to (correctly!) use 0
  76. through 127, while others use 1 through 128, causing even more confusion!
  77.  
  78. Here comes the part that often gets people upset.  The reason that people are
  79. uncomfortable with using 0 through 15 to number MIDI channels is that our
  80. primary school teachers taught us to count "1, 2, 3, 4, 5, 6, 7, 8, 9, 0",
  81. rather than "0, 1, 2, 3, 4, 5, 6, 7, 8, 9", and failed to teach us the
  82. difference between quantity and ordinal position.
  83.  
  84. Think about it!
  85.  
  86. -- 
  87. ============================================================================
  88. Michael Kesti  Grass Valley Group, Inc. | "And like, one and one don't make
  89.     mrk@gvgspd.GVG.TEK.COM              |  two, one and one make one."
  90.     !tektronix!gvgpsa!gvgspd!mrk        |         - The Who, Bargain
  91.