NoteValue

public struct NoteValue: Codable

Defines the duration of a note beatwise.

  • Type that represents the duration of note.

    Declaration

    Swift

    public var type: NoteValueType
  • Modifier for NoteType that modifies the duration.

    Declaration

    Swift

    public var modifier: NoteModifier
  • Initilize the NoteValue with its type and optional modifier.

    Declaration

    Swift

    public init(type: NoteValueType, modifier: NoteModifier = .default)

    Parameters

    type

    Type of note value that represents note duration.

    modifier

    Modifier of note value. Defaults default.