denemo-devel
[Top][All Lists]
Advanced

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

Re: Analysis brackets (with labels) in Denemo


From: Richard Shann
Subject: Re: Analysis brackets (with labels) in Denemo
Date: Wed, 20 Oct 2021 21:50:29 +0100

On Wed, 2021-10-20 at 19:12 +0300, Lib Lists wrote:
> Thank you for the quick reply!
> I get an error message when I execute your script,

The problem is that the email has added a line-feed at the hyphen

(d-DirectivePut-
standalone-postfix tag "\\startGroup")

should not split d-DirectivePut-standalone-postfix
up into two words. I told my email client to keep the formatting, but
on receipt it had been split up. I should use attachments...

Richard


>  but your example
> works perfectly, so there's clearly a mistake from my side. I'll test
> more and come back if I don't find the (probably quite obvious)
> solution.
> Cheers,
> Lib
> 
> On Wed, 20 Oct 2021 at 17:38, Richard Shann <richard@rshann.plus.com>
> wrote:
> > 
> > On Wed, 2021-10-20 at 16:56 +0300, Lib Lists wrote:
> > > Hello,
> > > is there a way to insert analysis brackets (with or without
> > > labels)
> > > in
> > > Denemo? If it already exists, I wasn't able to find the command.
> > 
> > Well I see it is documented in LilyPond:
> > 
> > https://lilypond.org/doc/v2.21/Documentation/notation/outside-the-s
> > taff#analysis-brackets
> > 
> > So to do this in Denemo you need to insert \startGroup and
> > \stopGroup
> > between the relevant notes. You also need to include a special
> > engraver, so putting these two together gives two bits of Scheme:
> > 
> > ;start analysis bracket
> > (let ((tag "Analysis"))
> >  (d-DirectivePut-
> > standalone-postfix tag "\\startGroup")
> >  (d-DirectivePut-layout-postfix
> > "Analysis" "  \\context {\\Voice  \\consists
> > \"Horizontal_bracket_engraver\" }"))
> > 
> > ;stop analysis bracket
> > (let ((tag "Analysis"))
> >  (d-DirectivePut-standalone-postfix tag "\\stopGroup"))
> > 
> > If you put these one at a time into the Scheme window and create a
> > palette button from them then you can insert your analysis brackets
> > with those. I've attached an example. Of course, it could be made a
> > bit
> > more swish by adding stuff to display more nicely...
> > 
> > If you need help with any of that, please ask.
> > 
> > Richard



reply via email to

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