DURATION
Duration may be expressed straight in jiffies:
c# 35j
or, as is the common usage, as a fraction:
b3b 3/8
The combination `number j' specifies jiffies, and the fractions are
what you might expect: whole note 1/1, half note 1/2, etc. The 3/8
written above is a dotted quarter, and triolets might be 1/12, i.e.
three to a quarter. You must be able to manipulate fractions to this
extent. But, as modern music uses all kinds of crazy subdivisions
and ties, there are additional notations to help.
First, you may specify duration as a sum of fractions, e.g. the
dotted quarter might be:
b3b 1/4+1/8
a double dotted quarter would be
e 1/4+1/8+1/16
and, actually, anything goes:
fx3 1/3+1/5+1/7
There is also an instruction FIT which fits a group of notes into
a duration, so triolets may be written:
fit 1/4 (c 1/8 d 1/8 e 1/8)
In the compiled score, the duration is written as a number of jiffies;
it takes one or more bytes, as it is encoded in 7-bit midi notation.
The number of jiffies corresponding to a fraction is computed as:
whole * numerator / denominator
where whole is the number of jiffies set by the WHole instruction.
All these quantities are integers, and there may be truncation in
the division. E.g. :
whole 100 ; c 1/4 d 1/8
will have c lasting 25 jiffies and d lasting 12 jiffies (100*1/8).
So two eights do not a quarter make, for this value of whole. This
can be fixed using FIT and the related instruction BAR, but it is
probably wisest to pick `whole' so it is evenly divisible by whatever is
needed. For instance, the default value of whole is 192, which
allows sixty-fourth notes and triolets without truncation. In combination
with the standard setting of 60 jiffies per second, this produces
a rather slow tempo quarter = MM 75.
The duration is actually optional, as are certain parts of the
fraction notation. If the duration is omitted, it is taken to be the
duration of the previous chord. The default, i.e. the duration before
any chord or note has been compiled, is 1/4. A lot of examples appeared
in the previous section, where there were written long sequences of
pitches, without any durations – all of these are legal, and the
chords there will all have the same duration.
In plain fractions, but not in fraction sums, the denominator or
numerator may be omitted. An omitted numerator is taken to be one:
c /4 is the same as c 1/4
The slash must be there to identify 4 as a denominator.
If the denominator is missing, it is copied from the previous fraction:
c 3/4 d 1 means c 3/4 d 1/4
One more example:
c 3/4 d 1 e 2 f g
meaning:
c 3/4
d 1/4 – denominator copied
e 2/4 – denominator copied
f 2/4 – duration not specified, same as previous duration
g 2/4 – duration not specified, same as previous duration
Notice in particular the blanks in ...d 1 e 2... ; if they were
omitted, 1 and 2 would be interpreted as octaves, not as durations.
This is a case of meaningful blanks, used as separators. On the other
hand, one can write c/4 or c#/4 or even c3#/4 to specify various notes
lasting one quarter (one is supplied for the missing numerator). Finally,
write in full the fractions in sums:
a 1/3+1/6
My parser is not clever enough to supply missing parts there, although
it can do arsemetrick and come up with the sum 1/2. Now, what is the
`previous denominator' ? 6 or 2 ? Instead of worrying, supply the denominator
of the next fraction yourself. But inquiring minds want to know –
the denominator is six.