Exemple #1
0
        machines.OctaveDisplacement(
            up=(1,2,3,  23,  36,     ),
            down=(10, 19,       38),
            )
    # print(pitch_displacement)
    def update_data(self, **kwargs):
        super().update_data(**kwargs)
        if self.__class__.__name__ == "Line7":
            self.tag_events("magenta", every_child=True)
# -------------------------------------------------------------------------------------------------

bubbles.illustrate_me(__file__, 
    lambda: staves.CopperShortScore(
            bubbles.Bubble(
                drone0 = Drone0(show_data_attr="original_depthwise_index"),
                drone10 = Drone10(show_data_attr="original_depthwise_index"),
                line1 = Line1(show_data_attr="original_depthwise_index"),
                line2 = Line2(show_data_attr="original_depthwise_index"),
                # line3 = Line3(show_data_attr="original_depthwise_index"),
                line3 = Line3Pulsed(show_data_attr="original_depthwise_index"),
                line4 = Line4(show_data_attr="original_depthwise_index", clef="bass"),
                line5 = Line5(show_data_attr="original_depthwise_index"),
                line6 = Line6(show_data_attr="original_depthwise_index"),
                line7 = Line7(show_data_attr="original_depthwise_index"),
            ),
            sequence = ("line1","line2","line3","line4","line5","line6","line7","drone0","drone10"),
            stylesheets = ("../../scores/stylesheets/shortscore.ily",)
        ).get_lilypond_file(),
    as_midi=True,
    )
Exemple #2
0
            )
    # pitch_displacement[0] = (-24,) # TEMP USE ... see 2 octaves down for ease-of-viewing only
    respell = "flats"
    def update_data(self, **kwargs):
        super().update_data(**kwargs)
        self.events[7].tag("8va")
        self.events[126].tag("8va!")
        if self.__class__ is Line5:
            self.tag_events("red", every_child=True)

# -------------------------------------------------------------------------------------------------



bubbles.illustrate_me(__file__, 
    lambda: staves.CopperShortScore(
            bubbles.Bubble(
                drone0 = Drone0(show_data_attr="original_depthwise_index", accidental_style="forget"),
                drone10 = Drone10(show_data_attr="original_depthwise_index", accidental_style="forget"),
                line1 = Line1(show_data_attr="original_depthwise_index", accidental_style="forget"),
                line2 = Line2(show_data_attr="original_depthwise_index", accidental_style="forget"),
                line3 = Line3(show_data_attr="original_depthwise_index", accidental_style="forget"),
                line4 = Line4(show_data_attr="original_depthwise_index", accidental_style="forget"),
                line5 = Line5(show_data_attr="original_depthwise_index", accidental_style="forget"),
            ),
            sequence = ("line1","line2","line3","line4","line5","drone0","drone10"),
            stylesheets = ("../../scores/stylesheets/shortscore.ily",)
        ).get_lilypond_file(),
    as_midi=True,
    )
Exemple #3
0
    #     }, limit=10)
    # def update_data(self, **kwargs):
    #     super().update_data(**kwargs)
    #     # self.events[1].tag("(")self.events[2].tag("mf")
    #     # self.events[3].tag(")")
    #     self.events[1].tag("\<")
    #     self.events[2].tag("\!")
    #     self.events[2].tag("mf")
    #     self.events[2].tag("(")
    #     self.events[2].tag("\>")
    #     self.events[4].tag("\!",")")

    # -------------------------------------------------------------------------------------------------
    def update_data(self, **kwargs):
        super().update_data(**kwargs)
        if self.__class__.__name__ == "Line1":
            self.tag_events("darkmagenta", every_child=True)


bubbles.illustrate_me(
    __file__,
    lambda: staves.CopperShortScore(
        bubbles.Bubble(
            drone0=Drone0(show_data_attr="original_depthwise_index"),
            line1=Line1(show_data_attr="original_depthwise_index"),
        ),
        sequence=("line1", "drone0"),
        stylesheets=("../../scores/stylesheets/shortscore.ily", )).
    get_lilypond_file(),
    as_midi=True,
)
Exemple #4
0
# -------------------------------------------------------------------------------------------------

class Line8(GenH, gen_g.Line8):
    pass
# -------------------------------------------------------------------------------------------------

class Line9(Line8):
    pass
# -------------------------------------------------------------------------------------------------

bubbles.illustrate_me(__file__, 
    lambda: staves.CopperShortScore(
            bubbles.Bubble(
                drone0 = Drone0(show_data_attr="original_depthwise_index"),
                line1 = Line1(show_data_attr="original_depthwise_index"),
                line2 = Line2(show_data_attr="original_depthwise_index"),
                line3 = Line3(show_data_attr="original_depthwise_index"),
                line4 = Line4(show_data_attr="original_depthwise_index"),
                line5 = Line5(show_data_attr="original_depthwise_index"),
                line6 = Line6(show_data_attr="original_depthwise_index"),
                line7 = Line7(show_data_attr="original_depthwise_index"),
                line8 = Line8(show_data_attr="original_depthwise_index"),
                line9 = Line9(show_data_attr="original_depthwise_index"),
            ),
            sequence = ("line1","line2","line3","line4","line5","line6","line7","line8","line9","drone0"),
        ).get_lilypond_file(),
    as_midi=True,
    )