[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Align above "current" staff
From: |
David Kastrup |
Subject: |
Re: Align above "current" staff |
Date: |
Sat, 07 Jul 2018 16:15:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Urs Liska <address@hidden> writes:
> Hi all,
>
> I want a music function to produce an ossia staff. The NR states that
> in order to place that above alignAboveContext should be used:
>
> \new Staff = "main" \relative {
> c''4 b d c
> <<
> { c4 b d c }
>
> \new Staff \with {
> \remove "Time_signature_engraver"
> alignAboveContext = #"main"
> \magnifyStaff #2/3
> firstClef = ##f
> }
> { e4 d f e }
> >>
> c4 b c2
> }
>
> But is that also possible when I (or my music-function) doesn't know
> the staff's name
You can use \applyContext for getting it before you initiate your own
(hopefully uniquely named) Staff.
--
David Kastrup