Skip to content

EZ Web Audio / MusicalTimeNotation

Type Alias: MusicalTimeNotation

MusicalTimeNotation = string | number

Defined in: packages/core/src/utils/musical-time.ts:15

Musical time notation type — accepts string notation or numeric beat values.

String notation supports:

  • Note values: '1n' (whole), '2n' (half), '4n' (quarter), '8n', '16n', '32n'
  • Triplets: '4t', '8t', '16t' (2/3 of the base note value)
  • Dotted notes: '4n.', '8n.' (1.5x the base note value)
  • Measures: '1m', '2m', '4m' (beatsPerBar * count)
  • Bar:beat:tick: '2:1:0' (positional, 1-indexed bar/beat, 0-indexed tick)

Numeric values are treated as beat counts and passed through unchanged.