Nページに収める
layout_fit_pagesFit a MuseScore score within a specified number of pages by tightening spacing and adjusting staff size, producing a new version only when the score exceeds the target.
Instructions
譜面を pages ページ以内に収める。tighten=true(既定)なら、まず縦方向の自動の広げ(enableVerticalSpread)を切り、段・譜表の間隔(minSystemDistance 4 / maxSystemDistance 8 / staffDistance 5 / akkoladeDistance 5 sp、今の値がこれより小さければそのまま)を詰める。そのうえで MuseScore 自身のレイアウトで spatium(譜表の大きさ, mm)を二分探索し、収まる一番大きい値を mscore -S で焼き込んで新しい版を作る。すでに収まっていれば何もしない(max_spatium_mm を指定すると、その大きさまで広げてよい)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| tighten | No | ||
| score_id | Yes | score_open が返した score_id | |
| max_spatium_mm | No | 広げてよい上限(省略時は今より大きくしない) | |
| min_spatium_mm | No | これより小さくはしない(既定 1.0 mm。標準は 1.75 mm) |