[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Combining notes and articualtions
From: |
Valentin Petzel |
Subject: |
Re: Combining notes and articualtions |
Date: |
Tue, 21 Dec 2021 10:39:01 +0100 |
Hello Jean,
That is not correct. You’re getting this message because you didn’t specify a
direction for the Script. Basically the default direction of most
articulations depends on the stem direction, and thus the calculation of the
direction requires the presence of a proper direction-source, which is then
not given. The calc_direction procedure checks in such a case if the Script
has a stencil, and if so it issues this warning and defaults to direction
down.
So if you do
{ s8_.^\markup blabla }
You do not get any programming error.
Also there is an interesting bug if we have a script without stencil and
another script or TextScript on a Skip. Basically if the direction is 0
calc_direction will only set it to DOWN if it has an stencil. This means that
else the direction is 0 and this then causes a drul array call at 0 some
place.
Cheers,
Valentin
Am Dienstag, 21. Dezember 2021, 08:58:52 CET schrieb Jean Abou Samra:
> Le 21/12/2021 à 01:20, Valentin Petzel a écrit :
> > Hello Jean!
> >
> > That is a nice solution, but it has some issues. For one thing this will
> > case problem if we have a Script on a skip that is used for something
> > like spacing a markup (resulting in a compile error if a skip has both a
> > script and for example a markup). I rather suggest to perform the check
> > at stencil level.
> >
> > Also this will affect each script in the score. I rather suggest to have a
> > function tag each Script to be handled to make sure only these are
> > handled.
>
> Not sure I understand. Currently, any unattached
> script produces programming errors, so they're
> not really useful anyway.
>
> \version "2.22.1"
>
> { s8-.^\markup blabla }
>
> =>
>
> programming error: Grob direction requested while calculation in progress.
>
> continuing, cross fingers
>
> /tmp/frescobaldi-zz7sf813/tmp72xgem_h/document.ly:3:5: programming
> error: script direction not yet known
>
> { s8
>
> -.^\markup blabla }
>
> /tmp/frescobaldi-zz7sf813/tmp72xgem_h/document.ly:3:5: continuing, cross
> fingers
>
> So I didn't bother about other scripts placed on
>
> skips in the score.
>
> Best,
>
> Jean
signature.asc
Description: This is a digitally signed message part.