def test_create_rhythm_makers(): number_of_stages = 1 rhythm_maker_classes = [rhythmmakertools.NoteRhythmMaker] duration_specifier = rhythmmakertools.DurationSpellingSpecifier() tuplet_specifier = rhythmmakertools.TupletSpellingSpecifier() division_masks = [[]] tie_vectors = [[]] tuplet_ratios = [[[1]]] rhythm_makers = create_rhythm_makers( number_of_stages, rhythm_maker_classes, duration_specifier, tuplet_specifier, division_masks, tie_vectors, tuplet_ratios, ) assert isinstance(rhythm_makers[0], rhythmmakertools.NoteRhythmMaker)
# -*- coding: utf-8 -*- from abjad import rhythmmakertools from surge.materials.segment_i.time_signatures import number_of_stages from surge.materials.utils.create_rhythm_makers import create_rhythm_makers from .division_masks import division_masks from .specifiers import specifiers from .taleas import taleas from .tie_vectors import tie_vectors from .tuplet_ratios import tuplet_ratios rhythm_maker_classes = [ None, None, None, rhythmmakertools.TupletRhythmMaker, None, ] rhythm_makers = create_rhythm_makers( number_of_stages, rhythm_maker_classes, specifiers=specifiers, division_masks=division_masks, taleas=taleas, tie_vectors=tie_vectors, tuplet_ratios=tuplet_ratios, )
# -*- coding: utf-8 -*- from abjad import rhythmmakertools from surge.materials.segment_i.time_signatures import number_of_stages from surge.materials.utils.create_rhythm_makers import create_rhythm_makers from .division_masks import division_masks from .tie_vectors import tie_vectors from .specifiers import specifiers rhythm_maker_classes = [ rhythmmakertools.NoteRhythmMaker, rhythmmakertools.NoteRhythmMaker, rhythmmakertools.NoteRhythmMaker, rhythmmakertools.NoteRhythmMaker, rhythmmakertools.NoteRhythmMaker, ] rhythm_makers = create_rhythm_makers( number_of_stages, rhythm_maker_classes, specifiers=specifiers, division_masks=division_masks, tie_vectors=tie_vectors, )