Added full support for memory-cues

This commit is contained in:
patben8 committed 2026-10-16 14:50:46 +02:00
1 parent 0ced274f73
commit 19a604f730
74 files changed
+2083 -274

No files matched your search

+3 -2
View File
@@ -11,7 +11,7 @@ const TYPE_COLORS: Record<CueType, string> = {
load: '#ffd23d', // yellow
loop: '#3ddc84', // green
}
const MEMORY_COLOR = '#9aa1b2' // gray
const MEMORY_COLOR = '#9aa1b2' // gray: an unknown type
export const CUE_TYPE_LABELS: Record<CueType, string> = {
cue: 'Cue',
@@ -43,7 +43,8 @@ const TYPE_ICONS: Record<CueType, IconName> = {
*/
export function cueColor(cue: CuePoint): string {
if (cue.color) return cue.color
if (cue.role === 'memory') return MEMORY_COLOR
// A memory cue's type colours it just as a hot cue's does (decided
// 2026-10-16) — Traktor draws both by type. Mirrors `core/cue_colors.py`.
return TYPE_COLORS[cue.type] ?? MEMORY_COLOR
}
+2
View File
@@ -143,6 +143,8 @@ export const MOUSE: { title: string; rows: MouseGesture[] }[] = [
{ gesture: 'Click', on: 'stem button', text: 'Mute or unmute that stem' },
{ mod: 'mod', gesture: 'Click', on: 'stem button', text: 'Solo that stem' },
{ gesture: 'Right-click', on: 'pad', text: 'Hotcue type, colour, rename, delete' },
{ gesture: 'Click', on: 'memory cue', text: 'Jump there and make it the CUE point (a memory loop engages)' },
{ gesture: 'Right-click', on: 'memory cue', text: 'Memory cue type, colour, rename, delete' },
],
},
{