home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / C!T / C!T12_92 / MODPLAY / MODEDIT / MODEDIT.DOC < prev    next >
Text File  |  1991-07-05  |  70KB  |  1,990 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                           MODEDIT VERSION 1.00 DOCUMENTATION
  9.                                COPYRIGHT 1991 NORMAN LIN
  10.  
  11.                                    =================
  12.                                    TABLE OF CONTENTS
  13.                                    =================
  14.  
  15.              1.  Introduction
  16.                  1.1  What is ModEdit?
  17.                  1.2  What is needed to run ModEdit?
  18.  
  19.              2.  Getting started
  20.                  2.1  Setup
  21.                  2.2  ModEdit's menu system and display
  22.                  2.3  Configuration
  23.  
  24.              3.  Nomenclature/concepts
  25.                  3.1  Note unit
  26.                  3.1  Pattern
  27.                  3.3  Sequence
  28.                  3.4  Sample
  29.                  3.5  Integrating note units, patterns, sequence, and
  30.                       samples
  31.  
  32.              4.  Using ModEdit
  33.                  4.1  Entering music
  34.                       4.1.1  Creating/editing patterns
  35.                       4.1.2  Sequencing patterns
  36.                       4.1.3  Other pattern options
  37.                  4.2  Orchestration:  Using Samples
  38.                       4.2.1  The "Sample Directory"
  39.                       4.2.2  Loading sample files from disk
  40.                       4.2.3  Playing samples
  41.                       4.2.4  Saving sample files to disk
  42.                       4.2.5  Releasing samples
  43.                       4.2.6  Attributes of samples
  44.                       4.2.7  Default sample settings
  45.                  4.3  Hearing your music
  46.                       4.3.1  ModRes:   Inline playing
  47.                       4.3.2  ModPlay:  External playing
  48.                  4.4  Saving and loading ModFiles
  49.  
  50.              5.  Reference
  51.                  5.1  Exhaustive menu options
  52.                  5.2  Pattern editor quick reference key summary
  53.                  5.3  Effect list quick reference chart
  54.                  5.4  ModPlay
  55.                  5.5  Coming attractions
  56.  
  57.              6.  License/Warranty/Disclaimer
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.                                        Page 2
  69.  
  70.  
  71.  
  72.  
  73.  
  74.                                    ================
  75.                                    1.  INTRODUCTION
  76.                                    ================
  77.  
  78.              1.1  WHAT IS MODEDIT?
  79.              ---------------------
  80.  
  81.              ModEdit  is  a  music  editor/sequencer for the IBM PC family
  82.              that allows you to write music with  4  tracks  of  digitized
  83.              instrument  sounds.   The  final product is written to a file
  84.              called a "ModFile", which can then be played back by Mark  J.
  85.              Cox's "ModPlay" program.
  86.  
  87.              1.2  WHAT IS NEEDED TO RUN MODEDIT?
  88.              -----------------------------------
  89.  
  90.              To run ModEdit, you need:
  91.  
  92.              -  An IBM or compatible, 640K recommended.
  93.              -  The executable editor program MODEDIT.EXE.
  94.  
  95.              To hear  the  music,  you  also  need  one  or  both  of  the
  96.              following:
  97.  
  98.              -  The resident module player MODRES.COM  by  Mark  J.   Cox,
  99.                 which  allows  you to hear your music as you write it from
  100.                 within ModEdit.
  101.  
  102.              -  The external module player ModPlay  (MP.COM)  by  Mark  J.
  103.                 Cox,  which allows you to play Modules outside the ModEdit
  104.                 environment.
  105.  
  106.              NOTE:  To  run  ModPlay  or ModRes, you must have a 12 MHz or
  107.              faster machine. A new version  of  ModRes  which  works  with
  108.              10MHz machines should soon be  available.   See  "MODRES.DOC"
  109.              for more information.
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.                                        Page 3
  135.  
  136.  
  137.  
  138.  
  139.  
  140.                                   ===================
  141.                                   2.  GETTING STARTED
  142.                                   ===================
  143.  
  144.              2.1  SETUP
  145.              ----------
  146.  
  147.              Your ModEdit archive file should contain the following files:
  148.  
  149.              -  MODED.BAT  :  Batch file that runs ModEdit
  150.              -  MODEDIT.DOC:  This file
  151.              -  MODEDIT.EXE:  The executable ModEdit module editor
  152.              -  MODRES.COM :  Mark J. Cox's resident module player, for
  153.                               use in conjunction with ModEdit
  154.              -  MODRES.DOC :  Documentation/License for ModRes
  155.              -  BREATH.MOD :  A sample ModFile for you to experiment with
  156.              -  *.SAM      :  Various digitized sample files for
  157.                               incorporation into your own music
  158.  
  159.              To  run  ModEdit,  first  unpack the archive file, preferably
  160.              into its own subdirectory if you have a hard drive.
  161.  
  162.              If you will want to  use  the  inline  playing  functions  of
  163.              ModEdit  (usually  the  case) type "MODRES" and press return.
  164.              This loads the resident module player into memory.  If you do
  165.              not run ModRes before ModEdit, you will not be able  to  hear
  166.              your music from within ModEdit, though you will still be able
  167.              to load, edit, and save ModFiles for external playing.
  168.  
  169.              After  running ModRes (if you wish to), run ModEdit by typing
  170.              "MODEDIT" and pressing return.   You  will  then  be  running
  171.              Modedit.   You  may  wish  to  set  some defaults to your own
  172.              preferences (e.g. screen colors, default directories,  etc.);
  173.              see "Configuration" below.
  174.  
  175.              After  you  exit  ModEdit,  ModRes  remains in memory (it's a
  176.              TSR).  Keeping ModRes in memory does no harm, but  does  take
  177.              up  a  minimal  amount  of space.  To free this memory space,
  178.              type "MODRES -d".
  179.  
  180.              Supplied  in  the  ModEdit  archive  file  is  a  batch  file
  181.              "MODED.BAT"   which  automatically  installs  and  deinstalls
  182.              ModRes.  It simply contains the commands:
  183.  
  184.                 modres
  185.                 modedit
  186.                 modres -d
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.                                        Page 4
  201.  
  202.  
  203.  
  204.  
  205.  
  206.              2.2  MODEDIT'S MENU SYSTEM AND DISPLAY
  207.              --------------------------------------
  208.  
  209.              Once  you've started up ModEdit, you need to know how to move
  210.              around through the various  available  options.   ModEdit  is
  211.              menu-driven.   To  choose  an  option  from  a  menu, you may
  212.              either:
  213.  
  214.              1) Use the cursor keys to move the menu bar  to  the  desired
  215.                 item, then press enter, or
  216.  
  217.              2) Press  the  capitalized letter on the desired item's menu
  218.                 line.
  219.  
  220.              To escape from any menu or option, press the ESC key.
  221.  
  222.              Certain menu options (e.g. loading, saving, etc.) require you
  223.              to input text.  When ModEdit requires input from you, a small
  224.              window will be created in which you  may  type  the  required
  225.              input.   If  you  make  a  mistake,  use the backspace key to
  226.              correct it.  Press return when you are finished,  or  ESC  to
  227.              abort the input.
  228.  
  229.              When  entering  filenames  for  load  options, you may either
  230.              specify the filename to load, or you may specify a  pathname.
  231.              If  you  choose to specify a pathname, you must end it with a
  232.              backslash (\).  After specifying a pathname, you are given  a
  233.              directory  of  files  in  that path and a large reverse video
  234.              bar. Move the bar with the arrow keys; press the space bar or
  235.              enter to choose a file.
  236.  
  237.              A  status  line at the very bottom of the screen always gives
  238.              you the current filename and various  information  about  the
  239.              song, as well as memory available.
  240.  
  241.              2.3  CONFIGURATION
  242.              ------------------
  243.  
  244.              Now  that  you  know  how  to move around in ModEdit, you can
  245.              configure ModEdit to your particular system and  preferences.
  246.              Select the "Configuration" option from the Main Menu.
  247.  
  248.              You  will  be presented with the Configuration Submenu.  From
  249.              here  you may set various  options  about  ModEdit,  such  as
  250.              colors,  directories,  etc.  The only ones you really need to
  251.              set right now are the following:
  252.  
  253.              -  ModFile directory: this is where  ModEdit  will  look  for
  254.                 your  Modfiles (i.e. songfiles).  This option is under the
  255.                 "Directories" option of the Configuration Submenu.
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.                                        Page 5
  267.  
  268.  
  269.  
  270.  
  271.  
  272.              -  Sample directory: this is where ModEdit will look for your
  273.                 sample files.  This option is also under the "Directories"
  274.                 option of the Configuration submenu.
  275.  
  276.              And,  if  you've  loaded ModRes into memory, you also need to
  277.              set:
  278.  
  279.              -  Output device: this is the device  to  which  ModRes  will
  280.                 play  music/samples.   It  defaults to the PC speaker, but
  281.                 can be a D/A converter on an LPT  port  (see  the  ModPlay
  282.                 documentation  for  information  on  how  to  build  a D/A
  283.                 converter).
  284.  
  285.              Feel  free to set any other configuration options you wish to
  286.              customize (such as screen colors, error  beep,  etc.).   When
  287.              you're  done, select "Save Configuration" to save the current
  288.              settings to a configuration file.  Next  time  you  start  up
  289.              ModEdit, the configuration file will be read and the defaults
  290.              set according to your specifications.
  291.  
  292.              The configuration  file  is  saved  to  the  current  working
  293.              directory; this will initially be the directory that you were
  294.              in  when you started ModEdit.  If for some reason you wish to
  295.              save the configuration file elsewhere, do so by changing  the
  296.              current   working   directory.    Then,  when  you  save  the
  297.              configuration, it will be saved in the  new  current  working
  298.              directory.
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.                                        Page 6
  333.  
  334.  
  335.  
  336.  
  337.  
  338.                                =========================
  339.                                3.  NOMENCLATURE/CONCEPTS
  340.                                =========================
  341.  
  342.              In  order to use ModEdit, it is necessary first to understand
  343.              some general terminology and concepts  dealing  with  ModFile
  344.              construction.
  345.  
  346.              3.1  NOTE UNIT
  347.              --------------
  348.  
  349.              The  fundamental  building block of patterns.  It consists of
  350.              three parts:
  351.  
  352.              1)  A musical note and octave (e.g. C#3 or A 2)
  353.  
  354.              2)  A "sample" or "instrument" number  that  determines  what
  355.                  instrument  sound  will  be  associated  with  the  given
  356.                  musical note
  357.  
  358.              3)  An effect number and argument,  which  jointly  determine
  359.                  "how"  the  note  is  to  be  played  (i.e.   loud, soft,
  360.                  arpeggiated, etc.)
  361.  
  362.              3.2  PATTERN
  363.              ------------
  364.  
  365.              A  collection  of  64  contiguous  note  units.   It  is  the
  366.              fundamental building block of songs created with ModEdit.  By
  367.              arranging  note  units within a pattern/several patterns, you
  368.              can create musical motives.  Patterns are  numbered  starting
  369.              with  ZERO  (contrast with samples below) and may go up to 63
  370.              (i.e. 64 patterns max).
  371.  
  372.              3.3  SEQUENCE
  373.              -------------
  374.  
  375.              An  arrangement  of  patterns.   By arranging patterns into a
  376.              sequence, you can group musical motives  into  a  song.   The
  377.              sequence may be up to 128 patterns long.  A given pattern can
  378.              appear  in  the  sequence  more than once, if desired -- this
  379.              means that for repeated musical passages, you need not create
  380.              another identical pattern; you simply place the same  pattern
  381.              number in the sequence.
  382.  
  383.  
  384.              3.4  SAMPLE
  385.              -----------
  386.  
  387.              Also interchangeably called "instrument." It is a  collection
  388.              of  digitized data which mimics a particular instrument (e.g.
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.                                        Page 7
  399.  
  400.  
  401.  
  402.  
  403.  
  404.              flute, piano, guitar, etc.). Samples make  your  music  sound
  405.              "real"  as  opposed  to  "computerish"  (simple  square  wave
  406.              beeps).  Up to 31 distinct samples may be used in a  Modfile,
  407.              affording a wide range of orchestrational possibilities.  The
  408.              samples   are   numbered  1-31  (contrast  with  the  pattern
  409.              numbering scheme above).
  410.  
  411.              3.5  INTEGRATING NOTE UNITS, PATTERNS, SEQUENCE, AND SAMPLES
  412.              ------------------------------------------------------------
  413.  
  414.              A  complete  song,  therefore,  consists  of  a   number   of
  415.              PATTERNS,  each  of  which  contains  64  NOTE  UNITS.  These
  416.              patterns are SEQUENCED into a particular order, which defines
  417.              the  song  the  listener  will  hear.   The  SAMPLE  that  is
  418.              associated  with  each  note  determines  the timbral quality
  419.              (sound) that the note makes as it is played.
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.                                        Page 8
  465.  
  466.  
  467.  
  468.  
  469.  
  470.                                    =================
  471.                                    4.  USING MODEDIT
  472.                                    =================
  473.  
  474.              4.1  ENTERING MUSIC
  475.              -------------------
  476.  
  477.              4.1.1  Creating and Editing Patterns
  478.              ------------------------------------
  479.  
  480.              The main building block of ModFiles is the pattern.   Musical
  481.              notes  in  ModFiles are entered into patterns.  From the main
  482.              menu, choose the "Pattern" option, which will take you to the
  483.              Pattern Submenu.
  484.  
  485.              Initially, no patterns will be  in  memory.   Therefore,  you
  486.              must  create  a NEW pattern, so choose the "New Pattern Edit"
  487.              option. To edit an old pattern, you would simply have  chosen
  488.              "Old  Pattern Edit" and entered the pattern number you wished
  489.              to edit.
  490.  
  491.              You are now in the ModEdit pattern editor.  The  screen  will
  492.              look something like this:
  493.  
  494.  
  495.      Track 1     Track 2     Track 3     Track 4
  496. --!-----------!-----------!-----------!-----------+ Abbreviated Sample List
  497. 00!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00|
  498. 01!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 01 <<NONE>>|17 <<NONE>>
  499. 02!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 02 <<NONE>>|18 <<NONE>>
  500.  
  501.  
  502. 15!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 15 <<NONE>>|31 <<NONE>>
  503. --!-----------!-----------!-----------!-----------+ 16 <<NONE>>
  504. ^   ^  ^  ^ ^
  505. |   |  |  | |                           To the left are descriptions of each
  506. |   |  |  | Effect field: argument      field for each track.  Each track has a
  507. |   |  |  |                             note field, a sample field, and an
  508. |   |  |  Effect field: command         effect field, as shown.  At the very
  509. |   |  |                                left is the note position within the
  510. |   |  Sample field: sample number      pattern.  The edit window scrolls, so
  511. |   |                                   you may go up to note position 63
  512. |   Note field: note and octave         (since there are 64 note units within
  513. |                                       each pattern).
  514. Note position within the pattern
  515.  
  516.  
  517.              Below  the  pattern  edit  window  appear 2 lines (which have
  518.              been omitted in the above diagram for  clarity).   The  first
  519.              tells  you  which pattern number you are editing.  The second
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.                                        Page 9
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.              tells you the "default sample  number,"  which  is  explained
  537.              under "Sample field" below.
  538.  
  539.              The  "Abbreviated  Sample List" is a shortened version of the
  540.              full list of samples.  It's just for reference, so  that  you
  541.              can  tell  at a glance which sample file is loaded into which
  542.              sample slot.  See "Orchestration: using  samples"  below  for
  543.              more information on samples.
  544.  
  545.              Moving around the pattern editor
  546.              --------------------------------
  547.              Each  pattern consists of 64 note units for each of 4 tracks.
  548.              The 64 note units are numbered 0 - 63.  The  edit  window  is
  549.              only  16  lines  long, so to see all 64 note units use the up
  550.              and down arrow keys to scroll.
  551.  
  552.              Movement around the screen is quite simple.   Use  the  arrow
  553.              keys,  home,  end,  page up, and page down to move the cursor
  554.              to any field of any track at any note unit position.  INS and
  555.              DEL will insert a note unit or delete a note  unit  from  the
  556.              track where the cursor is currently located.
  557.  
  558.              To  reset  any field (note, sample, or effect) to an empty or
  559.              zero value, simply press the SPACE bar when the cursor is  on
  560.              that  field.   Empty  fields might at first seem useless; why
  561.              would one want an empty field?  The answer is that empty note
  562.              unit fields allow  entering  notes  of  differing  durational
  563.              values. See "Note field" below.
  564.  
  565.              Editing the note field
  566.              ----------------------
  567.              The  note  field  consists  of  a musical note and an octave.
  568.              The musical note can be any of the following: C C# D D#  E  F
  569.              F# G G# A A# B.  This is a full twelve-tone scale; therefore,
  570.              to enter "flat" notes, "double sharp" notes and the like, you
  571.              must  enter  them as their enharmonic equivalent in the given
  572.              scale above.  For instance, B-flat would be  entered  as  A#,
  573.              C##  would  be  entered as D, etc.  This notation does result
  574.              in some tonal ambiguity from a  musical  standpoint,  but  it
  575.              makes  things  much  easier  for  the computer.  If you don't
  576.              quite understand what enharmonically  equivalent  notes  are,
  577.              don't worry about it.
  578.  
  579.              To  alter  an  existing  note field, you may either type over
  580.              it, or  use  one  of  the  special  note  editing  keys:  "O"
  581.              [capital]   will   increase  the  note's  octave  value;  "o"
  582.              [lowercase] will decrease the note's octave value.  "+"  will
  583.              increase  the  note  by  one half-step; "-" will decrease the
  584.              note by one half- step.  Additionally, "=" will copy  a  note
  585.              field to the note field directly underneath it.
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.                                        Page 10
  596.  
  597.  
  598.  
  599.  
  600.  
  601.              The  octave  range  of notes is theoretically C 0 to B 9.  If
  602.              you try to enter extremely high notes, though, you will start
  603.              getting inaccuracies because of loss of  note  resolution  at
  604.              the  higher  extremes.   For instance, if you try to enter "B
  605.              8", "A 8" will appear on the screen instead.  This is because
  606.              the note period for B 8  is  so  small  that  the  computer's
  607.              limited  resolution  interprets  it  as A 8 instead.  There's
  608.              really no reason you should need to go THAT  high  with  your
  609.              notes  anyway.  The effective range is approximately C 0 to C
  610.              7.
  611.  
  612.              Initially the note field will be blank; therefore "..."  will
  613.              appear  in  the  field.   To  enter a note in the note field,
  614.              simply move the cursor to  the  note  field  in  the  desired
  615.              track,  and  type  in  the note/octave from the keyboard. The
  616.              note will replace whatever old note was there before.
  617.  
  618.              Entering notes of differing durations requires  a  "relative"
  619.              view  of  note  duration.   All  musical  note  durations are
  620.              relative, in "real" musical notation.  For instance,  a  half
  621.              note  is  half the length of a whole note.  A quarter note is
  622.              half the length of a half note.  An eighth note is  half  the
  623.              length  of  a  quarter  note;  a  sixteenth  note is half the
  624.              length of an eighth note, etc.  For instance, here's one  way
  625.              of conceptualizing different note durations:
  626.  
  627.              +---------------+
  628.              |= = = = = = = =|   One whole note: 8 atomic units
  629.              +-------+-------+
  630.              |= = = =|= = = =|   Two half notes: each 4 atomic units
  631.              +---+---+---+---+
  632.              |= =|= =|= =|= =|   Four quarter notes: each 2 atomic units
  633.              +-+-+-+-+-+-+-+-+
  634.              |=|=|=|=|=|=|=|=|   Eight 8th notes: each 1 atomic unit
  635.              +-+-+-+-+-+-+-+-+
  636.  
  637.              Note  that,  in  this particular diagram, we cannot subdivide
  638.              beyond 8th notes because at  the  8th  note  level,  we  have
  639.              reached  the  atomic  notational unit "=", which in this case
  640.              represents an eighth note.
  641.  
  642.              We could alternatively, though, choose the  atomic  unit  "="
  643.              to  represent  a  SIXTEENTH note, in which case our relations
  644.              would be as follows:
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.                                        Page 11
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.              +-------------------------------+
  669.              |= = = = = = = = = = = = = = = =| 1 whole note   :16 atomic units
  670.              +---------------+---------------+
  671.              |= = = = = = = =|= = = = = = = =| 2 half notes   :each 8 atomic
  672.              +-------+-------+-------+-------+                 units
  673.              |= = = =|= = = =|= = = =|= = = =| 4 quarter notes:each 4 atomic
  674.              +---+---+---+---+---+---+---+---+                 units
  675.              |= =|= =|= =|= =|= =|= =|= =|= =| 8 8th notes    :each 2 atomic
  676.              +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                 units
  677.              |=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=| 16 16th notes  :each 1 atomic
  678.              +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                 unit
  679.  
  680.              Important points to note about the above diagrams:
  681.  
  682.              (1) We  are  using  a  certain  number  of  atomic  units  to
  683.                  represent  each note duration.
  684.  
  685.              (2) The number of atomic units needed to represent a note  of
  686.                  a  certain  duration  is  a function of the note duration
  687.                  that a SINGLE atomic unit represents.
  688.  
  689.              Thus, conceptually, here is how you enter notes of  different
  690.              durations:
  691.  
  692.              (1) Determine  the  SMALLEST  or  SHORTEST  note duration you
  693.                  will need in the song.  Say, you choose the 16th note.
  694.  
  695.              (2) Assume the atomic note unit represents the note  duration
  696.                  chosen in (1).
  697.  
  698.              (3) The  note  duration  that  is  twice  as long as the note
  699.                  duration in (1) will be  represented  by  twice  as  many
  700.                  atomic  units.   For instance, in this example, 8th notes
  701.                  would be represented by  TWO  atomic  units,  since  16th
  702.                  notes  are  represented by one.  Correspondingly, quarter
  703.                  notes would be represented by FOUR  atomic  units,  since
  704.                  8th  notes are represented by two... etc, etc.
  705.  
  706.              (4) Adjust the song speed (see "Effect field" below) so  that
  707.                  the  atomic note unit is of the right real-time, absolute
  708.                  length.
  709.  
  710.              As you have probably ascertained by  now,  the  "atomic  note
  711.              units"  above  are  almost  exactly  the  "note  units"  that
  712.              comprise a pattern.  So, still  using  the  above  choice  of
  713.              atomic  note  unit  as  16th note, here's how you'd enter the
  714.              passage C2[4th] D2[8th] E2[8th]  F2[16th]  G2[16th]  A2[16th]
  715.              B2[16th] C3[4th]:
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.                                        Page 12
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.      Track 1     Track 2     Track 3     Track 4
  735. --!-----------!-----------!-----------!-----------+ Abbreviated Sample List
  736. 00!C 2|01|0 00!...|00|0 00!...|00|0 00!...|00|0 00|
  737. 01!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 01 <<NONE>>|17 <<NONE>>
  738. 02!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 02 <<NONE>>|18 <<NONE>>
  739. 03!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 03 <<NONE>>|19 <<NONE>>
  740. 04!D 2|01|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 04 <<NONE>>|20 <<NONE>>
  741. 05!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 05 <<NONE>>|21 <<NONE>>
  742. 06!E 2|01|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 06 <<NONE>>|22 <<NONE>>
  743. 07!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 07 <<NONE>>|23 <<NONE>>
  744. 07!F 2|01|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 08 <<NONE>>|24 <<NONE>>
  745. 09!G 2|01|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 09 <<NONE>>|25 <<NONE>>
  746. 10!A 2|01|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 10 <<NONE>>|26 <<NONE>>
  747. 11!B 2|01|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 11 <<NONE>>|27 <<NONE>>
  748. 12!C 3|01|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 12 <<NONE>>|28 <<NONE>>
  749. 13!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 13 <<NONE>>|29 <<NONE>>
  750. 14!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 14 <<NONE>>|30 <<NONE>>
  751. 15!...|00|0 00!...|00|0 00!...|00|0 00!...|00|0 00| 15 <<NONE>>|31 <<NONE>>
  752. --!-----------!-----------!-----------!-----------+ 16 <<NONE>>
  753.  
  754. Editing pattern 0.
  755. Default sample: 01.
  756.  
  757.  
  758.              The  "..."  in  the note field indicates that particular note
  759.              unit is "empty"; an "empty" note unit means to HOLD the  most
  760.              recent  note  in  that  track, whatever it was.  (Remember to
  761.              enter empty or null fields, press  the  SPACE  bar  when  the
  762.              cursor  is  on  that field.) So, the C 2 is played for 4 note
  763.              units (0 - 3); then the D 2 is played for 2 note units  (4  -
  764.              5),  etc.   Thus, the C 2 is played twice as long as the D 2,
  765.              which is exactly as intended (C 2 is a  quarter  note,  which
  766.              should  be  played  twice as long as the D 2, which is an 8th
  767.              note).
  768.  
  769.              Editing the sample number field
  770.              -------------------------------
  771.              You will notice that when you enter a  note,  not  only  does
  772.              the  note  appear,  but  also a number in the sample field to
  773.              the right appears.   This  number  is  the  "default  sample"
  774.              number that was mentioned above.
  775.  
  776.              The  concept  of  a  "default  sample"  number is as follows.
  777.              Each note in a pattern must be  "played"  with  a  particular
  778.              "instrument."  It is often (almost always) necessary to enter
  779.              a long series of notes that is played  with  one  instrument.
  780.              Rather  than  entering the notes AND entering the same sample
  781.              number over and over again, you simply enter  the  note,  and
  782.              ModEdit  will  automatically  enter the default sample number
  783.              in the sample field for  you.   If  you  change  the  default
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.                                        Page 13
  794.  
  795.  
  796.  
  797.  
  798.  
  799.              sample  (with "S" and "s"; see below) to NONE, this automatic
  800.              feature is turned off.
  801.  
  802.              By  default,  the  default  sample  will  NOT  overwrite   an
  803.              existing  (i.e.  non-zero)  sample number.  For instance, say
  804.              that the default sample is 3, and you enter a note "C  1"  in
  805.              an  empty note unit; then the sample number of that note unit
  806.              will become 3.  Later, you change your default sample  to  4,
  807.              and  change  this  "C  1" to a "D 1".  The sample number will
  808.              stay 3, since the default sample, by default, does  not  have
  809.              "precedence" over an existing sample number.  This is so that
  810.              you  may  change  existing  melody lines without altering the
  811.              sample number.  You may change this precedence  by  going  to
  812.              the  Configuration  Menu (see "Configuration" below).  If the
  813.              default sample has "precedence," it will always overwrite  an
  814.              existing sample field.  This is useful for entirely rewriting
  815.              tracks, samples and all.
  816.  
  817.              To  change  the  default  sample,  press  "S"  [uppercase] to
  818.              increase, or "s" [lowercase] to  decrease.   You'll  want  to
  819.              change  the default sample number when your lead line changes
  820.              instruments, when you switch from entering a lead track to  a
  821.              percussion  track,  etc.  --  basically,  whenever  the music
  822.              you're entering switches from  predominantly  one  instrument
  823.              to another.
  824.  
  825.              You  may  also  edit  the sample field manually by moving the
  826.              cursor onto the  sample  field,  and  typing  in  the  sample
  827.              number  that  you  want  associated  with  the  note  in  the
  828.              adjoining note field.  If  you  attempt  to  enter  a  sample
  829.              number  greater  than  31, ModEdit will clip the value to 31.
  830.              Just as with  the  note  field,  "+"  and  "-"  increase  and
  831.              decrease the field value, respectively.
  832.  
  833.              Note  that it is possible for a note unit to have a non-empty
  834.              note field, but a null (zero) sample field.  This can  happen
  835.              if  you set the default sample to NONE and edit an empty note
  836.              unit, or if you manually change the sample field to zero. The
  837.              end result is a note with no associated sample. I  call  such
  838.              notes  "orphaned" notes.  You generally should avoid orphaned
  839.              notes.  They may play  correctly,  since  the  sample  number
  840.              that  will  be  used during playback will most likely default
  841.              to the last sample number that was used in that track.   It's
  842.              best  explicitly  to  associate a specific sample number with
  843.              each non-empty note field.
  844.  
  845.              Additionally, you need to beware of using  samples  that  you
  846.              haven't loaded. ModEdit allows you, for instance, use "sample
  847.              number  17"  even  if  you  have not yet loaded (see "Loading
  848.              samples" under "Orchestration" below) a sample into  position
  849.              17.   If you forget eventually to load a sample into position
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.                                        Page 14
  860.  
  861.  
  862.  
  863.  
  864.  
  865.              17, you may (probably will) get very strange  results  during
  866.              playback  which  may  crash  your  computer.  So, always make
  867.              sure that, when you're ready to play your music, you are only
  868.              using samples you have loaded.
  869.  
  870.              Editing the effect field
  871.              ------------------------
  872.              The effect field consists  of  2  parts:  a  command  and  an
  873.              argument.
  874.  
  875.              The  command  can one of 16 values: 0 1 2 3 4 5 6 7 8 9 A B C
  876.              D E F. These commands control various  aspects  of  note  and
  877.              song  playback.   An  effect  command  generally takes effect
  878.              starting immediately with the note field associated with that
  879.              effect.
  880.  
  881.              The  argument  is  one  byte  long  and  is  represented   in
  882.              hexadecimal.   A hexadecimal byte, in case you don't know, is
  883.              a base 16 representation of a  number  that  consists  of  an
  884.              "upper  nybble"  and a "lower nybble", each of which may take
  885.              on a value of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B,  C,  D,  E,
  886.              or  F.  Values from A - F correspond to the decimal values 10
  887.              - 15.
  888.  
  889.              Certain commands listed below use the  2  nybbles  separately
  890.              (e.g.  arpeggiation).  In  this  case,  the 1st nybble is one
  891.              argument, and the 2nd nybble  is  the  2nd  argument.   Other
  892.              commands  treat  the  2  nybbles  jointly  as  one byte (e.g.
  893.              speed).  In  this  case,  the  decimal  equivalent   of   the
  894.              hexidecimal  number  is  calculated by: (upper nybble * 16) +
  895.              lower nybble.  So, for instance, an effect of  "F  1D"  would
  896.              mean  set  the song speed ("F") to 29 (1*16 + D = 1*16 + 13 =
  897.              29).
  898.  
  899.              Here's a list of effects and their  required  argument  byte.
  900.              "xy"  for  the  argument  byte  means  each nybble is treated
  901.              separately; "xx" means they are treated jointly as one byte.
  902.  
  903.              0 -- AREPEGGIATION
  904.              Format:  0 xy
  905.  
  906.              Plays its associated note in arpeggiated fashion; that is, it
  907.              rapidly steps the note between 3 pitch values:  the  original
  908.              pitch  value,  the  original  pitch  value  +  "x"  number of
  909.              halfsteps, and the original  pitch  value  +  "y"  number  of
  910.              halfsteps.
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.                                        Page 15
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.              1 -- SLIDE UP
  933.              Format:  1 xx
  934.  
  935.              Slides pitch up; slide speed is determined by the xx argument
  936.              (remember, it's in hexadecimal).
  937.  
  938.              2 -- SLIDE DOWN
  939.              Format:  2 xx
  940.  
  941.              Just like SLIDE UP except it slides the pitch down.
  942.  
  943.              3 -- SLIDE TO NOTE
  944.              Format:  3 xx
  945.  
  946.              Similar  to  slide except it slides the pitch TO the pitch of
  947.              the associated note field (commands 1 and 2  only  specify  a
  948.              speed,   not  a  destination).   xx is the speed to slide the
  949.              pitch.
  950.  
  951.              4 -- VIBRATO
  952.              Format:  4 xy
  953.  
  954.              Performs  "vibrato"  on  a note (wavering  effect).  x is the
  955.              vibrato speed; y is the vibrato depth.
  956.  
  957.              A -- VOLUME SLIDE
  958.              Format:  A x0  or  A 0y
  959.  
  960.              Slides the volume either up or down.  If x is specified and y
  961.              is  0,  the  volume is slid up at speed x.  If y is specified
  962.              and x is 0, the volume is slid down at speed y.
  963.  
  964.              B -- POSITION JUMP
  965.              Format:  B xx
  966.  
  967.              Breaks the pattern (i.e. stops  playing  it  at  its  current
  968.              position)  and  jumps  to  position  xx (hexadecimal!) in the
  969.              pattern sequence table.
  970.  
  971.              C -- SET VOLUME
  972.              Format:  C xx
  973.  
  974.              Sets the current volume to xx.  Valid range is 00 - 40 (hex).
  975.  
  976.              D -- PATTERN BREAK
  977.              Format:  D 00
  978.  
  979.              Breaks the pattern (i.e. stops  playing  it  at  its  current
  980.              position) and goes on to the next one in the pattern sequence
  981.              table.  The argument is meaningless.
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.                                        Page 16
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.              F -- SET SPEED
  999.              Format:  F xx
  1000.  
  1001.              Sets the speed of the song; hex values 00 - 1F are valid.
  1002.  
  1003.  
  1004.              The  best  way to understand what exactly these effects do is
  1005.              just to experiment and listen.
  1006.  
  1007.              Playing music from within the editor
  1008.              ------------------------------------
  1009.              With ModRes installed, you may hear your  music  from  within
  1010.              the pattern editor two ways.
  1011.  
  1012.              First,  you  may press the "N" key.  This plays the note that
  1013.              the cursor is currently on.
  1014.  
  1015.              Second, you may press the "P" key,  which  plays  the  entire
  1016.              pattern.
  1017.  
  1018.              These  functions are useful for immediately hearing what your
  1019.              music sounds like, allowing you to make changes and hear  the
  1020.              results.
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.                                        Page 17
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.              4.1.2  Sequencing patterns
  1064.              --------------------------
  1065.  
  1066.              After you've entered your music into patterns, you then  must
  1067.              sequence the individual patterns into a particular order that
  1068.              will  define  the  song.   To  do  this, choose the "Sequence
  1069.              Pattern" option of the Pattern Submenu.   You  will  then  be
  1070.              presented  with  a  table full of zeros, with an index number
  1071.              going from 0 to 127 beside each zero.  This  is  the  pattern
  1072.              sequence table.
  1073.  
  1074.              Initially,  no  patterns  will be in your song sequence.  So,
  1075.              move the cursor to song position 0 and press INS, to insert a
  1076.              pattern into the sequence. A highlighted "00" will appear  in
  1077.              position 0.  If you press INS again, another highlighted "00"
  1078.              will  appear.   You may press INS as many times as needed (up
  1079.              to the maximum of 128)  to  insert  patterns  into  the  song
  1080.              sequence.
  1081.  
  1082.              Then  you  simply edit the highlighted list.  The highlighted
  1083.              list is  the  sequence  of  patterns  that  will  be  played.
  1084.              Initially  it  will  contain  all  zeros.  So, let's say that
  1085.              patterns 0,1,2, and 3 contain the lead in to your song,  then
  1086.              patterns  4,  5, and 6 contain a melody to be repeated twice,
  1087.              then patterns 7,8, and 9 form your  coda.   You  would  press
  1088.              INS  13 times, which would result in a highlighted blank list
  1089.              of 13 zeros.  Then you  edit  these  zeros  to  reflect  your
  1090.              desired sequence:
  1091.  
  1092.                                   +----->Song position
  1093.                                   |
  1094.                                   |  +-->Pattern to be played at that song
  1095.                                   |  |   position
  1096.              00|00                00|00
  1097.              01|00                01|01
  1098.              02|00                02|02
  1099.              03|00                03|03
  1100.              04|00                04|04  ---> Notice that the "4 5 6"
  1101.              05|00                05|05       progression occurs twice; this
  1102.              06|00                06|06       is because, as mentioned
  1103.              07|00                07|04       above, patterns 4, 5, and 6
  1104.              08|00                08|05       contain a musical phrase
  1105.              09|00                09|06       to be repeated twice.
  1106.              10|00                10|07
  1107.              11|00                11|08
  1108.              12|00                12|09
  1109.  
  1110.              Unedited blank       Final edited
  1111.              sequence             sequence
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.                                        Page 18
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.              To delete a pattern from a sequence, simply move  the  cursor
  1130.              onto the pattern in the highlighted area and press DEL.
  1131.  
  1132.              You  need  to  be  aware  that  when  you save a ModFile (see
  1133.              "Saving and loading ModFiles"  below),  the  highest  pattern
  1134.              number  that will be saved is the highest pattern number that
  1135.              was USED in the pattern  sequence.   For  instance,  say  you
  1136.              created  38  patterns (0 - 37), but in your sequence you only
  1137.              used patterns 0 through 20.  If you  attempted  to  save  the
  1138.              song,  patterns  21 through 37 would not be saved.  This is a
  1139.              limitation imposed by the ModFile format. Be sure, therefore,
  1140.              that when you save a ModFile that the highest pattern  number
  1141.              in  the  sequence table corresponds to the highest pattern in
  1142.              memory. If you try to save a ModFile and there is a danger of
  1143.              losing  patterns,  ModEdit  will  warn  you  of  this  before
  1144.              proceeding.
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.                                        Page 19
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.              4.1.3  Other pattern options
  1196.              ----------------------------
  1197.  
  1198.              The  Pattern  Submenu  has  a  few  other  options  for  your
  1199.              convenience.
  1200.  
  1201.              "Duplicate pattern"  will  create  an  identical  copy  of  a
  1202.              pattern.   You  supply  it  source  and  destination  pattern
  1203.              numbers, and  it  will  copy  the  source  pattern  into  the
  1204.              destination  pattern (leaving the source unchanged).  You may
  1205.              choose  to  copy  all  tracks  from   the   source   to   the
  1206.              destination,  or  only  one  track  (in  which case the other
  1207.              tracks in the destination are unchanged).  This is useful for
  1208.              musical lines that are similar but not identical; you  simply
  1209.              copy  the  needed  tracks from an old pattern into a new one,
  1210.              then make the necessary minor changes to the new pattern.
  1211.  
  1212.              "Transpose pattern" allows you to increase  or  decrease  the
  1213.              pitch   of  notes  in  a  pattern  by  a  certain  number  of
  1214.              half-steps.  You may transpose all tracks or only one track.
  1215.  
  1216.              "Clear all patterns" does just what it  says  --  erases  all
  1217.              patterns  from  memory.  It  asks  for confirmation before it
  1218.              wipes the pattern memory.  It's useful if you want  to  start
  1219.              over  with  a new song but keep the current samples in memory
  1220.              (see also "Clear all  samples"  under  "Orchestration:  using
  1221.              samples" and "Wipe all memory" under "Miscellaneous").
  1222.  
  1223.              "Play  pattern"  is  used  in  conjunction  with the resident
  1224.              module player ModRes You type in a pattern number (0-64)  and
  1225.              it   plays  it  to  the  current  output  device.   For  more
  1226.              information see "Hearing your music" below.
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.                                        Page 20
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.              4.2  ORCHESTRATION:  USING SAMPLES
  1262.              ----------------------------------
  1263.  
  1264.              To reiterate, samples are the "instruments"  that  make  your
  1265.              music  sound  real.  Up to 31 distinct samples may be present
  1266.              in a ModFile, and  they  are  uniquely  identified  by  their
  1267.              sample  number 1 through 31.  A sample defines the sound that
  1268.              a note makes when it is played.
  1269.  
  1270.              4.2.1  The "sample directory"
  1271.              -----------------------------
  1272.  
  1273.              Samples are stored as digitized sound  files  on  disk;  each
  1274.              sample  is  stored  in  its  own  individual file.  Since the
  1275.              possible number of samples is practically  infinite,  ModEdit
  1276.              allows  you to specify a "sample directory" where your sample
  1277.              files are stored.  For instance  you  could  set  the  sample
  1278.              directory  to  A:\,  which would make ModEdit look for sample
  1279.              files by default on A:\.   This  would  allow  you  to  store
  1280.              sample  files  on  diskettes. Alternatively, you could make a
  1281.              subdirectory  on  your  hard  drive,  and  set   the   sample
  1282.              drive/directory  there,  so  that your sample files would not
  1283.              clutter up other directories.
  1284.  
  1285.              If a sample directory is not specified  (either  by  hand  or
  1286.              through  the  configuration  file) it defaults to the current
  1287.              working directory.
  1288.  
  1289.              4.2.2  Loading sample files from disk
  1290.              -------------------------------------
  1291.  
  1292.              To use a sample in your song, you  must  load  it  from  disk
  1293.              into  memory.   You  can load it into any of 31 slots (since,
  1294.              again, 31 samples may be present in a ModFile).
  1295.  
  1296.              To load a sample from disk, choose the "Load  sample"  option
  1297.              of  the  Sample  Submenu.   You will then be presented with a
  1298.              list showing you what sample each  of  the  31  sample  slots
  1299.              holds.  Initially, all of the slots will be empty, so next to
  1300.              each sample number you will see "NOT ALLOCATED."
  1301.  
  1302.              Pick  a sample number that you wish to load.  Say, you choose
  1303.              1.  Type "1" and press enter.  ModEdit will then ask you  for
  1304.              the  sample  filename.   Say  you want to load in a bass drum
  1305.              sample into sample 1, which is stored on  disk  as  the  file
  1306.              "bassdrum.sam."  Type  in  "bassdrum.sam"  and  press return.
  1307.              Remember, ModEdit will look in the "sample directory" on  the
  1308.              "sample  drive"  to  try  to  locate  the sample file.  If it
  1309.              cannot find your sample file, you'll get an error message and
  1310.              be prompted to try again.
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.                                        Page 21
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.              If the load is successful, then next to sample  number  1  in
  1328.              the list will appear "bassdrum.sam," which tells you that now
  1329.              sample  1  is associated with the bassdrum.sam file, which is
  1330.              your bass drum.  So, whenever you use "1" in the sample field
  1331.              for a particular note (see "Note field"  and  "Sample  field"
  1332.              under  "Creating/editing  patterns"  above),  that particular
  1333.              note will be played with a bass drum sound.
  1334.  
  1335.              You may continue to load sample  files  until  (1)  you  have
  1336.              loaded  all the samples you need; (2) you have loaded samples
  1337.              into all 31 slots; or (3) you have no more memory to load any
  1338.              more samples.
  1339.  
  1340.              Note that ModEdit currently cannot load sample files  greater
  1341.              than 64K.
  1342.  
  1343.              4.2.3  Playing samples
  1344.              ----------------------
  1345.  
  1346.              The  "Play  sample"  option  plays  a  sample to the "current
  1347.              output device" (see "Configuration" below).  This  is  useful
  1348.              for determining exactly what a sample sounds like, and how it
  1349.              will sound when played in your song.
  1350.  
  1351.              4.2.4  Saving sample files to disk
  1352.              ----------------------------------
  1353.  
  1354.              You  may  be wondering, "but where can I get digitized sample
  1355.              files?" You will find in  the  ModEdit  archive  file  a  few
  1356.              example sample files to play with; they are all "*.sam" files
  1357.              which can be loaded with the "Load sample" option above.
  1358.  
  1359.              The  "Save sample" option of the Sample Submenu allows you to
  1360.              save samples in memory to individual sample  files  on  disk.
  1361.              This  is  useful  for  extracting  the digitized samples from
  1362.              existing ModFiles.  When you choose the "Save sample" option,
  1363.              you will be presented  with  a  list  of  samples  and  their
  1364.              allocations.   You simply enter the sample number you wish to
  1365.              save, then the filename to save it to, and ModEdit writes the
  1366.              sample data from memory to a file.
  1367.  
  1368.              Note that the "sample name field"  (i.e.  the  name  that  is
  1369.              printed   beside   the   sample   slot  number)  is  actually
  1370.              INDEPENDENT of the sample filename on disk. (See  "Attributes
  1371.              of  samples"  below.)  For clarity, ModEdit always by default
  1372.              assigns the sample filename to the  sample  name  field,  but
  1373.              the  name  is  just  there  for  your  convenience.   All the
  1374.              computer knows about is the sample number.
  1375.  
  1376.              This can cause problems when  trying  to  save  samples  from
  1377.              existing  ModFiles  to  disk.  Since, again, there is nothing
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.                                        Page 22
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.              that requires the sample name field to be meaningful, ModFile
  1394.              composers often blank out the sample name fields entirely  or
  1395.              replace  the  name  fields  with  a message about themselves.
  1396.              (ModEdit allows you to  do  this  also;  see  "Attributes  of
  1397.              samples"  below.)  Such  alteration  of the sample name field
  1398.              does not affect the playing of  the  ModFile,  but  it  makes
  1399.              difficult the logical interpretation of samples.
  1400.  
  1401.              So,  say  that  you  just found this ModFile with interesting
  1402.              sample sounds, and you want to use those  in  your  ModFiles.
  1403.              You  load  the  ModFile into ModEdit, go into the save sample
  1404.              screen, and you see a list of 1 -  31  with  blanks  by  each
  1405.              sample  slot.  You can still save the samples with absolutely
  1406.              no problem; just type in the sample number you wish to  save.
  1407.              But  what  about the filename?  You don't "know" which sample
  1408.              number is associated with what actual  sound.   This  is  the
  1409.              purpose  of the sample name field, but since it's been wiped,
  1410.              you have no information.
  1411.  
  1412.              An analogy that may be useful is  this:  say  you  decide  to
  1413.              order  31 musical instruments in the mail.  They arrive in 31
  1414.              separate, identical, sealed boxes.  There are  no  labels  on
  1415.              any of the boxes, just a number from 1 - 31. How can you tell
  1416.              just by looking what instrument is in which box?  You can't.
  1417.  
  1418.              The  "Play Sample" option mentioned above can be useful here.
  1419.              By playing the sample and listening to it, you  can  fill  in
  1420.              the  name  field  yourself,  for  your  own  reference.   For
  1421.              instance, say that sample number 1  has  a  blanked-out  name
  1422.              field.   You  choose  the "Play Sample" option to play sample
  1423.              1, and it sounds like an electric  guitar.   Then  you  could
  1424.              change   the  sample  name  field  to  "Electric  Guitar"  or
  1425.              something similar (see "Attributes of  samples"  below).  The
  1426.              whole  idea  is  just that if the sample name field is blank,
  1427.              you have to figure out for yourself what the sample  actually
  1428.              sounds like.  The sample name field is a label, nothing more.
  1429.  
  1430.              4.2.5  Releasing samples
  1431.              ------------------------
  1432.  
  1433.              Sometimes  you  may  load  a sample that you later decide you
  1434.              don't need/want in your  ModFile  anymore.   You  could  just
  1435.              leave  it in there, but it would be taking up disk and memory
  1436.              space.  Also, there are only 31  samples,  so  it's  possible
  1437.              that you could run out of sample slots.
  1438.  
  1439.              For  situations  such  as  these  you  need  to  "release" or
  1440.              "deallocate" a sample slot.  Choose the "Release (deallocate)
  1441.              sample" option of the Sample Submenu.  You will be  presented
  1442.              with  a list of the 31 sample slots and any samples that have
  1443.              been loaded into those slots.  To free a sample slot so  that
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.                                        Page 23
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.              you  may  load  another  sample  into it, type its number and
  1460.              press  return.   That  sample  slot  will   then   say   "NOT
  1461.              ALLOCATED" on the list.
  1462.  
  1463.              For  instance,  say  that  sample slot 7 has been loaded with
  1464.              the sample file "badsnd.sam" which you decide  is  no  longer
  1465.              appropriate   in   your  song.  You'd  just  choose  "Release
  1466.              (deallocate sample)" then type "7." Next to  slot  7  in  the
  1467.              list,  "badsnd.sam" would be replaced by "NOT ALLOCATED." You
  1468.              are  now  free  to  load  in   another   sample   file,   say
  1469.              "goodsnd.sam," into slot 7 via the "Load sample" option.
  1470.  
  1471.              If  you  attempt  to  load a sample into an already allocated
  1472.              slot, you will be given the option of deallocating it.
  1473.  
  1474.              4.2.6  Attributes of samples
  1475.              ----------------------------
  1476.  
  1477.              Sample  attributes  define  certain  characteristics  of  the
  1478.              sample.   You  may  edit  any  of  these  attributes from the
  1479.              "Attribute view/edit" option of the Sample Submenu.
  1480.  
  1481.              The first attribute of a sample is the  name.   As  mentioned
  1482.              above,  ModEdit  by default sets the sample name attribute to
  1483.              the sample filename on disk. This is for clarity  and  it  is
  1484.              recommended  that you have meaningful sample names.  You are,
  1485.              however, free to edit the  name  attribute  to  anything  you
  1486.              want,  up to 22 characters long.  Some composers edit all the
  1487.              sample name attributes to form a message containing  composer
  1488.              information or the like.
  1489.  
  1490.              The  second attribute is the volume.  Whenever a note unit is
  1491.              played, the sample that is used to play that note can have  a
  1492.              volume from 0 through 64 (64 being loudest).  You may specify
  1493.              the  volume  for this note unit explicitly through the effect
  1494.              field with command "C" (see "Effects" above).  If you do  not
  1495.              specify  a  volume,  the  sample  is  played  back  with  its
  1496.              "default" volume, i.e., the volume attribute.
  1497.  
  1498.              The third and fourth attributes jointly  determine  "looping"
  1499.              of  the sample. Some sounds, such as a piano or a snare drum,
  1500.              have a definite  start  and  end  point.   Such  samples  are
  1501.              generally  not  looped  (though  they  could  be  for special
  1502.              effects or  something  similar).   On  the  other  hand  some
  1503.              sounds,  such  as  a  flute  or  a  sine  wave, do not have a
  1504.              definite "ending" point; the sound  is  a  constant  waveform
  1505.              that  only  changes  in  frequency.   Such  sounds  are often
  1506.              looped.
  1507.  
  1508.              A "looped" sample is one that  will  continuously  be  played
  1509.              without  stop.  Sample  looping  is defined by a "loop start"
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.                                        Page 24
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.              attribute and a "loop length" attribute.   The  "loop  start"
  1526.              attribute  is  a  number  that  represents an offset from the
  1527.              beginning of the sample; it is from this  point  that  sample
  1528.              looping begins.  The "loop length" attribute is a number that
  1529.              represents  the  length  of  the  section to loop.  A diagram
  1530.              will make this clearer:
  1531.  
  1532.                                         +---Loop Length----------+
  1533.                                         |                        |
  1534.                                         | This section is played |
  1535.                                         v     continuously       v
  1536.              -Sample data stream--------==========================
  1537.              ^                          ^                        ^
  1538.              |                          |                        |
  1539.              |                          Loop Start               |
  1540.              |                                                   |
  1541.              +--------------Sample Length------------------------+
  1542.  
  1543.              The portion of the sample data stream beginning at  the  loop
  1544.              start   and  ending  at  loopstart  +  looplength  is  played
  1545.              continuously, allowing  "ringing"  or  continuously  sounding
  1546.              notes.  This looped portion of the data stream is represented
  1547.              above by the "=" symbol.
  1548.  
  1549.              The  best  way  to  get  a  feel  for  sample  looping  is to
  1550.              experiment with the loop bytes  and  listen  to  the  results
  1551.              (e.g.  with  the  "Play sample" option of ModEdit or with the
  1552.              various "Play pattern" options).
  1553.  
  1554.  
  1555.              4.2.7  Default sample settings
  1556.              ------------------------------
  1557.  
  1558.              Although  all  information  is saved when you save a ModFile,
  1559.              not all information is saved when you  save  a  sample  file.
  1560.              Specifically, sample attributes are NOT saved when you save a
  1561.              sample file; only the sample data (i.e.  the sound) itself is
  1562.              saved.   Therefore, when you load a sample file, no attribute
  1563.              information is known.  So, ModEdit sets the sample attributes
  1564.              for newly-loaded samples to "default" values.
  1565.  
  1566.              The  "Default  sample  settings" option of the Sample Submenu
  1567.              allows you to change these defaults.  You may set the default
  1568.              volume, default loop start, and  default  loop  length.   The
  1569.              default  volume  is 64 (hex 40), which is the maximum volume;
  1570.              the default loop  start  and  loop  length  are  both  0  (no
  1571.              looping).   If  you  change these values, then the new values
  1572.              will be applied to every sample as soon as it is loaded.
  1573.  
  1574.              Of course the "Edit sample attributes" option allows  you  to
  1575.              change  the  attributes  for  a  particular  sample once it's
  1576.              loaded into memory.
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.                                        Page 25
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.              4.3 HEARING YOUR MUSIC
  1592.              ----------------------
  1593.  
  1594.              4.3.1  ModRes:  Inline playing
  1595.              ------------------------------
  1596.  
  1597.              If you've loaded ModRes into memory (see "Setup" above),  you
  1598.              may hear your music directly from within ModEdit.
  1599.  
  1600.              First,  you  may  choose the "Play Pattern" option.  You will
  1601.              be asked to supply a pattern number (0-63), and  ModRes  will
  1602.              play   this   pattern  to  the  current  output  device  (see
  1603.              "Configuration" below for a description of the current output
  1604.              device).
  1605.  
  1606.              Secondly, you may go into the pattern sequence  screen,  move
  1607.              the  cursor  to  a  pattern  you wish to hear, and press "P."
  1608.              This will play the pattern that the cursor is  currently  on.
  1609.              Alternatively,  you  could  press  "S,"  which would play the
  1610.              entire song, starting from the pattern the cursor was on.
  1611.  
  1612.              Consult "MODRES.DOC" for more information on ModRes.
  1613.  
  1614.              4.3.2  ModPlay:  External playing
  1615.              ---------------------------------
  1616.  
  1617.              To play  modules  outside  the  ModEdit  environment,  simply
  1618.              choose  the "Save ModFile" option of the File Submenu to save
  1619.              your song to a  ModFile.   It's  best  to  save  it  with  an
  1620.              extension   of  ".MOD,"  so  that  ModPlay  and  ModEdit  can
  1621.              automatically locate it.
  1622.  
  1623.              The resulting ModFile on disk can be played via the  external
  1624.              ModPlay  Module  Player, by Mark J. Cox.  Consult the ModPlay
  1625.              documentation for specific instructions on using ModPlay.
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.                                        Page 26
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.              4.4  SAVING AND LOADING MODFILES
  1658.              --------------------------------
  1659.  
  1660.              ModEdit can load in standard 15 or  31  instrument  ModFiles.
  1661.              This  means  you  can  edit  a vary large portion of existing
  1662.              Amiga ModFiles (since  the  ModFile  format  comes  from  the
  1663.              Amiga).    ModEdit   looks   for  ModFiles  in  the  "ModFile
  1664.              directory," which you may set/change  via  the  Configuration
  1665.              Submenu.  Loading  a  ModFile  is straightforward; choose the
  1666.              "Load ModFile"  option  of  the  File  Submenu,  specify  the
  1667.              path/filename,  and  the  ModFile will be loaded into memory.
  1668.              Any errors during loading will be printed to the screen.
  1669.  
  1670.              Saving a ModFile is equally simple; simply choose  the  "Save
  1671.              ModFile"   option  of  the  File  Submenu.   Technical  note:
  1672.              ModEdit only saves 31 instrument ModFiles, even ModFiles that
  1673.              were originally loaded as 15 instrument modules. Since the 15
  1674.              instrument format is supported for loading, compabitility  is
  1675.              maintained.
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.                                        Page 27
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.                                      =============
  1724.                                      5.  REFERENCE
  1725.                                      =============
  1726.  
  1727.              5.1  Exhaustive menu options
  1728.              ----------------------------
  1729.  
  1730.              Following are all the available options in ModEdit.  Most are
  1731.              self-explanatory;   where  needed,  a  brief  explanation  is
  1732.              included.
  1733.  
  1734.              FILE SUBMENU
  1735.                 - Directory listing
  1736.                 - Save ModFile
  1737.                 - Load ModFile
  1738.                 - Jump to DOS shell
  1739.  
  1740.              PATTERN SUBMENU
  1741.                 - Old pattern edit (edits an existing pattern)
  1742.                 - New pattern edit (creates new pattern in memory)
  1743.                 - Sequence patterns (into a song)
  1744.                 - Duplicate pattern
  1745.                 - Transpose pattern (up or down a certain # of halfsteps)
  1746.                 - Play pattern (must have MODRES loaded)
  1747.                 - Clear all patterns
  1748.  
  1749.              SAMPLE SUBMENU
  1750.                 - View current samples
  1751.                 - Attribute view/edit (name, volume, looping)
  1752.                 - Load sample
  1753.                 - Save sample
  1754.                 - Play sample (must have MODRES loaded)
  1755.                 - Default sample settings (for newly-loaded samples)
  1756.                 - Release (deallocate) sample
  1757.                 - Clear all samples
  1758.  
  1759.              CONFIGURATION SUBMENU
  1760.                 - Directories (current, ModFile, Sample)
  1761.                 - Masks for filenames (sample/ModFile filename masks)
  1762.                 - Toggle error beep
  1763.                 - Colors
  1764.                 - Output device for playback (with MODRES)
  1765.                 - Precedence of default sample (see section 4.1.1,
  1766.                   subheading "Editing the sample number field")
  1767.                 - Save configuration
  1768.  
  1769.              MISCELLANEOUS SUBMENU
  1770.                 - Title of song
  1771.                 - Wipe all memory
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.                                        Page 28
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.              EXIT SUBMENU
  1791.                 - Return to main menu
  1792.                 - Exit
  1793.  
  1794.  
  1795.              5.2  Pattern editor quick reference key summary
  1796.              -----------------------------------------------
  1797.  
  1798.              Key(s)                    Function
  1799.              ------                    --------
  1800.              Cursor movement keys      Standard functions
  1801.              A-G, 0-9, #               Note entry
  1802.              N                         Play note cursor is on
  1803.              O (uppercase)             Increase note by one octave
  1804.              o (lowercase)             Decrease note by one octave
  1805.              P                         Play entire pattern
  1806.              S (uppercase)             Increase default sample
  1807.              s (lowercase)             Decrease default sample
  1808.              +                         Increase note or sample field
  1809.              -                         Decrease note or sample field
  1810.  
  1811.              5.3  Effect list -- quick reference
  1812.              -----------------------------------
  1813.  
  1814.              Effect #/Description      Format/Argument
  1815.              --------------------      ---------------
  1816.              1: Slide Up               1 xx  xx=speed
  1817.              2: Slide Down             2 xx  xx=speed
  1818.              3: Slide To Note          3 xx  xx=speed
  1819.              4: Vibrato                4 xy  x=speed y=depth
  1820.              5: <<no effect>>
  1821.              6: <<no effect>>
  1822.              7: <<no effect>>
  1823.              8: <<no effect>>
  1824.              9: <<no effect>>
  1825.              A: Volume Slide      A x0/A 0y  x=upspeed OR y=downspeed
  1826.              B: Position Jump          B xx  xx=pattern position
  1827.              C: Set Volume             C xx  xx=volume(00-40 hex)
  1828.              D: Pattern Break          D --  skip to next patt.
  1829.              E: NOT USED
  1830.              F: Set Speed              F xx   xx=speed(00-1F)
  1831.  
  1832.  
  1833.              5.4  ModPlay
  1834.              ------------
  1835.  
  1836.              ModPlay is an external Module (ModFile)  playing  program  by
  1837.              Mark J. Cox.  ModPlay can play ModFiles created with ModEdit,
  1838.              outside  the  ModEdit  environment.   It is available at many
  1839.              ftp  sites,  one  of   which   is   wuarchive.wustl.edu   (in
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.                                        Page 29
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.              mirrors/msdos/sound, program modpy112.zip).
  1856.  
  1857.              Here is an excerpt from the ModPlay documentation:
  1858.  
  1859.                    Modplay    allows    you    to    play   (most)   Amiga
  1860.                    soundtracker/noisetracker  files  on  a  PC  (10Mhz  or
  1861.                    faster  clock  speed).  CGA minimum is required for the
  1862.                    graphical display whilst playing,  but  no  display  at
  1863.                    all  is required just to play modules.  MODPLAY detects
  1864.                    automatically if a module is corrupt, and detects if it
  1865.                    is a 15 or 31 instrument module.
  1866.  
  1867.  
  1868.              5.5  Coming attractions
  1869.              -----------------------
  1870.  
  1871.              New version of ModRes, which will:
  1872.                 - Work with 10 MHz machines
  1873.                 - Add SoundBlaster support
  1874.                 - Allow more flexible sample playing options
  1875.                 - Allow greater than 64K samples
  1876.  
  1877.              See the file "MODRES.DOC" for more information.   Be  on  the
  1878.              lookout for these and other improvements in later versions.
  1879.  
  1880.  
  1881.              5.6  License/Warranty/Disclaimer
  1882.              --------------------------------
  1883.  
  1884.              The  below  information  applies  only to ModEdit and related
  1885.              documentation files.  Specifically, the below  terms  do  not
  1886.              apply   to   the  "MODRES.COM"  program  file.   For  license
  1887.              information concerning MODRES, consult MODRES.DOC.
  1888.  
  1889.              This program and  accompanying  documentation  are  Copyright
  1890.              1991  by  the  author  (Norman  Lin).  You are hereby granted
  1891.              permission to freely distribute  and  use  this  program  for
  1892.              personal  use.   You  may  upload  this program to electronic
  1893.              bulletin boards or  Internet FTP  sites.  This  documentation
  1894.              file must always be included with the program.
  1895.  
  1896.              You are specifically prohibited from selling or  charging  or
  1897.              requesting any monetary amount for the distribution or use of
  1898.              ModEdit  or  accompanying  documentation.  ModEdit may not be
  1899.              used for any commercial purposes  without  my  prior  express
  1900.              written  permission.   ModEdit may not be distributed for use
  1901.              with any for-profit software (including but  not  limited  to
  1902.              commercial  software  and shareware) without my prior express
  1903.              written permission.
  1904.  
  1905.              There  is  no warranty of any kind; this software is provided
  1906.              on an "AS-IS" basis.  The author  of  this  software  (Norman
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.                                        Page 30
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.              Lin)  shall not be liable for any damages whatsoever that may
  1923.              result, directly or indirectly, from the use of this software
  1924.              or documentation.  By using ModEdit, you  agree  to  all  the
  1925.              above terms.
  1926.  
  1927.              If you find ModEdit useful, entertaining, or  interesting  --
  1928.              or  if  you just feel kind-hearted -- a voluntary donation in
  1929.              any amount ($5 U.S. suggested) would be greatly  appreciated.
  1930.              With  your support, future, better versions of this and other
  1931.              software can be made available.
  1932.  
  1933.              Send  all  contributions,  comments, or queries about ModEdit
  1934.              to:
  1935.  
  1936.              Norman Lin                |      Norman Lin
  1937.              1109 West 94th Street     |      1400 Asp Avenue
  1938.              Jenks, OK  74037          |      Walker Tower Box 1214E
  1939.                                        |      Norman, OK  73026
  1940.              ==========================|================================
  1941.              Permanent address         |      Current address --
  1942.                                        |      valid through August, 1991
  1943.  
  1944.              Before August 1991, the address on the right  will  reach  me
  1945.              more  quickly.   After August 1991, either email me to get my
  1946.              new  current  address  (preferable),  or  use  the  permanent
  1947.              address.
  1948.  
  1949.              Internet email address:
  1950.  
  1951.              norlin@uokmax.ecn.uoknor.edu
  1952.              norlin@129.15.22.2
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.                                        Page 31
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989. 
  1990.