home *** CD-ROM | disk | FTP | other *** search
/ PC Musician 2000 / PC_Musician_2000.iso / PCMUSIC / MISC / MIDICSND / README.TXT < prev    next >
Encoding:
Text File  |  1996-01-29  |  1.6 KB  |  42 lines

  1. Midi to Csound and Csound to Midi File Conversion Utilities
  2.  
  3. Two standard unix-compatible routines for converting file formats:
  4.  
  5.         writemid --  converts a Csound score into a midi file.
  6.     readmidi -- converts a midi file into a csound score.
  7.  
  8.     The input Midi Files must be Midi File Format 0 or 1.
  9.     They will always be written in file format 0.
  10.     The CSound scores must have the following p-fields :
  11.         p1 = Midi channel number (1-16).
  12.         p2 = start time in beats (tempo = 120).
  13.         p3 = duration.
  14.         p4 = Midi amplitude (0 - 127).
  15.         p5 = Midi note number (0 - 127).
  16.  
  17.     Notes :
  18.                 1 ) Only i-cards are processed in the the CSound files.
  19.                     Hence, t-cards are ignored.
  20.                 2 ) Tempo changes are handled properly when converting
  21.                     from format 0 Midi files to C Sound, but tempo changes
  22.                     are ignored when converting format 1 midi files.
  23.  
  24.  
  25.     Usage examples :
  26.                 writemid  oboe.sco   oboe.mid
  27.                 readmidi  jazz.mid   jazz.sco
  28.  
  29.         writemidi    long.sco    long.mid    10000
  30.                         The 10000 tells the computer to allocate space for
  31.                         10000 note on/off events instead of the default 3500
  32.                         events. This might be necessary for long scores.
  33.  
  34.  
  35.     Versions :
  36.                 Versions of these routines have been written for both the
  37.                 IBM PC and the NEXT. They have only minor differences that
  38.                 involve differences in include files and binary file types
  39.                 in the fopen subroutines.
  40.  
  41.                 Written by Keith Lent, Electronic Music Studios, UT-Austin
  42.