[Top][All Lists]

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

Re: Dynamics context spawns additional contexts when polyphonic

From: David Kastrup
Subject: Re: Dynamics context spawns additional contexts when polyphonic
Date: Thu, 31 Oct 2013 12:24:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Valentin Villenave <address@hidden> writes:

> On Thu, Oct 31, 2013 at 6:39 AM, David Kastrup <address@hidden> 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

reply via email to

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