Afegir partitures de llistes (cançoners)

This commit is contained in:
marc
2025-12-21 15:40:11 +01:00
parent 089e61fb0b
commit ac79785cf0
16 changed files with 238 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
from folkugat_web.model.lilypond.score import LilypondSet, LilypondTune
from folkugat_web.model.lilypond.score import LilypondPlaylist, LilypondSet, LilypondTune
from folkugat_web.templates import templates
SCORE_BEGINNING = "% --- SCORE BEGINNING --- %"
@@ -23,3 +23,10 @@ def set_source(tune_set: LilypondSet) -> str:
score_beginning=SCORE_BEGINNING,
tune_set=tune_set,
)
def playlist_source(playlist: LilypondPlaylist) -> str:
return templates.get_template("lilypond/playlist.ly").render(
score_beginning=SCORE_BEGINNING,
playlist=playlist,
)