lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pushing items "through" or "beyond" other contexts


From: Simon Albrecht
Subject: Re: pushing items "through" or "beyond" other contexts
Date: Sat, 03 Jun 2017 17:58:30 +0200

Hi Kieren,
 
here you are with an elaboration: <http://lilybin.com/f2e2fx/1>
BTW, your snippet would have been more compilable without the typographical quotes (it seems your mail client inserts them - can you send as plain text?)
 
Best, Simon



Am 02-Jun-2017 21:53:59 +0200 schrieb address@hidden:

Hi,

> Couldn't you do \new Dynamics { \alignAboveContext = "upper" s4/p }?

No. =\

p.s. I’ve now included a compilable snippet, if anyone wants to try stuff out.

Thanks,
Kieren.

%%% SNIPPET BEGINS
\version "2.19.61"

upperStuff = {
c''2 d''4( c'')
}

centredDynamics = {
s2\f
% I want the following dynamic above the upper staff.
% Currently, I have to use extra-offset (or similar)
\once \override DynamicText.extra-offset = #'(0 . 8.5)
s2\p
}

lowerStuff = {
\clef bass
c1
}

\new PianoStaff <<
\new Staff = “upper” \upperStuff
\new Dynamics = “dyn” \centredDynamics
\new Staff = “lower” \lowerStuff
>>
%%% SNIPPET ENDS

>
> On 06/02/2017 09:00 PM, Kieren MacMillan wrote:
>> Hello all,
>> No compilable code/snippet here… just a thought-experiment/question for discussion.
>> Is there any way (currently possible, or relatively easily coded) that items in one context can be independently pushed “through” or “beyond” other contexts?
>> As one (obvious) example, say I start with
>> \new PianoStaff <<
>> \new Staff = “upper” \upperStuff
>> \new Dynamics = “dyn” \centredDynamics
>> \new Staff = “lower” \lowerStuff
>>>>
>> Now let’s say I want one particular dynamic (in the centred context) to appear *above* the upper staff. I would love to write
>> \once \alignAboveContext = “upper” s4\p
>> or whatever. (Right now, I just use the edition-engraver and an extra-offset tweak.)
>> Thoughts?
>> Thanks,
>> Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]