style: clarify tempo unit labels to show millisecond durations
Update musical note unit labels to include "(ms)" suffix to make it clear that values represent durations in milliseconds, not counts. Before: "120 BPM = 2,000 Whole Notes" (confusing - sounds like a count) After: "120 BPM = 2,000 Whole Note (ms)" (clear - it's a duration) Changes: - All note units now show "(ms)" in both singular and plural forms - Triplet labels shortened for brevity (e.g., "Quarter Triplet (ms)") - Makes the conversion meaning immediately clear to users 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
26
lib/tempo.ts
26
lib/tempo.ts
@@ -23,74 +23,74 @@ export const tempoMeasure = {
|
||||
|
||||
// Whole note (4 beats) = 240000 / BPM
|
||||
'whole': {
|
||||
name: { singular: 'Whole Note', plural: 'Whole Notes' },
|
||||
name: { singular: 'Whole Note (ms)', plural: 'Whole Note (ms)' },
|
||||
to_anchor: 240000
|
||||
},
|
||||
|
||||
// Half note (2 beats) = 120000 / BPM
|
||||
'half': {
|
||||
name: { singular: 'Half Note', plural: 'Half Notes' },
|
||||
name: { singular: 'Half Note (ms)', plural: 'Half Note (ms)' },
|
||||
to_anchor: 120000
|
||||
},
|
||||
|
||||
// Quarter note (1 beat) = 60000 / BPM
|
||||
'quarter': {
|
||||
name: { singular: 'Quarter Note', plural: 'Quarter Notes' },
|
||||
name: { singular: 'Quarter Note (ms)', plural: 'Quarter Note (ms)' },
|
||||
to_anchor: 60000
|
||||
},
|
||||
|
||||
// Eighth note (0.5 beats) = 30000 / BPM
|
||||
'eighth': {
|
||||
name: { singular: 'Eighth Note', plural: 'Eighth Notes' },
|
||||
name: { singular: 'Eighth Note (ms)', plural: 'Eighth Note (ms)' },
|
||||
to_anchor: 30000
|
||||
},
|
||||
|
||||
// Sixteenth note (0.25 beats) = 15000 / BPM
|
||||
'sixteenth': {
|
||||
name: { singular: 'Sixteenth Note', plural: 'Sixteenth Notes' },
|
||||
name: { singular: 'Sixteenth Note (ms)', plural: 'Sixteenth Note (ms)' },
|
||||
to_anchor: 15000
|
||||
},
|
||||
|
||||
// Thirty-second note (0.125 beats) = 7500 / BPM
|
||||
'thirty-second': {
|
||||
name: { singular: 'Thirty-Second Note', plural: 'Thirty-Second Notes' },
|
||||
name: { singular: 'Thirty-Second Note (ms)', plural: 'Thirty-Second Note (ms)' },
|
||||
to_anchor: 7500
|
||||
},
|
||||
|
||||
// Dotted notes (1.5x the duration)
|
||||
'dotted-half': {
|
||||
name: { singular: 'Dotted Half Note', plural: 'Dotted Half Notes' },
|
||||
name: { singular: 'Dotted Half Note (ms)', plural: 'Dotted Half Note (ms)' },
|
||||
to_anchor: 180000 // 3 beats
|
||||
},
|
||||
|
||||
'dotted-quarter': {
|
||||
name: { singular: 'Dotted Quarter Note', plural: 'Dotted Quarter Notes' },
|
||||
name: { singular: 'Dotted Quarter Note (ms)', plural: 'Dotted Quarter Note (ms)' },
|
||||
to_anchor: 90000 // 1.5 beats
|
||||
},
|
||||
|
||||
'dotted-eighth': {
|
||||
name: { singular: 'Dotted Eighth Note', plural: 'Dotted Eighth Notes' },
|
||||
name: { singular: 'Dotted Eighth Note (ms)', plural: 'Dotted Eighth Note (ms)' },
|
||||
to_anchor: 45000 // 0.75 beats
|
||||
},
|
||||
|
||||
'dotted-sixteenth': {
|
||||
name: { singular: 'Dotted Sixteenth Note', plural: 'Dotted Sixteenth Notes' },
|
||||
name: { singular: 'Dotted Sixteenth Note (ms)', plural: 'Dotted Sixteenth Note (ms)' },
|
||||
to_anchor: 22500 // 0.375 beats
|
||||
},
|
||||
|
||||
// Triplet notes (2/3 of the duration)
|
||||
'quarter-triplet': {
|
||||
name: { singular: 'Quarter Note Triplet', plural: 'Quarter Note Triplets' },
|
||||
name: { singular: 'Quarter Triplet (ms)', plural: 'Quarter Triplet (ms)' },
|
||||
to_anchor: 40000 // 2/3 beat
|
||||
},
|
||||
|
||||
'eighth-triplet': {
|
||||
name: { singular: 'Eighth Note Triplet', plural: 'Eighth Note Triplets' },
|
||||
name: { singular: 'Eighth Triplet (ms)', plural: 'Eighth Triplet (ms)' },
|
||||
to_anchor: 20000 // 1/3 beat
|
||||
},
|
||||
|
||||
'sixteenth-triplet': {
|
||||
name: { singular: 'Sixteenth Note Triplet', plural: 'Sixteenth Note Triplets' },
|
||||
name: { singular: 'Sixteenth Triplet (ms)', plural: 'Sixteenth Triplet (ms)' },
|
||||
to_anchor: 10000 // 1/6 beat
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user