home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
- PLAYITPLAYIT
-
-
-
- A MUSIC PLAYING PROGRAM A MUSIC PLAYING PROGRAM
-
- for the
-
- I.B.M PC/AT and Compatibles
-
-
-
- by John S. Smith
- c/o 'Rosemont'
- Hawthorn Rd
- Beaufort
- Ebbw Vale
- Gwent
- United Kingdom
-
-
-
-
-
- Copyright (C) 1989 by John S. Smith Copyright (C) 1989 by John S. Smith
- All Rights Reserved___ ______ ________
-
-
-
-
-
- The PLAYIT diskette containing a copy of this
- document is distributed under the Shareware scheme
- and may be freely copied provided that none of the
- files thereon are modified in any way. Printed
- copies of the documentation may not be copied
- without the express written permission of the author
- PLAYIT Guide PLAYIT.DOC
-
-
-
- PLAYIT.DOC -- Instructions for using the PLAYIT
- program for PC Compatible Machines.
-
- This document describes PLAYIT version 1.0. A
- program for producing melodies on the IBM PC and
- compatible computers. This documentation and program
- (PLAYIT.exe) are copyright (c) by J. Smith October
- 1990.
- All rights reserved.
-
- Synopsis
- PLAYIT will play a melody from data supplied in a
- data file. The data specifies the duration of each
- note and its pitch. Each line in the file
- corresponds to just one note with the exception of
- the lines which specify triplets or other groups.
- Triplets and groups of up to nine in number are
- allowed on a single line. The program will allow
- about 1000 notes total. The duration of notes ranges
- from a demisemiquaver to a triple dotted minim. All
- notes in that range may have one, two or three dots
- after it. As well as notes, rests are allowed and
- are specified in a similar way to notes. The file
- may contain comment lines and this is useful and
- typically used to show bar lines for easy editing
- later. The tempo of the melody may be changed
- dynamically by indication in the data file. There is
- also a 'baton' feature whereby a symbol appears on
- the screen just as each note starts to sound.
- Additionally, the file may contain an instruction to
- indicate (on screen) when a particular point in the
- melody has been reached.
- There is also a real-time text message facility to
- output messages while the tune plays.
-
- The Shareware version of this program contains all
- the features described below except that it is
- confined to about 2 octaves. The registered version
- allows access to a full six octaves.
-
- Installation
- Simply copy the file PLAYIT.EXE and the example
- music datafile called HORNPIPE from your
- distribution disc to your working disc. Then type
- PLAYIT to run it. PLAYIT must be in your current
- PATH of course (see your DOS documents for a
- description of PATH).
-
-
- Getting started.
- As not many people like to read all the blurb before
- starting, an example music file is supplied with
- PLAYIT.EXE. TO run it, type PLAYIT HORNPIPE and
-
-
-
-
- A Shareware Program page 2 October, 1990
- PLAYIT Guide PLAYIT.DOC
-
-
-
- sounds should emanate from your PC. (Make sure the
- volume control is turned up!!)
-
- A registered version may be obtained from:
- John Smith
- c/o "Rosemont"
- Hawthorn Road
- Beaufort
- Ebbw Vale
- Gwent
- S. Wales
- U.K.
-
- For a fee of 17 pounds sterling + 2 pounds p&p in
- the U.K. and 3 pounds for anywhere else. Please
- specify 3.5" or 5.25" disc.
-
- The program will run on virtually any compatible PC.
- No special display or hardware is required as all
- output is ascii text and the program drives the
- system speaker.
-
- Language Description for PLAYIT.exe
-
- A input file containing the notes to be played must
- be created.
- Any normal text editor or word processor may be used
- to prepare the input file but the file MUST be plain
- text and contain no special word-processor embedded
- control characters. Eg Wordstar must create the file
- in TEXT MODE.
-
- PLAYIT does a reasonable amount of error checking
- and catches the most likely errors: it has proved to
- be quite effective in practice.
-
-
- Within the file a series of lines define the melody.
- Items on a line must be separated by at least one
- space.
-
- Each line defines a note with two parameters:
- 1. Duration
- 2. Pitch
- Duration
- The duration can be from a demisemiquaver to a
- triple dotted minim using the first letter of the
- note's name only. The letters are:
- d - demisemiquaver
- s - semiquaver
- q - quaver
- c - crotchet
- m - minim
-
-
-
-
- A Shareware Program page 3 October, 1990
- PLAYIT Guide PLAYIT.DOC
-
-
-
- The note letter may be followed by an 'r' if the
- note is a <rest>. eg
- qr - quaver rest.
- The note/rest name may be followed by from one to
- three dots. eg
- qr... - triple dotted quaver rest.
-
- Pitch
- There are six octaves: from c2 to c8 inclusive -
- middle c is c4.
- All notes within this range may be obtained. Sharps
- and flats are obtained by using a + or a -
- respectively. eg
- c4+ is c4 sharp.
- Example of a note:
- q. c4+
- defines a dotted quaver, c sharp (d flat).
-
- Comments
- Any line beginning with a \ is ignored
-
-
- Blank lines are ignored and may be used to improve
- readability
-
-
- Screen display
- Any line beginning with a '>', causes an '|' to be
- output to the screen in real time at that point in
- the melody plays.
-
- Baton
- The baton is turned on by including a line that has
- just a singlr 'B' on it. If there is such a line,
- then a '.' is displayed just as each note begins to
- play. The baton cannot be turned off once it is on.
-
- Messages
- A message line is any line starting with an asterisk
- character (*) and followed by a text message. No
- space is needed after the '*' and the following
- message. The message is displayed on the screen at
- that point in the melody ie in real time sync. Good
- for advertising purposes?
-
- Tempo
- The tempo can be set by a line beginning with a 'T'
- or a 't', then a space followed by a number. This
- number denoted the tempo. Smaller numbers denote
- faster tempo. The tempo may be changed in real time
- with another 'T' line. The tempo is set to 100 by
- default.
-
-
-
-
-
- A Shareware Program page 4 October, 1990
- PLAYIT Guide PLAYIT.DOC
-
-
-
- Triplets and groups
- A line beginning with a single digit from 3 to 9
- signifies the start of a group. Following the digit
- must come a note duration code (the same as any
- other duration code) eg 'c' for crotchet.
- Then comes a list of pitches, one for each of the
- notes in the group. eg
- 3 c c2 d2 e2
- The grouping only works for 'more notes than there
- should be' as this is by far the most common usage.
- eg Three quavers in the time of two quavers
- (crotchet)
- A <rest> may form part of the group. eg
- 5 q c2 rest d2 e3 f2
-
- Note: Due to hardware limitations, if a note has an
- extremely short duration then the computer hardware
- may not be able to cope. This depends to some extent
- on which computer you are using but shouldn't be too
- much of a problem. The software used to test for
- this when in development and gave a warning but this
- has now been removed. Would you like this feature
- available for general use? Please let me know if so.
-
- Well that's just about it. Any suggestions for
- improvements will be welcomed by the author.
- Needless to say, all versions of the the program are
- supplied 'as is' and without any warrantee of any
- kind, either expressed or implied, but I feel
- confident the program will be of real use to anyone
- interested in music.
-
- That's it!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- A Shareware Program page 5 October, 1990
-