Afegir partitures de llistes (cançoners)

This commit is contained in:
marc committed 2025-12-21 15:40:21 +01:00
1 parent 089e61fb0b
commit ac79785cf0
16 files changed
+238 -6

No files matched your search

+12
View File
@@ -89,3 +89,15 @@ class LilypondSet:
self.title.encode(),
*(tune.hash() for tune in self.tunes),
)
@dataclasses.dataclass
class LilypondPlaylist:
title: str
sets: list[LilypondSet]
def hash(self) -> bytes:
return get_hash(
self.title.encode(),
*(lilypond_set.hash() for lilypond_set in self.sets),
)