Valentin Villenave <valen...@villenave.net> writes: > On Thu, Oct 31, 2013 at 6:39 AM, David Kastrup <d...@gnu.org> wrote: >> I'm having a weird time with that report. \\ is called a Voice >> separator, so it separates voices. > > Well, yes :-) > But for example, if you put \\ in a DrumStaff context, it will create > DrumVoices and not spawn brand-new regular Voice and Staff contexts > all of a sudden. I’d expect the Dynamics ingredients (no staff, no > notes, only dynamics and text) to be inherited similarly by all > sub-Voices.
But you did not put \\ in a DynamicsStaff context, so it has no suitable container where it could place separate Dynamics contexts. > It becomes problematic when you want to automatically retrieve all > dynamics from an existing variable (e.g. in a piano part), for example > as follows: > http://services.villenave.net/paste/?7cdda5bc30caac74#0ad4lQfdqTaCnMdmid3ZcfdEJCXefwd/7PdPY6TrtUI= First you have to figure out what you want to happen here. Do you want two Dynamics contexts with different orientation and settings? In that case, you'll need to provide a superior context aliased to Staff where it can anchor those Dynamics contexts. If not, you'll want to filter out the \\ completely. It's probably easiest to do that using \tag and \removeWithTag, but of course it is also reasonably easy to do this using a music function. -- David Kastrup _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond