Afegir partitures de llistes (cançoners)
This commit is contained in:
@@ -653,6 +653,10 @@ video {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.mb-6 {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.ml-2 {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<div id="llista-name">
|
||||
{% include "fragments/playlist/name.html" %}
|
||||
</div>
|
||||
{% include "fragments/playlist/score.html" %}
|
||||
<div class="text-left">
|
||||
{% set playlist_id = playlist.id %}
|
||||
{% set playlist = playlist %}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{% if playlist.playlist_score is not none and playlist.playlist_score.pdf_url is not none %}
|
||||
<div class="flex flex-col items-center mt-4 mb-6">
|
||||
<div class="bg-beige border rounded border-beige m-2 p-2">
|
||||
<a href="{{ playlist.playlist_score.pdf_url }}" target="_blank" class="text-white">
|
||||
Obre en PDF
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
49
folkugat_web/assets/templates/lilypond/playlist.ly
Normal file
49
folkugat_web/assets/templates/lilypond/playlist.ly
Normal file
@@ -0,0 +1,49 @@
|
||||
{{ score_beginning }}
|
||||
\version "2.24.4"
|
||||
|
||||
{% include "lilypond/lib.ly" %}
|
||||
|
||||
\book {
|
||||
\paper {
|
||||
top-margin = 10
|
||||
left-margin = 15
|
||||
right-margin = 15
|
||||
ragged-bottom = ##f
|
||||
|
||||
scoreTitleMarkup = \markup {
|
||||
\center-column {
|
||||
\fontsize #3 \bold \fromproperty #'header:piece
|
||||
\fill-line {
|
||||
\null
|
||||
\right-column {
|
||||
\fromproperty #'header:composer
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
\header {
|
||||
title = \markup { "{{ playlist.title | safe }}" }
|
||||
tagline = "Partitura generada amb LilyPond"
|
||||
copyright = "Folkugat"
|
||||
}
|
||||
|
||||
{% for set in playlist.sets %}
|
||||
{% if set.tunes|length > 1 %}
|
||||
\markup {
|
||||
\vspace #2
|
||||
\fill-line {
|
||||
\center-column {
|
||||
\fontsize #2 \bold "{{ set.title | safe }}"
|
||||
}
|
||||
}
|
||||
}
|
||||
\noPageBreak
|
||||
{% endif %}
|
||||
|
||||
{% for tune in set.tunes %}
|
||||
{% include "lilypond/tune_in_set.ly" %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
}
|
||||
@@ -9,6 +9,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
\noPageBreak
|
||||
{% if tune.score_source is not none %}
|
||||
\score {
|
||||
\language "english"
|
||||
|
||||
Reference in New Issue
Block a user