Advertisement
donarturo1991

Setting up each tie in chord

Apr 16th, 2024
663
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 1.01 KB | Source Code | 0 0
  1. \version "2.24.3"
  2. \language "deutsch"
  3.  
  4. tieColumnShapes =
  5.   #(define-music-function
  6.     (offsets-list)
  7.     (list?)
  8.     #{
  9.     \once \override TieColumn.ties =
  10.         #(lambda (grob)
  11.            (for-each (lambda (tie clr offsets)
  12.                        (ly:grob-set-property! tie 'control-points offsets)
  13.                        (ly:grob-set-property! tie 'color clr)
  14.                      )
  15.            (ly:grob-array->list (ly:grob-object grob 'ties))
  16.            (circular-list red green)
  17.            offsets-list
  18.            )
  19.          )
  20.     #}
  21.     )
  22.  
  23. \header {
  24.   % Usuń domyślną stopkę LilyPonda
  25.   tagline = ##f
  26. }
  27.  
  28. \paper {
  29.   #(set-paper-size "a4")
  30. }
  31.  
  32. \layout {
  33.  
  34. }
  35.  
  36.  
  37. \score {
  38. \relative c {
  39.   \clef bass
  40.   \key c \major
  41.   \time 4/4
  42.  
  43.    r16
  44.    \tieColumnShapes #'(
  45.         ((0 . 0) (0 . 1) (0 . 0) (0 . 0))
  46.         ((0 . 0) (0 . 0) (5 . 0) (0 . 0))
  47.         ((0 . 0) (0 . 0) (0 . 0) (0 . 0))
  48.         )
  49.     <es ~ ges ~ f' ~>8.
  50.     <es ges f'>4
  51.    
  52.     ~ ~ ~
  53.     <es ges f'>2
  54. }
  55. }
  56.  
  57.  
Tags: lilypond
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement