レイアウトを調べる
layout_inspectInspects measure and page layout, element positions, and overlap candidates in a MuseScore score, returning sp coordinates and movable element IDs for layout repair.
Instructions
段・ページごとの小節の並び、各小節の幅・伸び縮み・改段、記号(強弱・歌詞・テキスト・ヘアピン等)の位置と、重なりの候補を返す。座標は sp(譜表の1間)単位。要素の id(例 DYNAMIC#3, LYRICS#10, HAIRPIN#0.1)は element_offset に渡せる。小節は 1 始まりの通し番号(譜面の先頭からの並び順。弱起や番号を飛ばした小節があると表示上の小節番号とずれることがある。layout_inspect の measures[].index / no で対応を確認できる)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score_id | Yes | score_open が返した score_id | |
| measure_to | No | ||
| measure_from | No | ||
| svg_overlaps | No | SVG の描画結果からも重なりを調べる(音符との重なりも見る)。SVG の塊を記号にページ・型・座標で対応づけ、動かせる側の id と外す量(movable.id / suggestedDy, sp)を付ける。measure_from/to を指定すると、その範囲の記号が関わる重なりだけを返す | |
| element_types | No | include_elements のとき絞り込む型(例 ["DYNAMIC","LYRICS"]) | |
| include_elements | No | 記号の一覧を返す(多いので既定は false。重なりの候補は常に計算する) | |
| include_measures | No |