Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace audioclip

Index

Functions

fadeIn

  • fadeIn(seconds: number): { address: string; args: any[] }
  • Set the fade in time in seconds. No effect if there is no selected clip, or the selected clip is a midi clip.

    Parameters

    • seconds: number

      fade in time in seconds

    Returns { address: string; args: any[] }

    • address: string
    • args: any[]

fadeInOutSeconds

  • fadeInOutSeconds(fadeInSeconds: number | undefined, fadeOutSeconds: number | undefined): { address: string; args: any[] }
  • Set a fade in and fade out. No effect if there is no selected clip, or the selected clip is a midi clip.

    Parameters

    • fadeInSeconds: number | undefined

      fade in time in seconds

    • fadeOutSeconds: number | undefined

      fade out time in seconds

    Returns { address: string; args: any[] }

    • address: string
    • args: any[]

fadeOut

  • fadeOut(seconds: number): { address: string; args: any[] }
  • Set the fade out time in seconds. No effect if there is no selected clip, or the selected clip is a midi clip.

    Parameters

    • seconds: number

      fade in time in seconds

    Returns { address: string; args: any[] }

    • address: string
    • args: any[]

gain

  • gain(dBFS: number): { address: string; args: { type: string; value: number }[] }
  • Adjust the gain of the selected audio clip.

    Parameters

    • dBFS: number

      full scale decibel to set

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

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

pan

  • pan(bipolarPan: number): { address: string; args: { type: string; value: number }[] }
  • Parameters

    • bipolarPan: number

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

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

pitchSemitones

  • pitchSemitones(semitones: number): { address: string; args: { type: string; value: number }[] }
  • Set the audio clips semitone offset (when the audio clip plays, its pitch will be offset by this value).

    Parameters

    • semitones: number

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

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

reverse

  • reverse(reverse?: boolean): { address: string }
  • Set the reversed state of the selected audio clip

    Parameters

    • reverse: boolean = true

      true=reverse false=forward

    Returns { address: string }

    • address: string

speedRatio

  • speedRatio(ratio?: number): { address: string; args: { type: string; value: number }[] }
  • Set speed ratio for the clip.

    Parameters

    • ratio: number = 1

      the speed ratio from 0.02 to 10.

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

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

stretchMode

  • stretchMode(mode?: number): { address: string; args: { type: string; value: number }[] }
  • Set time stretch mode. elastique and melodyne modes are only available if tracktion is built with elastique / melodyne.

    Available modes: disabled = 0 // default elastiqueTransient = 1 // defunct elastiqueTonal = 2 // defunct soundtouchNormal = 3 soundtouchBetter = 4 melodyne = 5 elastiquePro = 6 elastiqueEfficient = 7 elastiqueMobile = 8 elastiqueMonophonic = 9

    Parameters

    • mode: number = 0

      the time stretch mode

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

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