mingle and merge are two commands for combining links.
Explanation:
* mingle name: mg1 # name of mingle 0: l1 # constituent links 1: l2 2: l3 4: statements= 1 # number of mingle iterations
mingle concatenates a sequence of links:
Each link will be played only the number of statements
given it. For example, if a mingle consists of links
,
,
and
, and if
was given 6 statements,
4 statements and
2 statements, when played the mingle will be:
will be played 6 times,
4 times, and
2 times.
The mingle's number of statements determines the number of times the entire sequence will be played.
Explanation:
* merge name: mr1 # name of merge 0: l1 # consituent links 1: l2 statements= 1 # number of merge iterations
merge takes a sequence of links, and interlaces their constituent elements.
For example, if
consists of elements
, (2 statements) and
consists of elements
(2 statements), the resulting
merge would be:
As in a mingle, each link is played only the number of statements given it.
Both mingle and merge will create the same frequency, only if all their links contain the same number of elements:
were
is the duration of the
'th link.
If all their links do not contain the same number of elements, determining the frequency is more difficult. In general, the frequency created by a merge will be lower than that of a mingle, since its period length will be longer.
Mingles and merges calculate their durations in the same way:
where
is the number of statements given to a mingle or
a merge.
Here are two links: link
has three elements, and link
has four
elements. Each link is given 3 statements.
1in
3.5in
The elements of link
are a1, a2, a3. The elements of link
are b1, b2, b3, b4.
Below on the left are three
statements of a mingle of link
with link
. On the right
is a merge of
with
.
1in
3.5in
A mingle concatenates its links; a merge interlaces the constituent elements of its links.