mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Added support for flexible beatgrids
This commit is contained in:
1 parent
3f51444e2a
commit
dd97f27ac7
20 files changed
+2176
-346
No files matched your search
@@ -211,11 +211,19 @@ export const TRACK_COLUMNS: ColumnDef<Track, any>[] = [
|
||||
size: 72,
|
||||
cell: (c) => {
|
||||
const n = c.getValue()
|
||||
const grid = c.row.original.has_grid
|
||||
const markers = c.row.original.grid_markers
|
||||
// Gold marks a flexible (multi-tempo) grid, mint an ordinary constant one.
|
||||
return (
|
||||
<span className="flex items-center gap-1 tabular-nums">
|
||||
<span className={n > 0 ? 'text-text' : 'text-faint'}>{n}</span>
|
||||
{grid && <span className="text-[10px] text-mint" title="Beatgrid analyzed">⊞</span>}
|
||||
{c.row.original.has_grid && (
|
||||
<span
|
||||
className={markers > 1 ? 'text-[10px] text-gold' : 'text-[10px] text-mint'}
|
||||
title={markers > 1 ? `Flexible beatgrid (${markers} markers)` : 'Beatgrid analyzed'}
|
||||
>
|
||||
⊞
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user