Structures

The following structures are available globally.

  • Represents scale by the intervals between note sequences.

    See more

    Declaration

    Swift

    public struct ScaleType: Equatable
  • Scale object with ScaleType and scale’s key of NoteType. Could calculate note sequences in [Note] format.

    See more

    Declaration

    Swift

    public struct Scale: Equatable, Codable
  • Key

    Represents the keys that notes and pitches are based on.

    See more

    Declaration

    Swift

    public struct Key: Codable, Equatable, Hashable, ExpressibleByStringLiteral, CustomStringConvertible
  • A struct for storing custom progressions.

    See more

    Declaration

    Swift

    public struct CustomChordProgression: Codable
  • Chord progression enum that you can create hard-coded and custom progressions.

    See more

    Declaration

    Swift

    public struct ChordProgression: CustomStringConvertible, Codable, Equatable
  • Pitch object with a Key and an octave. Could be initilized with MIDI note number and preferred accidental type.

    See more

    Declaration

    Swift

    public struct Pitch: RawRepresentable, Codable, Equatable, Comparable, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, CustomStringConvertible
  • Defines the duration of a note beatwise.

    See more

    Declaration

    Swift

    public struct NoteValue: Codable
  • Defines the interval between Pitches in semitones.

    See more

    Declaration

    Swift

    public struct Interval: Codable, Equatable, CustomStringConvertible
  • Defiens sixth chords. If you add the sixth note, you have sixth chord.

    See more

    Declaration

    Swift

    public struct ChordSixthType: ChordPart
  • Defines extended chords. If you add one octave up of second, fourth or sixth notes of the chord, you have extended chords. You can combine extended chords more than one in a chord.

    See more

    Declaration

    Swift

    public struct ChordExtensionType: ChordPart
  • Defines the tempo of the music with beats per second and time signature.

    See more

    Declaration

    Swift

    public struct Tempo: Codable
  • Defines how many beats in a measure with which note value.

    See more

    Declaration

    Swift

    public struct TimeSignature: Codable