Session
setSelection
Sets a selection in the session
moises.session.setSelection
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
trackId | string | No | ID of the track to be selected |
start | number | Yes | Start position of the selection |
end | number | Yes | End position of the selection |
Returns:
void
- Does not return a value
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.session.setSelection({
trackId: "track-123",
start: 0,
end: 30
})
// Selects an interval without specifying a track
await moises.session.setSelection({ start: 10, end: 20 })
This file is automatically generated. Do not edit manually.