def make_unordered_cells_sequence(): result = [] harmonic_walk = sequencetools.flatten_sequence(manifolds.etc.pitch.harmonic_walk) pitch_fields = manifolds.etc.pitch.pitch_fields timeslot_pitch_to_field_cell = \ manifolds.etc.pitch._helpers.timeslot_pitch_to_field_cell len_walk = len(harmonic_walk) len_fields = len(pitch_fields) lcm = mathtools.least_common_multiple(len_walk, len_fields) assert lcm == 120 harmonic_walk = sequencetools.repeat_list_to_length(harmonic_walk, lcm) for timeslot, pitch in enumerate(harmonic_walk): field_cell = timeslot_pitch_to_field_cell(timeslot, Pitch(pitch)) result.append(field_cell) assert len(result) == 120 assert len(sequencetools.flatten_sequence(result)) == 504 return result
def make_prominent_counts(): # tokens = [(1, 0, 0, 2), (0, 0, 1, 2), (1, 0, 0, 1)] # tokens = [list(x) for x in tokens] # tokens = baca.tools.helianthate(tokens, -1, -1) # tokens = tokens[:46] tokens = sequencetools.repeat_list_to_length([1, 1, 1, 2, 1, 2], 46) return tokens