Skip to content

[Question] new-system #52

Description

@p-groarke

Hi, me again :)

I am trying to add line-breaks every 4 measures. From what I read on musicxml, I need the print new-system attribute. https://usermanuals.musicxml.com/MusicXML/Content/CT-MusicXML-print.htm

I am trying to create new systems like this (I have 6 measures right now).

	for (size_t i = 0; i < part.measures.size(); i += 4) {
		mx::api::SystemData system;
		system.measureIndex = int(i);
		score.systems.insert(system);
	}

	score.sort();
	mx::DocumentManager& mgr = mx::DocumentManager::getInstance();
	const int documentID = mgr.createFromScore(score);

But all I get is the first new-system, not the second. Any idea what I am doing wrong?
Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions