[CM] CMN - weird accent placement
Bill Sack
bsack23@gmail.com
Sat, 14 Apr 2007 23:41:13 -0400
------=_Part_28322_22903349.1176608473954
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
i'll try to get through the list over the next few days - i'll go through
the Gardner Read book and see what he has to say ...
thanks for the fix.
b
On 4/14/07, andersvi@extern.uio.no <andersvi@extern.uio.no> wrote:
>
> >>>>> "B" == Bill Sack <bsack23@gmail.com> writes:
>
> B> CMN seems to be putting accents above the staff no matter
> B> what. I tried the test case in cmn1.lisp and there seem to be
> B> similar problems with little-swell, down-bow, up-bow and some
> B> others. Shouldn't the default, for accent at least, be
> B> opposite the stem direction? i don't recall this being a
> B> problem before - i wonder if it's recently broken ...
>
> B> bill sack
>
> Dont know when this crept in, but at least accents should be placed
> opposite stems. The fix is easy, put a test on
>
> '(direction-from-note mark note)'
>
> to check for direction. ie:
>
> (defun display-accent (mark note score &optional justifying)
> (declare (ignore justifying))
> (let ((dir (direction-from-note mark note)))
> (show score mark
> :matrix (translate-matrix
> score mark
> (+ (box-x0 note) (vis-dx mark) (center note) -.2 (x0
> mark))
> (+ (box-y0 mark) (vis-dy mark)
> (if (eq dir :down)
> (+ (staff-y0 note) (min (* (- (head-line note)
> 4) *staff-line-separation*) -.5))
> (max (+ (or (stem-end note) 0) .125)
> (+ (staff-y0 note)
> (* (max 10 (+ 3 (head-line note)))
> *staff-line-separation*)))))))))
>
>
> But some marks are placed above staff by default. If someone could
> compile or link to a list of default-placement for the marks (and
> ideally all marks in accent.lisp as well):
>
> staccato
> accent
> little-swell
> edge
> tenuto
> marcato
> down-bow
> up-bow
> detache
> martele
> thumb
> natural-harmonic
> bartok-pizzicato
> stopped-note
> open-note
> left-hand-pizzicato
>
> and fill in default direction (ie: opposite-stem/up/down) for the
> various marks, it would be a rather small job going through the
> various #'display-some-mark programs which needs fixing (i think...)
> Anyone?
>
> -anders
>
------=_Part_28322_22903349.1176608473954
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
i'll try to get through the list over the next few days - i'll go through the Gardner Read book and see what he has to say ... <br>
<br>
thanks for the fix.<br>
<br>
b<br>
<br><br><div><span class="gmail_quote">On 4/14/07, <b class="gmail_sendername"><a href="mailto:andersvi@extern.uio.no">andersvi@extern.uio.no</a></b> <<a href="mailto:andersvi@extern.uio.no">andersvi@extern.uio.no</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">>>>>> "B" == Bill Sack <<a href="mailto:bsack23@gmail.com">
bsack23@gmail.com</a>> writes:<br><br> B> CMN seems to be putting accents above the staff no matter<br> B> what. I tried the test case in cmn1.lisp and there seem to be<br> B> similar problems with little-swell, down-bow, up-bow and some
<br> B> others. Shouldn't the default, for accent at least, be<br> B> opposite the stem direction? i don't recall this being a<br> B> problem before - i wonder if it's recently broken ...<br>
<br> B> bill sack<br><br>Dont know when this crept in, but at least accents should be placed<br>opposite stems. The fix is easy, put a test on<br><br> '(direction-from-note mark note)'<br><br>to check for direction. ie:
<br><br>(defun display-accent (mark note score &optional justifying)<br> (declare (ignore justifying))<br> (let ((dir (direction-from-note mark note)))<br> (show score mark<br> :matrix (translate-matrix<br>
score mark<br>
(+ (box-x0 note) (vis-dx mark) (center note) -.2 (x0 mark))<br>
(+ (box-y0 mark) (vis-dy mark)<br> (if
(eq dir :down)<br> (+
(staff-y0 note) (min (* (- (head-line note) 4) *staff-line-separation*)
-.5))<br> (max
(+ (or (stem-end note) 0) .125)<br>
(+ (staff-y0 note)<br> (*
(max 10 (+ 3 (head-line note)))<br>
*staff-line-separation*)))))))))<br><br><br>But some marks are placed above staff by default. If someone could<br>compile or link to a list of default-placement for the marks (and<br>ideally all marks in accent.lisp as well):
<br><br> staccato<br> accent<br> little-swell<br> edge<br> tenuto<br> marcato<br> down-bow<br> up-bow<br> detache
<br> martele<br> thumb<br> natural-harmonic<br> bartok-pizzicato<br> stopped-note<br> open-note<br> left-hand-pizzicato<br><br>and fill in default direction (ie: opposite-stem/up/down) for the
<br>various marks, it would be a rather small job going through the<br>various #'display-some-mark programs which needs fixing (i think...)<br>Anyone?<br><br>-anders<br></blockquote></div><br>
------=_Part_28322_22903349.1176608473954--