scamp.utilities.get_standard_indispensability_array
- scamp.utilities.get_standard_indispensability_array(rhythmic_strata: Sequence, normalize: bool = False) list[int_or_float] [source]
Returns a list of the indispensabilities of different pulses in a meter defined by the rhythmic_strata. (See Barlow’s “On Musiquantics”, http://clarlow.org/wp-content/uploads/2016/10/On-MusiquanticsA4.pdf)
- Parameters:
rhythmic_strata – a tuple representing the rhythmic groupings from large scale to small scale. For instance, the sixteenth-note pulses in a measure of 9/8 would be represented by (3, 3, 2), since there are three beats of three eighth notes, each of which has two sixteenth notes.
normalize – if True, scale all indispensabilities to the range 0 to 1
- Returns:
a list of integer indispensabilities, or float if normalize is set to true