From 3b88471ab8ed28ff66657957c2a3f3882cc6aeac Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 1 Jun 2022 21:41:57 -0300 Subject: Generate LilyPond files in dynamic.mk --- music/choro-da-saudade.ly | 6 +++--- music/common.ly | 15 --------------- music/common.ly.include | 15 +++++++++++++++ music/dengoso.ly | 6 +++--- music/guitar.ly | 33 --------------------------------- music/guitar.ly.include | 33 +++++++++++++++++++++++++++++++++ music/marcha-dos-marinheiros.ly | 6 +++--- 7 files changed, 57 insertions(+), 57 deletions(-) delete mode 100644 music/common.ly create mode 100644 music/common.ly.include delete mode 100644 music/guitar.ly create mode 100644 music/guitar.ly.include (limited to 'music') diff --git a/music/choro-da-saudade.ly b/music/choro-da-saudade.ly index f8fe7ff..2f6e686 100644 --- a/music/choro-da-saudade.ly +++ b/music/choro-da-saudade.ly @@ -2,8 +2,8 @@ \pointAndClickOff #(ly:set-option 'embed-source-code #t) -\include "common.ly" -\include "guitar.ly" +\include "common.ly.include" +\include "guitar.ly.include" \header { title = "Choro da Saudade" @@ -230,4 +230,4 @@ staff = \new Staff << \score { \unfoldRepeats \staff \midi { } -} \ No newline at end of file +} diff --git a/music/common.ly b/music/common.ly deleted file mode 100644 index b6ba93a..0000000 --- a/music/common.ly +++ /dev/null @@ -1,15 +0,0 @@ -copyright = \markup { - \with-url #"https://creativecommons.org/licenses/by-sa/4.0/" \line { - CC BY-SA 4.0 - } -} -tagline = \markup { - \with-url #"https://euandre.org/music.html" \line { - euandre.org/music.html - } -} - -rall = { - \override TextSpanner.bound-details.left.text = "rall." - \override TextSpanner.bound-details.right.text = "a tempo" -} diff --git a/music/common.ly.include b/music/common.ly.include new file mode 100644 index 0000000..b6ba93a --- /dev/null +++ b/music/common.ly.include @@ -0,0 +1,15 @@ +copyright = \markup { + \with-url #"https://creativecommons.org/licenses/by-sa/4.0/" \line { + CC BY-SA 4.0 + } +} +tagline = \markup { + \with-url #"https://euandre.org/music.html" \line { + euandre.org/music.html + } +} + +rall = { + \override TextSpanner.bound-details.left.text = "rall." + \override TextSpanner.bound-details.right.text = "a tempo" +} diff --git a/music/dengoso.ly b/music/dengoso.ly index e771bd4..b5a3fae 100644 --- a/music/dengoso.ly +++ b/music/dengoso.ly @@ -2,8 +2,8 @@ \pointAndClickOff #(ly:set-option 'embed-source-code #t) -\include "common.ly" -\include "guitar.ly" +\include "common.ly.include" +\include "guitar.ly.include" \header { title = "Dengoso" @@ -307,4 +307,4 @@ staff = \new Staff << \score { \unfoldRepeats \staff \midi { } -} \ No newline at end of file +} diff --git a/music/guitar.ly b/music/guitar.ly deleted file mode 100644 index 592ad5c..0000000 --- a/music/guitar.ly +++ /dev/null @@ -1,33 +0,0 @@ - -pestanaPrivate = \markup { - \fontsize #-2 - \combine - \roman C - \translate #'(0.6 . -0.4) \draw-line #'(0 . 2.0) -} - -pestanaSingle = - #(define-music-function (fret-number music) (string? ly:music?) - #{ - $music ^\markup { \pestanaPrivate \fontsize #-2 $fret-number } - #}) - -pestanaSpan = - #(define-music-function (fret-number) (string?) - #{ - \once \override TextSpanner.font-shape = #'upright - \once \override TextSpanner.style = #'solid - \once \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER - \once \override TextSpanner.bound-details.right.text = \markup { \draw-line #'(0 . -.5) } - \once \override TextSpanner.bound-details.left.text = \markup { \pestanaPrivate \fontsize #-2 $fret-number } - #}) - -corda = - #(define-music-function (string-number) (string?) - #{ - \once \override TextSpanner.style = #'solid - \once \override TextSpanner.font-size = #-5 - \once \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER - \once \override TextSpanner.bound-details.right.text = \markup { \draw-line #'( 0 . -.5) } - \once \override TextSpanner.bound-details.left.text = \markup { \circle \number $string-number } - #}) diff --git a/music/guitar.ly.include b/music/guitar.ly.include new file mode 100644 index 0000000..592ad5c --- /dev/null +++ b/music/guitar.ly.include @@ -0,0 +1,33 @@ + +pestanaPrivate = \markup { + \fontsize #-2 + \combine + \roman C + \translate #'(0.6 . -0.4) \draw-line #'(0 . 2.0) +} + +pestanaSingle = + #(define-music-function (fret-number music) (string? ly:music?) + #{ + $music ^\markup { \pestanaPrivate \fontsize #-2 $fret-number } + #}) + +pestanaSpan = + #(define-music-function (fret-number) (string?) + #{ + \once \override TextSpanner.font-shape = #'upright + \once \override TextSpanner.style = #'solid + \once \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER + \once \override TextSpanner.bound-details.right.text = \markup { \draw-line #'(0 . -.5) } + \once \override TextSpanner.bound-details.left.text = \markup { \pestanaPrivate \fontsize #-2 $fret-number } + #}) + +corda = + #(define-music-function (string-number) (string?) + #{ + \once \override TextSpanner.style = #'solid + \once \override TextSpanner.font-size = #-5 + \once \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER + \once \override TextSpanner.bound-details.right.text = \markup { \draw-line #'( 0 . -.5) } + \once \override TextSpanner.bound-details.left.text = \markup { \circle \number $string-number } + #}) diff --git a/music/marcha-dos-marinheiros.ly b/music/marcha-dos-marinheiros.ly index 66830f4..48cc1c6 100644 --- a/music/marcha-dos-marinheiros.ly +++ b/music/marcha-dos-marinheiros.ly @@ -2,8 +2,8 @@ \pointAndClickOff #(ly:set-option 'embed-source-code #t) -\include "common.ly" -\include "guitar.ly" +\include "common.ly.include" +\include "guitar.ly.include" \header { title = "Marcha dos Marinheiros" @@ -75,4 +75,4 @@ staff = \new Staff << \score { \unfoldRepeats \staff \midi { } -} \ No newline at end of file +} -- cgit v1.2.3