mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Added support for coloring Rekordbox hotcues
This commit is contained in:
1 parent
9be2c029b2
commit
08c53e1150
19 files changed
+337
-45
No files matched your search
@@ -88,6 +88,7 @@ from .schemas import (
|
||||
SourceCandidate,
|
||||
SourceStatus,
|
||||
SetCue,
|
||||
SetCueColor,
|
||||
SetCueType,
|
||||
SetGridLock,
|
||||
Stats,
|
||||
@@ -1151,6 +1152,12 @@ def edit_cue_type(body: SetCueType) -> TrackCues:
|
||||
return require_adapter().set_cue_type(body.track_id, body.slot, body.type)
|
||||
|
||||
|
||||
@app.patch("/api/tracks/cue/color", response_model=TrackCues)
|
||||
def edit_cue_color(body: SetCueColor) -> TrackCues:
|
||||
"""Recolour an existing cue from the platform's palette (None = uncoloured)."""
|
||||
return require_adapter().set_cue_color(body.track_id, body.slot, body.color)
|
||||
|
||||
|
||||
@app.delete("/api/tracks/cue", response_model=TrackCues)
|
||||
def delete_cue(track_id: str, slot: int) -> TrackCues:
|
||||
"""Remove the hotcue in a slot."""
|
||||
|
||||
Reference in new issue
Block a user