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