get_phrases
Analyze a track's melody into phrases by finding rests, returning each phrase's note range, syllable count, and shape to guide lyric assignment.
Instructions
Analyze a track's melody into phrases by finding rests between notes — the recommended first step when flowing lyrics onto an imported melody. Each phrase reports its note index range, note count (= syllables needed), position, pitch range, current lyrics, and a shape label — phrases sharing a letter have an identical melody, which usually means they carry the same (or parallel) lyric line. Long rests are flagged as likely section boundaries. Then assign lyrics phrase by phrase with set_lyrics using each phrase's firstNote index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Group index within the track (see get_project_info `groups`). Defaults to the first non-main group — in SV Studio 2 the singer is attached per group and notes in the main group are not synthesized. | |
| track | Yes | Track index, 1-based | |
| restThreshold | No | Minimum rest that separates phrases, as a note value (default "1/8") | |
| sectionThreshold | No | Minimum rest that suggests a section boundary, as a note value (default "1/1") |