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, )
) # 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, )
# }, 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, )
pitch_displacement.down(9, 27, 30) pitch_displacement.up(37, 56) # print(pitch_displacement) def update_data(self, **kwargs): super().update_data(**kwargs) if self.__class__.__name__ == "Line6": self.tag_events("blue", 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"), 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"), ), sequence=("line1", "line2", "line3", "line4", "line5", "line6", "drone0"), stylesheets=("../../scores/stylesheets/shortscore.ily", )). get_lilypond_file(), as_midi=True, )