home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / music / 5864 < prev    next >
Encoding:
Text File  |  1993-01-03  |  2.5 KB  |  69 lines

  1. Newsgroups: comp.music
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!newsserver.technet.sg!nuscc!matcsp
  3. From: matcsp@nuscc.nus.sg (Chan Shih-Ping)
  4. Subject: Anyone interested in front end to T2MF.EXE? (long)
  5. Message-ID: <1993Jan3.110809.21683@nuscc.nus.sg>
  6. Organization: National University of Singapore
  7. X-Newsreader: Tin 1.1 PL4
  8. Date: Sun, 3 Jan 1993 11:08:09 GMT
  9. Lines: 58
  10.  
  11. Is anyone interested in a front end to T2MF.EXE?
  12. T2MF is a wonderful program to convert ascii files to .MID
  13. (MIDI files) but requires an in depth knowledge of MIDI.
  14. For example to play a scale of C major you would write:
  15.  
  16. MFile <stuff deleted>
  17. MTrk
  18. 0 On ch=1 n=60 v=80
  19. 238 Off ch=1 n=60 v=80
  20. 240 On ch=1 n=62 v=80
  21. 478 Off ch=1 n=62 v=80
  22.     .
  23.     .
  24.     .
  25. TrkEnd
  26.  
  27. You get the idea: you have to be really au fait with all 
  28. this note on/off stuff. What I have in rudimentary form is
  29. a front end to T2MF.EXE: it creates files that T2MF.EXE can
  30. read and has a more "natural"  syntax. To create the preceding
  31. C major file you would (modulo a little header) just write:
  32.  
  33. .track
  34. c d e f g a b c6
  35. .endtrack
  36.  
  37. Sharps/flats/naturals are for example c#, c&, c%, you can specify the
  38. octave after the note, you can set a default note duration, and you
  39. can qualify the note value, so a long example is this: a&6mh
  40.  
  41. a <- the note & <- flat 6 <- octave mh <- 3 crotchets (minim and a half)
  42.  
  43. My front end (MIDICC - MIDI compiler, get it? MIDICC is the compiler
  44. while T2MF is the assembler.) also has an "escape mode" where really esoteric
  45. T2MF.EXE constructs like binary data/hex dumps etc can be passed through
  46. verbatim e.g. to write a program change message in T2MF syntax
  47. you can do something like
  48.  
  49. .verbatim <----- starts "verbatim" mode
  50. 0 Par ch=1 con=7 v=127   <-------this is T2MF syntax for controller change
  51. .endverbatim
  52.  
  53. All the lines between .verbatim and .endverbatim get passed through unchanged.
  54.  
  55. If anyone is interested in MIDICC send me an e-mail. I don't want to post
  56. it yet as its really in alpha and how many people really want to write
  57. MIDI at the computer keyboard anyway. 
  58. You will get source and  OS/2 2.0/DOS 386 executables. To hack on the
  59. source you will of course need a compiler AND lex. In addition you
  60. will need a working T2MF.EXE but I can include that if you don't have
  61. one.
  62.  
  63. To test out MIDICC, I "asciied" the
  64. entire first movement of Mozarts K448 second piano part,  
  65. (after becoming proficient it takes about five minutes a page), used
  66. MIDICC/T2MF and now the computer happily accompanies me as we play this
  67. ineffable music together...
  68.  
  69.