Implemented basic track analysis

This commit is contained in:
Ben committed 2026-07-08 13:48:21 +02:00
1 parent 986a2cee54
commit c7169c8bbe
6 files changed
+83 -1

No files matched your search

+3
View File
@@ -271,6 +271,9 @@ export const api = {
track_id: trackId,
max_cues: maxCues,
}),
// Backend detects tempo + first beat: sets BPM, hotcue 1, and grid anchor.
autoGrid: (trackId: string) =>
send<TrackCues>('POST', '/api/tracks/auto-grid', { track_id: trackId }),
setHotcueType: (trackId: string, slot: number, type: number) =>
send<TrackCues>('PATCH', '/api/tracks/hotcue', { track_id: trackId, slot, type }),
deleteHotcue: (trackId: string, slot: number) =>