Plugin Break every x measures not working correctly

• Feb 16, 2010 - 20:43
Type
Plugins
Severity
S4 - Minor
Status
closed
Project

Revision 2722
Windows XP

To reproduce

Open Promenade.mscx
Plugin/Break every x measures
Choose 3 measures
Click OK

Expected behaviour, score should have 3 measures per system

Actual behaviour

1st system has 3 measures
2nd system has 1 measure
3rd system has 2 measures

Plugin only gives the requested format if all existing breaks are first deleted from the score before calling the plugin to put 3 measures per system


Comments

Status (old) active fixed

This is the intended behavior, according to the plugin source. Instead of ONLY having a line break every x measures, it inserts an additional line break after this many measures. In your case, the first two measures fit on the first line, so an automatic line break was put in to make space. Then, the line break of the plugin kicked in after the next measure.

No, it is not a very useful plugin, but the plugin framework is still very young.

Status (old) fixed active

Thanks. I'm the author of the plugin and I find it very useful ;) I agree it could be more useful if we got access to the selection in the plugin framework. See #2551: Access to selection in plugins

The aim of the plugin is to put a visible line break every X measure and remove all others and it's not working because lineBreak=false does not work has expected.

Plugin "Break every X measures" does not work properly.

MuseScore version: 3996
OS: XP 2002 SP3

To reproduce:
- Open attached score "Mademoiselle Chante Le Blues"
- Plugins...Break Every X Measures
- Select 4, click ok.

Expected result: each line has exactly 4 measures throughout the score.
Actual: number of measures is 4, 4, 3, 1, 4, 3, 1, 4... etc. - something seemingly random.

Attachment Size
Mademoiselle Chante Le Blues.mscz 11.08 KB

If you count the number of measures up to each green line-break symbol, there's four in each group. It's just that some bars are too large to cram 4 on a line. You need to change the stretch on the 3-measure lines to make them fit 4. The plugin appears to be working fine.