Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace tempo

Index

Functions

set

  • set(bpm: any): { address: string; args: { type: string; value: number }[] }
  • Set the tempo at the beginning of the project

    Parameters

    • bpm: any

      Beats per minute

    Returns { address: string; args: { type: string; value: number }[] }

    • address: string
    • args: { type: string; value: number }[]

setTimeSignature

  • setTimeSignature(upper: number, lower: number, measureNumber?: number): { address: string; args: { type: string; value: number }[] }
  • Create a time signature at the specified time. If there is already a time signature at this time, it will be replaced.

    Parameters

    • upper: number

      top number of the time signature

    • lower: number

      bottom number of the time signature

    • measureNumber: number = 1

      measure number at which to insert the time signature, indexed from 1 (not 0).

    Returns { address: string; args: { type: string; value: number }[] }

    • address: string
    • args: { type: string; value: number }[]

setTimeSignatureSeconds

  • setTimeSignatureSeconds(upper: number, lower: number, timeSeconds?: number): { address: string; args: { type: string; value: number }[] }
  • Create a time signature at the specified time. If there is already a time signature at this time, it will be replaced.

    Parameters

    • upper: number

      top number of the time signature

    • lower: number

      bottom number of the time signature

    • timeSeconds: number = 0

      time at which to insert the time signature

    Returns { address: string; args: { type: string; value: number }[] }

    • address: string
    • args: { type: string; value: number }[]