lattica2.eps (source link in file list below) : another Harmonic Lattice Diagram, Advanced -- this example shows 5-limit 12-tone Duodene, triangular lattice, using default link style, with basic labels for the key of C.
The lines changed in the original file to get the variation are shown below, with the changes shown indented.
% WINDOW LIMITS, your coordinate system|% left x, bottom y, right x, top y: (set big enough to fit whole diagram)
-1.6 -1.2 2.8 1.2
% this example shows 5-limit 12-tone Duodene, triangular lattice
/primes
[ 3 5 ]
def
% specify coordinates for each prime harmony
/coords
[ [ 1 0 ] [ 0.5 0.866 ] ]
def
% define which ratios get links
/links
[ 3 2 5 4 6 5 ]
def
% specify line style (width, dashing, gray) for each type of link:
% (or if /styles is empty array, default style will be used)|/styles
[ ]
def
/scl [
5 3 5 4 15 8 45 32
4 3 1 1 3 2 9 8
16 15 8 5 6 5 9 5
] def
% specify label (string in parens) for each tone in scale:
% (or if /labels is empty array, ratios will be used)
/labels [
(A) (E) (B) (F#)
(F) (C) (G) (D)
(Db) (Ab) (Eb) (Bb)
] def
% Can adjust label positions relative to dots (if set /offsetlabels to true)
% by using offsets of form {x y} relative to dot (not necessarily integers),
% where {1 1} means to upper right, {1 -1} = lower right, {-1 1} = upper left, etc.
% Then MUST specify an offset for each tone in scale, in /offsets below:
% (or if /offsets is empty array, default offsets will be used)
/offsets [
{0 1.5} {0 1.5} {0 1.5} {0 1.5}
{0 2.5} {0 2.5} {0 2.5} {0 2.5}
{0 -1.5} {0 -1.5} {0 -1.5} {0 -1.5}
] def %label offsets