Session

setSelection

Sets a selection in the session

moises.session.setSelection

Parameters

ParameterTypeRequiredDescription
trackIdstringNoID of the track to be selected
startnumberYesStart position of the selection
endnumberYesEnd 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.