Zongzi.Score.TimeSig (zongzi v0.3.0)

Copy Markdown

Domain model for time signature.

Summary

Types

Number of bars

t()

Time signature

Event with time signature update

Functions

Returns the total tick length within a specific bar.

Types

bar()

@type bar() :: pos_integer()

Number of bars

compound()

@type compound() ::
  {:compound, groupings :: [pos_integer()], denominator :: pos_integer()}

free()

@type free() :: :san

standard()

@type standard() ::
  {numerator :: pos_integer(), denominator :: pos_integer()}
  | {:standard, numerator :: pos_integer(), denominator :: pos_integer()}

t()

@type t() :: standard() | compound() | free()

Time signature

time_sig_event()

@type time_sig_event() :: {bar(), t()}

Event with time signature update

time_sig_events()

@type time_sig_events() ::
  [time_sig_event()] | {[time_sig_event()], Zongzi.Score.Record.end_position()}

Functions

ticks_per_bar(arg1, tpqn)

Returns the total tick length within a specific bar.