Afegir partitures de llistes (cançoners)
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user