scamp_extensions.rhythm.indispensability.barlow_style_indispensability_array

scamp_extensions.rhythm.indispensability.barlow_style_indispensability_array(*rhythmic_strata: Union[int, Sequence[int]], normalize: bool = False) List[INT_OR_FLOAT][source]

Alternate implementation of get_standard_indispensability_array(), leveraging the MetricStructure class to do the calculations.

Parameters:
  • rhythmic_strata – can be either tuples, representing additive metric layers, or integers, representing simple metric layers.

  • normalize – if True, indispensabilities range from 0 to 1. If false, they count up from 0.

Returns:

a list of indispensabilities for the pulses of the given meter.