Track

update

Updates a track

moises.track.update

Parameters

ParameterTypeRequiredDescription
trackIdstringYesThe ID of the track to update
arrayBufferArrayBufferNoThe audio data for the track
groupIdstringNoThe ID of the group to move the track to
namestringNoThe name of the track
mutedbooleanNoWhether the track is muted
loadingbooleanNoWhether the track is loading
volumenumberNoThe volume of the track (0-1)
pannumberNoThe pan of the track (-1 to 1)
startPositionMsnumberNoThe start position of the track in milliseconds

Returns:

Promise<void> - Promise that resolves when the track is updated

Usage Example

import { initMoisesExtension } from '@moises.ai/extension'

const useMoisesExtension = initMoisesExtension({
  id: 'id',
  name: 'name',
  description: 'description',
  icon: 'icon',
  version: 'version',
  author: 'author'
})

const { moises } = useMoisesExtension()

await moises.track.update({
  trackId: "track-123",
  arrayBuffer: new ArrayBuffer(1024),
  groupId: "group-456",
  name: "Updated Track Name",
  muted: true
})

This file is automatically generated. Do not edit manually.