home *** CD-ROM | disk | FTP | other *** search
/ PC Musician 2000 / PC_Musician_2000.iso / PCMUSIC / MISC / MUSICZIP / STUFFZIP.EXE / FILE_FMT.TXT < prev    next >
Encoding:
Text File  |  1996-03-27  |  14.9 KB  |  350 lines

  1.                              MUSIC v3.3 file formats
  2.                              ~~~~~~~~~~~~~~~~~~~~~~~
  3.                                 Updated: 2/12/96
  4.  
  5. This file contains:
  6.    1) Data file formats MUSIC v3.1 uses for:
  7.           MUSIC.DWR    *.MUS    MUSIC.CFG    *.PC    MUSIC.SL
  8.    2) List of Print Code "Keywords" and what they give you.
  9.  
  10. This file is only for those of you hackers who really want to understand what
  11. makes MUSIC tick; for those of you who want to write special MUSIC 3rd party
  12. utilities that can read/write MUSIC data files.  Most of you could/should
  13. care less about this stuff.
  14.  
  15. _______________________________________________________________________________
  16.  
  17.  
  18. Parameter lines are optional except where noted as (required). Where parameters
  19. are left out, MUSIC will set to defaults.
  20.  
  21. All characters stored in each of these data files may be in upper or 
  22. lower case (or mixed).  When MUSIC writes the files it uses upper case.
  23.  
  24. The parameter #MUSIC_VER=xxxx is used so MUSIC can know if a file it is
  25. reading was created by a newer version of MUSIC which may use parameter
  26. keywords not recognized by the older version (a notice would be given to the
  27. user saying that a newer version of MUSIC exists).
  28.  
  29. Parameter type and size limits (as stored in MUSIC) are denoted as:
  30.    @10  =  alphanumeric (char) of up to 10 characters long
  31.    #2   =  numeric (int) of up to 2 digits long
  32. Where the parameter doesn't look like the type & size defined for it, the
  33. parameter is stored as a simple representation of the value.  In such cases
  34. the parameter values can be of any length (up to 300 chars for entire line). 
  35. For example:
  36.  
  37. #1  |#SOUND=ON|OFF
  38. @1  |#MONITOR=AUTO|COLOR|MONO
  39.  
  40. SOUND is stored as an int (boolean) where ON=1 (true) and OFF=0 (false)
  41. MONITOR is stored as a single char: A|C|M
  42. This is how MUSIC internally "stores" the parameter information (like you care)
  43.  
  44. _______________________________________________________________________________
  45.  
  46. MUSIC.DWR     Song Drawer summary files.  Located in Song Drawer directories.
  47.               MUSIC will only write optional parameter lines if a value is 
  48.               specified, otherwise no line will be saved in the file.
  49. _______________________________________________________________________________
  50.  
  51. @25 |#DRAWER=Camp Songs       (required)
  52. @35 |#TITLE=Example Song      (required)
  53. @12 |#FILE=034EXAMP.MUS       (required)
  54. ->  |#STORED_KEYS=D-E STEP 2  alternate form: #PRINT_KEYS=D  (@3-@3 STEP #2)
  55. ->  |#PRINT_KEYS=C-G STEP 1   alternate form: #PRINT_KEYS=C  (@3-@3 STEP #2)
  56. ->  |#VOCAL_RANGE=A-Db        alternate form: #VOCAL_RANGE=A (@3-@3)
  57. @40 |#AUTHOR=The CAP
  58. @40 |#COPYRIGHT=1967 Tiny Tunes
  59. ->  |#LAST_USED=04/22/95      (stored as date type in C: char/char/int)
  60. @1  |#ATTR1=X                 (attributes can be 1 character)
  61. @1  |#ATTR2=Y
  62.     |   :
  63. @1  |#ATTR12=8
  64. @1  |#IN_SUBLIST=NO           (not included in MUSIC.DWR if "=YES", assumed)
  65.     |--                       (song seperator can be anything but "#...")
  66.     |#TITLE=Another Song
  67.     |#FILE=EXAMP034.MUS
  68.     |#KEY=Dbm
  69.     |#LAST_USED=04/28/95
  70.     |#ATTR2=3
  71.     |--
  72.     | :
  73.     | :
  74.     |--
  75.  
  76.  
  77. _______________________________________________________________________________
  78.  
  79. *.MUS     Individual song files.  Located in Song Drawer directories.
  80.           Notes: The song body starts (chord/lyric pairs) at first line
  81.                  which does not start with a "#".
  82.                  MUSIC will only write optional parameter lines if a value is
  83.                  specified, otherwise no line will be saved in the file.
  84. _______________________________________________________________________________
  85.  
  86. @35 |#TITLE=Example Song         (required)
  87. ->  |#STORED_KEYS=D-E STEP 2     alternate form: #STORED_KEYS=D (@3-@3 STEP #2)
  88. ->  |#PRINT_KEYS=C-G STEP 1      alternate form: #PRINT_KEYS=C  (@3-@3 STEP #2)
  89. ->  |#VOCAL_RANGE=A-Db           alternate form: #VOCAL_RANGE=A (@3-@3)
  90. @40 |#AUTHOR=The CAP
  91. @40 |#COPYRIGHT=1967 Tiny Tunes
  92. @1  |#ATTR1=X                    (only attributes storing a value are here)
  93. @1  |#ATTR2=Y
  94.     |   :
  95. @1  |#ATTR12=8
  96. @80 |## This is comment line 1.
  97. @80 |## All comments start with two pound signs and can be up to 80
  98. @80 |## characters long.  MUSIC will maintain leading spaces (between
  99. @80 |## the pound signs and the comment text).  There can be a max of
  100. @80 |## 6 comment lines.
  101. @80 |## This is the last comment line.
  102. @78 |            C         F      Am
  103. @78 |Oh I just wrote this work of art
  104. @78 |            G          Bb/F
  105. @78 |And if you know any producers
  106. @78 |          C    G       Am
  107. @78 |Who just fell off the cart
  108. @78 |  C           F       Dm        G     C
  109. @78 |Send them my way and I'll give you a part!
  110.  
  111.  
  112.  
  113. _______________________________________________________________________________
  114.  
  115. MUSIC.CFG     MUSIC Config file.  Located in MUSIC's home directory.
  116.               Defaults shown first; other options seperated by "|".
  117.               MUSIC will create MUSIC.CFG with all parameters shown,
  118.               even if their values are blank.
  119. _______________________________________________________________________________
  120.  
  121. @10 |#MUSIC_VER=3.1
  122.     |
  123.     |## General Config Parameters     (lines starting with "##" are comments)
  124.     |## -------------------------
  125. #1  |#SOUND=ON|OFF
  126. @1  |#MONITOR=AUTO|COLOR|MONO
  127. #1  |#SCREEN_EFFECTS=ON|OFF
  128. @40 |#EDITOR=INTERNAL|my_editor -a $  ("$" replaced by .MUS filename)
  129. #1  |#TRAILING_THE=OFF|ON             (in songs window: "The Song Name"
  130.                                                      or "Song Name, The")
  131. @40 |#CCLI=my_ccli_number
  132. @13 |#DEFAULT_PC_FILE=normal.PC       (printer config file to load at startup)
  133. #1  |#NOTICE_DETAIL=ON|OFF
  134. #1  |#REAL_CHORDS=OFF|ON              (show correct or favorite chord names)
  135. #1  |#LIST_PEEK=OFF|ON                (show Peek box in Lists menu)
  136. @40 |#REPORT_OUTPUT=PRINTER           (Print Reports output filename or "PRINTER")
  137.     |
  138.     |## User-Defined Attribute Info
  139.     |## ---------------------------
  140. @25 |#ATTR=1,Tempo                    (Xth attribute (1-12), Attribute name)
  141. ->  |#ATTR=2,Favorite Rating          (#2 (not stored), @25)
  142.     |#ATTR=3,Theme
  143.     | :
  144.     |#ATTR=12,
  145.     |
  146.     |## Songs Window Display Setup
  147.     |## --------------------------
  148. #2  |#SW_SHOW=1,KEY                    (Xth item to show (1-10), item name:
  149.     |#SW_SHOW=2,KEY MOD                 Item names: TITLE, FILENAME, KEY, 
  150.     |#SW_SHOW=3,ATTR 2                  KEY MOD, MOD STEP, VOCAL MIN, VOCAL MAX,
  151.     |#SW_SHOW=4,ATTR 1                  ATTR 1..ATTR 12, LAST USED)
  152.     |#SW_SHOW=5,TITLE
  153.     |  :
  154.     |#SW_SHOW=10,
  155.     |
  156.     |## Printer Code Definitions
  157.     |## ------------------------
  158. @300|#P_RESET={this is a laser printer reset}[ESC]E
  159. @300|#P_NORMAL=
  160. @300|#P_BOLD_ON=
  161. @300|#P_BOLD_OFF=
  162. @300|#P_UNDERLINE_ON=
  163. @300|#P_UNDERLINE_OFF=
  164. @300|#P_ITALICS_ON=
  165. @300|#P_ITALICS_OFF=
  166. @300|#P_CONDENSED_ON=
  167. @300|#P_CONDENSED_OFF=
  168. @300|#P_STYLE=1,[ESC]&lp0T             (10 user-defined stlyes can reference
  169. @300|#P_STYLE=2,[Esc].89s            several defined "keywords".  See below)
  170. @300|#P_STYLE=3,CCLI#: [Bold][CCLI][Bold Off]{shows CCLI # in bold}
  171.     | :
  172. @300|#P_STYLE=10,[Bold Off][Underline Off][Italics Off][Condensed Off]
  173.  
  174.  
  175. _______________________________________________________________________________
  176.  
  177. *.PC     Printer Config files.  Located in MUSIC's home directory.
  178.          MUSIC will create *.PC files with all parameters shown,
  179.          even if their values are blank.
  180. _______________________________________________________________________________
  181.  
  182.     |## This is a Printer Configuration file used by MUSIC.
  183.     |## This file is used to customize the way MUSIC prints songs.
  184.     |
  185. @10 |#MUSIC_VER=3.1
  186.     |
  187. @50 |#DESCRIPTION=Standard Worship List Format for HP PCL
  188.     |
  189. @40 |#OUTPUT=PRINTER|filename
  190. #2  |#COPIES=1
  191. @1  |#PRINT_CHORDS=Y|N
  192. @1  |#PRINT_LYRICS=Y|N|U          (U=Upper case)
  193. @1  |#PAGE_FEED=F|Y|N             (Fit max songs to page, Yes (every song), No)
  194. #2  |#INDENT=99                   (characters to indent; 99=center)
  195. @1  |#MODULATIONS=A|M|N           (Auto, Manual, None)
  196. @1  |#DBL_SPACE_SETS=A|Y|N        (extra LF between chord/lyric sets: "A"uto)
  197. @1  |#PRINT_ATTRIBUTES=0|1|2|3    (0=None, 1=Keys by title, 2=All attributes
  198.                                    except comments, 3=All attributes)
  199. @1  |#HYPHEN_UNDERLINE=Y|N        (underline title with "----"?)
  200. @1  |#PRINT_TOC=Y|N|O             (priht Table Of Contents?  Yes, No, Only)
  201. #2  |#LINES_BETWEEN_SONGS=2       (for PAGE_FEED=F or N)
  202. @1  |#FORMATTING=0|1|2            (0=None, 1=Bold chords, 3=Before/After codes)
  203. #3  |#PAGE_COLUMNS=80
  204. #3  |#PAGE_LINES=60
  205. @1  |#UPDATE_LAST_USED=Y|N
  206.     |
  207. @300|#PAGE_HEADER=Page Number: [Page Num]
  208. @300|#BEFORE_ALL=[RESET]
  209. @300|#AFTER_ALL=[FORMFEED]
  210. @300|#BEFORE_TOC=[STYLE 2]             (BEFORE/AFTER codes...)
  211. @300|#AFTER_TOC=[NORMAL]
  212. @300|#BEFORE_SONG=
  213. @300|#AFTER_SONG=[COMMENTS]
  214. @300|#BEFORE_LINE=
  215. @300|#AFTER_LINE=
  216. @300|#BEFORE_TITLE=[STYLE 1]
  217. @300|#AFTER_TITLE=[NORMAL] Key: [Key] [Key Mod]
  218. @300|#BEFORE_CHORDS=[BOLD]
  219. @300|#AFTER_CHORDS=[BOLD OFF]
  220. @300|#BEFORE_LYRICS=[ITALICS]
  221. @300|#AFTER_LYRICS=[ITALICS OFF]
  222.  
  223.  
  224. _______________________________________________________________________________
  225.  
  226. MUSIC.SL   Selection Lists data file.  There is one MUSIC.SL file in each
  227.            Song Drawer directory.
  228. _______________________________________________________________________________
  229.  
  230.                               ______________________________________________
  231.             List heading ->  |01/02/94 - List comment/description [A]
  232.     List songs start with a  |<tab>   {098I_WIL.MUS} I Will Praise Him
  233.     Tab character then put   |        {117YOU_A.MUS} You Are the One
  234.     the song filename in {}  |        {088LIGHT.MUS} Light of the World
  235.     followed by a space and  |        {187POWER.MUS} Powerful Leader
  236.     the song's title.        |        {288VICTO.MUS} Victory Chant
  237. End of list at empty line -> |
  238.                              |02/03/94 - User's comment/description [C]
  239.                              |    :
  240.                              |    :
  241.                              |______________________________________________
  242.  
  243. List headings are appended with " [?]" where ? = "Activity Catagory" A-E:
  244.                  A - Sing Use         D - Arrangement
  245.                  B - Projection       E - Recording
  246.                  C - Print
  247. Where no [?] is saved, the list has no catagory assigned to it (saved as
  248. catagory N)one but don't put " [N]" on the heading; just leave it off).
  249.  
  250. At the very end of the MUSIC.SL file (after the last song of the last list)
  251. there is no extra blank line to indicate the end of the list; it is assumed.
  252. There can be any number of blank lines between the list groupings, but not
  253. between the actual songs lines in a list.  Once a list is deleted by MUSIC
  254. all the extra empty lines will be removed; the file is cleaned up.
  255.  
  256.  
  257. _______________________________________________________________________________
  258. _______________________________________________________________________________
  259.  
  260. Defined KEYWORDS which can be referenced by
  261.    (1) Song Window Display parameters (SW_SHOW=)
  262.    (2) Pre-Defined character control parameters (like P_BOLD=)
  263.    (3) User-Defined "Styles" (P_STYLE=)
  264.    (4) Printer Config file (*.PC) BEFORE/AFTER parameters (like BEFORE_TOC=)
  265.  
  266. Keywords must be enclosed in square brackets "[]".  To actually indicate a
  267. left square bracket, use two in a row "[[" and it will show only one.
  268. This works the same way for comments which are enclosed in curly brackets
  269. "{}".  Comments can be anywhere in print code definitions.
  270.  
  271.         KEYWORDS     (1) (2) (3) (4)
  272.      --------------- --- --- --- ---
  273. --constants--
  274.      [ESC]                X   X   X    (ASCII 27)
  275.      [LF]                 X   X   X    (ASCII 13,10)
  276.      [TAB]                X   X   X    (ASCII 9)
  277.      [FORMFEED]           X   X   X    (ASCII 12)
  278.      [123]                X   X   X    (ASCII value in decimal)
  279.      [0x6D]               X   X   X    (ASCII value in hex)
  280.      [[                   X   X   X    (gives only one "[")
  281.      {{                   X   X   X    (gives only one "{")
  282.  
  283. --styles--
  284.      [RESET]              X   X   X
  285.      [NORMAL]             X   X   X
  286.      [BOLD]               X   X   X
  287.      [BOLD OFF]           X   X   X
  288.      [AUTO BOLD]          X   X   X
  289.      [UNDERLINE]          X   X   X
  290.      [UNDERLINE OFF]      X   X   X
  291.      [ITALICS]            X   X   X
  292.      [ITALICS OFF]        X   X   X
  293.      [CONDENSED]          X   X   X
  294.      [CONDENSED OFF]      X   X   X
  295.      [STYLE 1]            X   X   X
  296.        :
  297.      [STYLE 10]           X   X   X
  298.  
  299. --fields--
  300.      [TITLE]          X   X   X   X
  301.      [FILENAME]       X   X   X   X
  302.      [KEY FROM]       X   X   X   X    Key song is stored in (from)
  303.      [KEY TO]         X   X   X   X
  304.      [KEY MOD STEP]   X   X   X   X
  305.      [PKEY FROM]      X   X   X   X    Key song will be printed in (from)
  306.      [PKEY TO]        X   X   X   X
  307.      [PKEY MOD STEP]  X   X   X   X
  308.      [VOCAL MIN]      X   X   X   X
  309.      [VOCAL MAX]      X   X   X   X
  310.      [AUTHOR]         X   X   X   X
  311.      [COPYRIGHT]      X   X   X   X
  312.      [ATTR 1 NAME]        X   X   X    User defined attr name ("Tempo")
  313.      [ATTR 1 VALUE]   X   X   X   X    This song's value for it ("3")
  314.         :
  315.      [ATTR 12 NAME]       X   X   X
  316.      [ATTR 12 VALUE]  X   X   X   X
  317.      [LAST USED]      X   X   X   X    12/12/1995
  318.      [COMMENT 1]          X   X   X    Just comment line 1
  319.      [COMMENT 2]          X   X   X
  320.      [COMMENT 3]          X   X   X
  321.      [COMMENT 4]          X   X   X
  322.      [COMMENT 5]          X   X   X
  323.      [COMMENT 6]          X   X   X
  324.      [COMMENTS]           X   X   X    All used comment lines
  325.  
  326. --general config variables--
  327.      [CCLI]               X   X   X    Prints CCLI field (in Configure)
  328.      [LIST NAME]          X   X   X    Name you give the selection list
  329.  
  330. --system variables--
  331.      [SONG NUM]           X   X   X    Nth selected song
  332.      [SONGS SELECTED]     X   X   X    Total songs selected
  333.      [PAGE NUM]           X   X   X
  334.      [COPY]               X   X   X    Currently printing copy number N
  335.      [COPIES]             X   X   X    Total number of copies printing
  336.      [LINE NUM]           X   X   X    # of lines since last formfeed
  337.      [PLACE NUM]          X   X   X    song is Nth in song drawer (currently)
  338.      [DRAWER SIZE]        X   X   X    # of songs in song drawer
  339.      [DATE]               X   X   X    12/12/95
  340.      [DATE 2]             X   X   X    Mon Dec 12 1995
  341.      [TIME]               X   X   X    23:59:59  (military)
  342.      [TIME 2]             X   X   X    11:59:59 pm
  343.      [TIME 3]             X   X   X    23:59     (line TIME but no seconds)
  344.      [DATE TIME]          X   X   X    Mon Dec 12 23:59:59 1995
  345.  
  346. --comments--
  347.      {any comments}       X   X   X    Use comments to explain codes
  348.      --------------- --- --- --- ---
  349.         KEYWORDS     (1) (2) (3) (4)
  350.