Enumerations

The following enumerations are available globally.

  • The KeyType enum distinguishes between major and minor keys and produces scale patterns for each.

    See more

    Declaration

    Swift

    public enum KeyType
  • The PitchLetter type is an enum whose raw value is the pitch class. The convention used is Cs for C-sharp, and Eb for E-flat, etc. Note that these are octave-invariant abstractions, like pitch-classes but for more tonal contexts.

    See more

    Declaration

    Swift

    public enum PitchLetter
  • MatrixForm** is an enum to help navigate ToneMatrix objects. The four forms available are p, i, r, and ri, corresponding to Prime, Inversion, Retrograde, and Retrograde-Inversion respectively.

    See more

    Declaration

    Swift

    public enum MatrixForm
  • 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.

    See more

    Declaration

    Swift

    public enum NoteValue: Double
  • The Transformation enum identifies types of neo-riemannian transformations. Available transformations: P, R, L, N, S, H.

    See more

    Declaration

    Swift

    public enum Transformation
  • The ChordQuality enum identifies triadic chord qualities for easy use in transformational contexts.

    See more

    Declaration

    Swift

    public enum ChordQuality