Play
playStart playback from a chosen bar or Lathe's insert marker, with optional stopping at a target bar or after specified loop repeats.
Instructions
Starts playback, from the given bar or from Lathe's insert marker. With to_bar, Lathe stops by itself exactly when the playhead gets there. With loop_times, it plays the loop that many times and stops at the loop end (the loop must be on: see set_loop). When it stops, the playhead goes back to the insert marker, as with Stop. Without from_bar or to_bar it does nothing if Lathe is already playing; from_bar jumps there, to_bar alone sets where the current playback stops.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "play"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_bar | No | Stop when the playhead reaches this bar (1-based; 5 = the start of bar 5) | |
| from_bar | No | Bar to start from (1-based) | |
| loop_times | No | Play the loop this many times, then stop at its end. Starts at the loop start unless from_bar is inside the loop |