Code 5 -- Slurs, brackets, 1st ending, etc. -- parameter structure: p1 p2 code num., staff num. p3 p4 p5 p6 left horizontal pos., left vertical pos., right vert. pos., right horz. pos. | |___________________| | |_________________________________________________________| P7 = amount of curvature (in scale steps). A positive number makes the slur curve upwards, a negative number makes the slur curv downwards (i.e. the center of the slur will be lower than the ends). * P8 = horizontal offset. P8 = 0 = slur will begin exactly at p3 position and end at p6 position. = -1 = slur ends are centered over notes at positions of p3 and p6. = -2 = slur falls between notes at pos. p3 and p6. (tied notes) = -3 = same as -2, but extra space for 1st note being dotted. P8 = 1 = 1st ending, p8 = 2 = 2nd ending. But if p9 is not zero, then p9 sets the ending number. (P7 should usually = c. 4.5) P8 = 3 = bracket with the number 3 in center. But if p9 is not zero, then p9 sets the number. P10 can be used to move the number to the left or right of center. P10 = 0 = default (.5) = number is centered. = .3 = number is 30% distance from left to right. = .8 = " " 80% " " " " " * P9 = flattening factor. Longer slurs often should be flattened in the middle. By setting p9 to a positive value, a larger portion of the slur will be flat. Negative values will decrease the flat area. P10 = set center of curvature. When p10 is left at zero the default value of .5 is in effect. If p10 is less than .5 the center of curvature shifts to the left. Values greater than .5 shift the center to the right. P11 = dashed line, if non-zero. The value in p11 sets the dash width. * P12 = half or reversed slurs. If p12 = 1 the slur shape will be as if only the left half were being drawn. P12 = 2 makes only the right half shape. P12 = -1 causes the slur to reverse direction at its midpoint (see p10). If p7 is positive, the 1st part of the curve will be up. If p7 is negative the 1st part of the curve will be down. (The slur length must be visually adjusted when p12 = -1.) P13 = thickness control. Zero is default. Best maximum = 3. P13 = -1 or -2 makes thin slurs. P14 and p15 are used to break up slurs to avoid crossing over other items. The slur first should be set up with its normal parameter values in p3, p4, p5, and p6. Then p14 can set where the visible portion of the slur starts and p15 can set where the visible portion ends. P14 = .3 = visible part starts 30% of the way through. P15 = .65 = visible part ends 65% of the way through, etc. P14 and p15 can be used separately or together. .