The instruction:
All the parameters except the first are optional. Their interpretation is as follows:
The instruction is:
Examples:
Enigma
Given a melody, it builds several voices based on a harmoniztion of the melody. When music plays, the melody may be omitted – a true enigma.
will produce a score named enig345 and the corresponding midi file enig345.mid.
perl drenig.pl
file_lhom
rand_345
dur_100
with orc
The driver program executes two other programs:
The piano score may be unplayable by one pianist – then assume a player piano, or piano four hands, or two pianos.
This reads a score and prepares the input for
enig.pl , the file ouou.txt.
It takes one obligatory parameter, the name of the input score.
perl tondur.pl
file_scorename
The file inin.txt may contain key instructions (in this case key specifies 1 flat) and names instructions ( in this case, d r m ...
= Do Re Mi ... = C D E ... ;
rest is p).
The program also recognizes comments: text in braces, both braces on the same line, text may not contain braces.
Tones and duration may be specified as in my usual music editor, except that + and – are not available for octave,
and fractions cannot be written as numerator only.
{L'Homme Arme}
key 1b
names drm
s5 /2 s/4 d/2 d/4 i l/2 s 3/4 r5 /4 r s5 p r6 r r d/2 i/4 l/2
s 3/4 r6 /4 r r s5 3/4 s6 /2 s/4 f/2 f/4 s/2 s/4 r 3/4 s6 /2 s/4 f/2 f/4
s/2 s/4 r/2 s/4 l/2 s/4 f m/2 r 3/4 p s5 /2 s/4 d/2 d/4
i l/2 s 3/4 r5 /4 r s5 p r6 r r d/2 i/4 l/2 s 3/4
67 1/2
67 1/4
72 1/2
72 1/4
70 1/4
69 1/2
67 3/4
62 1/4
62 1/4
67 1/4
-1 1/4
74 1/4
.
.
74 1/4
74 1/4
72 1/2
70 1/4
69 1/2
67 3/4