Track
update
Updates a track
moises.track.update
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
trackId | string | Yes | The ID of the track to update |
arrayBuffer | ArrayBuffer | No | The audio data for the track |
groupId | string | No | The ID of the group to move the track to |
name | string | No | The name of the track |
muted | boolean | No | Whether the track is muted |
loading | boolean | No | Whether the track is loading |
volume | number | No | The volume of the track (0-1) |
pan | number | No | The pan of the track (-1 to 1) |
startPositionMs | number | No | The 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.