Hi, thank you, now it works. I'm now trying to add labels and flip the bracket direction, and I understand that I need to modify the HorizontalBracket.direction and the HorizontalBracketText.text. My knowledge of Scheme is so limited that I wouldn't know how to add this to your code without seeing an example, but in general, what would be the best way to do this kind of changes in Denemo (adding a new command vs. changing the Scheme code for that specific case, etc.)? Thank you in advance for your help, Lib
On Wed, 20 Oct 2021 at 23:52, Richard Shann <rich...@rshann.plus.com> wrote: > > 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 <rich...@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 >