Skip to main content

joinable_staff_groups

Function joinable_staff_groups 

Source
pub fn joinable_staff_groups(score: &Stream) -> Result<JoinableGroups>
Available on crate feature musicxml only.
Expand description

music21’s joinableGroups for a whole score: the staff groups whose staves are written as one <part>.

use music21::{Stream, StreamKind};
use music21::musicxml::{JoinableGroups, joinable_staff_groups};

let score = Stream::with_kind(StreamKind::Score);
assert_eq!(joinable_staff_groups(&score)?, JoinableGroups::Joined(Vec::new()));

§Errors

A score nested in the score.