NoteValue

public enum NoteValue: Double

The NoteValue enum type, with a Double rawValue, consists of scaling factors for use as standard durations. Plugged into the equation as described below, they will yield approx. durations (in seconds).

seconds = 60/(tempo * (noteValue.rawValue/4))

Note that the convention used is n_4 for a quarter-note, t_8 for a triplet eighth-note, d_16 for a dotted sixteenth-note, etc.

  • d_1

    Undocumented

    Declaration

    Swift

    case d_1 = 0.6666666666666667,
  • d_2

    Undocumented

    Declaration

    Swift

    d_2 = 1.3333333333333333,
  • d_4

    Undocumented

    Declaration

    Swift

    d_4 = 2.6666666666666667,
  • d_8

    Undocumented

    Declaration

    Swift

    d_8 = 5.3333333333333333,
  • Undocumented

    Declaration

    Swift

    d_16 = 10.666666666666667,
  • Undocumented

    Declaration

    Swift

    d_32 = 21.333333333333333,
  • Undocumented

    Declaration

    Swift

    d_64 = 42.666666666666667,
  • Undocumented

    Declaration

    Swift

    d_128 = 85.33333333333333