Skip to main content

plan_channels

Function plan_channels 

Source
pub fn plan_channels(
    parts: &[Vec<Played>],
    acceptable: Option<&[u8]>,
) -> ChannelPlan
Expand description

The channels for the instruments of each part (a conductor’s left out), on acceptable channels counted from one, every channel but the drums’ where none are given: music21’s channelInstrumentData.

An instrument naming a channel keeps it; the other programs take free channels in turn, always leaving one free, and share the first where too few are left.