Class Sequence

This class is entity for sequence that has musical note.

Constructors

  • Parameters

    • params: {
          duration: number;
          frequencies: number[];
          id: string;
          indexes: number[];
          note: string;
          start: number;
          stop: number;
      }
      • duration: number
      • frequencies: number[]
      • id: string
      • indexes: number[]
      • note: string
      • start: number
      • stop: number

    Returns Sequence

Accessors

  • get duration(): number
  • This method is getter for duration,

    Returns number

  • get frequencies(): number[]
  • This method is getter for array that contains frequency.

    Returns number[]

  • get indexes(): number[]
  • This method is getter for array that contains index that corresponds to 12 equal temperament.

    Returns number[]

  • get note(): string
  • This method is getter for musical note as MML token.

    Returns string

  • get start(): number
  • This method is getter for start time.

    Returns number

  • get stop(): number
  • This method is getter for stop time.

    Returns number

Methods

  • This method concatenates sequence in case of tie.

    Parameters

    • sequence: Sequence

      This argument is instance of Sequence.

    Returns Sequence

    Return value is new instance of Sequence that concatenates previous sequence.

  • This method returns fields that Sequence has as JSON.

    Returns string