lilypond-user
[Top][All Lists]
Advanced

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

Re: help!


From: Виноградов Юрий
Subject: Re: help!
Date: Tue, 01 Feb 2022 20:57:17 +0300

Thanks. Everything worked out.
 
 
С уважением,
Виноградов Юрий.
 
 
 
01.02.2022, 20:34, "Valentin Petzel" <valentin@petzel.at>:

Thank you. As it seems prior to 2.23 the Volta Bracket engraver would override
the text property even if you had manually specified this. So we can either
directly modify this in the repeat command (which I consider a bit ugly), or
try some workaround like this: (Basically this checks if details.text is set
and sets text to details.text if so before calculating the stencil):

\version "2.22"

{
  \override Score.VoltaBracket.stencil =
  #(lambda (grob)
     (let* ((det (ly:grob-property grob 'details))
            (det-text (assoc-get 'text det #f)))
       (if (markup? det-text)
           (ly:grob-set-property! grob 'text det-text))
       (ly:volta-bracket-interface::print grob)))
  \repeat volta 2 {
    c' d' e' f'
  }
  \alternative {
    {
      \once\override Score.VoltaBracket.details.text = \markup\smaller"bla
bla"
      \once\override Score.VoltaBracket.shorten-pair = #'(0.1 . 1.1)
      g' a' b' c'' \mark\markup\smaller\smaller\musicglyph #"scripts.segno"
    }
    {
      \once\override Score.VoltaBracket.details.text = \markup\smaller"blu
blu"
      \once\override Score.VoltaBracket.shorten-pair = #'(2.2 . -0.1)
      c'1
    }
  }
}


Am Dienstag, 1. Februar 2022, 17:18:41 CET schrieb Виноградов Юрий:

 Okey!
  
 \version "2.22.0"
  
  
 С уважением,
 Виноградов Юрий.
  
  
  
 01.02.2022, 19:15, "Valentin Petzel" <valentin@petzel.at>:
 Your mailing programm might have an option to reply to all recipients, or
 you can simply add lilypond-user@gnu.org to the recipients.
 
 For finding the problem: What Lilypond version are you on?
 
 Cheers,
 Valentin
  
 
 01.02.2022 16:52:13 Виноградов Юрий <hagrid.vgs@yandex.ru>:
 
 Hello. Here is your code. He does not write a text in volta. Check with
 yourself. I copy it completely as it is. I'm sorry, I didn't understand
 how I could do this - Please keep lust in the addresses.
 {
   \repeat volta 2 {
     c' d' e' f'
   }
   \alternative {
     {
       \once\override Score.VoltaBracket.text = \markup\smaller"bla bla"
       \once\override Score.VoltaBracket.shorten-pair = #'(0.1 . 1.1)
       g' a' b' c'' \mark\markup { \smaller\smaller\musicglyph
 #"scripts.segno" } }
     {
       \once\override Score.VoltaBracket.text = \markup\smaller"blu blu"
       \once\override Score.VoltaBracket.shorten-pair = #'(2.2 . -0.1)
       c'1
     }
   }
 }
  
 С уважением,
 Виноградов Юрий.
  
  
  
 01.02.2022, 18:29, "Valentin Petzel" <valentin@petzel.at>:
 Please keep the list in the addressates.
 
 VoltaBracket should not have a space in between. If you do have that, can
 you tell if this outputs ans error?
 
 Valentin
  
 
 01.02.2022 15:58:25 Виноградов Юрий <hagrid.vgs@yandex.ru>:
 
 Hello. I figured out the sign. It helped. And that part of the code "
 \once\override Score.Volta Bracket.text = \markup\smaller"bla bla" " This
 part of the code does not work. You can offer another option. Thank you for
 your help!
  
 С уважением,
 Виноградов Юрий.
  
  
  
 01.02.2022, 11:52, "Valentin Petzel" <valentin@petzel.at>:
 
 Also if you want to get the text in the brackets you can do it like this:
 
 {
   \repeat volta 2 {
     c' d' e' f'
   }
   \alternative {
     {
       \once\override Score.VoltaBracket.text = \markup\smaller"bla bla"
       \once\override Score.VoltaBracket.shorten-pair = #'(0.1 . 1.1)
       g' a' b' c'' \mark\markup\smaller\smaller\musicglyph #"scripts.segno"
     }
     {
       \once\override Score.VoltaBracket.text = \markup\smaller"blu blu"
       \once\override Score.VoltaBracket.shorten-pair = #'(2.2 . -0.1)
       c'1
     }
   }
 }
 
 Cheers,
 Valentin
 
 Am Dienstag, 1. Februar 2022, 09:24:21 CET schrieb Valentin Petzel:
 
  Hello Виноградов,
  
  Maybe this could do the trick?
  
  {
    \repeat volta 2 {
      c' d' e' f'
    }
    \alternative {
      {
        \once\override Score.VoltaBracket.shorten-pair = #'(0.1 . 1.1)
        g' a' b' c'' \mark\markup\smaller\musicglyph #"scripts.segno"
      }
      {
        \once\override Score.VoltaBracket.shorten-pair = #'(2.2 . -0.1)
        c'1
      }
    }
  }
  
  Cheers,
  Valentin
  
  Am Montag, 31. Jänner 2022, 16:55:43 CET schrieb Виноградов Юрий:
  > Hello. Help please. I have two volts of repetition. You need to put a
  > segno
  > sign between them. Example on the screenshot. I am grateful to you in
  > advance.
  >
  >
  > С уважением,
  > Виноградов Юрий.

reply via email to

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