mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-12-03 18:32:51 +01:00
Fixed issues with cross-platform memory-cue naming and coloring
This commit is contained in:
1 parent
19a604f730
commit
1f2ca18e8a
5 files changed
+26
-8
No files matched your search
@@ -213,14 +213,15 @@ class RekordboxExporter:
|
||||
for cue in sorted(item.cues.cues, key=lambda c: c.start):
|
||||
if cue.role == "memory" or cue.slot is None:
|
||||
# rekordbox keeps 10 (earliest first; the rest are
|
||||
# dropped, per the lossiness rule). Colour: the memory
|
||||
# palette's nearest swatch, else rekordbox's "unset".
|
||||
# dropped, per the lossiness rule). Colour: what
|
||||
# Konduktor SHOWS — stored, else the type's — as the
|
||||
# nearest of the memory palette's 8, as for a hot cue.
|
||||
if memory >= store.MAX_MEMORY_CUES:
|
||||
continue
|
||||
store.add_memory_cue(
|
||||
track_id, start_sec=cue.start, cue_type=cue.type,
|
||||
length_sec=cue.length, name=cue.name,
|
||||
color_code=memory_palette.nearest_code(cue.color),
|
||||
color_code=memory_palette.nearest_code(effective_color(cue)),
|
||||
)
|
||||
memory += 1
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user