mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented key setting into adapters
This commit is contained in:
1 parent
b5b3dd04c3
commit
c3571fd054
23 files changed
+656
-101
No files matched your search
@@ -223,6 +223,10 @@ class LibraryAdapter(Protocol):
|
||||
|
||||
# ---- commands: track metadata / art ---------------------------------
|
||||
def set_track_metadata(self, track_id: str, fields: dict) -> Track | None: ...
|
||||
# The musical key, as a Camelot wheel position (1-12) + mode — what key
|
||||
# analysis writes. Each platform renders it in its own notation (and its own
|
||||
# analysed-key field, where it has one). Gated on `tracks.key_writable`.
|
||||
def set_key(self, track_id: str, wheel: int, mode: str) -> Track | None: ...
|
||||
def set_cover_art(self, track_id: str, data: bytes, mime: str) -> None: ...
|
||||
def cover_art(self, track_id: str) -> tuple[bytes, str] | None: ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user