示例#1
0
 def _notes(self) -> List[Note]:
     instrument = self.get_instrument().get_instrument_str()
     return [
         Note('D4', instrument),
         Note('B3', instrument),
         Note('E4', instrument)
     ]
示例#2
0
 def _notes(self) -> List[Note]:
     instrument = self.get_instrument().get_instrument_str()
     return [
         Note('E5', instrument),
         Note('G5', instrument),
         Note('A5', instrument)
     ]
    def _sequence(self) -> List[Note]:
        instrument = self.get_instrument().get_instrument_str()
        c_quarter = Note('C4', instrument, QUARTER_NOTE)
        d_quarter = Note('D4', instrument, QUARTER_NOTE)
        e_quarter = Note('E4', instrument, QUARTER_NOTE)
        d_half = Note('D4', instrument, HALF_NOTE)
        e_half = Note('E4', instrument, HALF_NOTE)

        return [
            e_quarter,
            d_quarter,
            c_quarter,
            d_quarter,
            e_quarter,
            e_quarter,
            e_half,
            d_quarter,
            d_quarter,
            d_half,
            e_quarter,
            e_quarter,
            e_half,
            e_quarter,
            d_quarter,
            c_quarter,
            d_quarter,
            e_quarter,
            e_quarter,
            e_half,
            d_quarter,
            d_quarter,
            e_quarter,
            d_quarter,
            c_quarter,
        ]
    def _sequence(self) -> List[Note]:
        a_eighth = Note('A3', EIGHTH_NOTE)
        g_eighth = Note('G3', EIGHTH_NOTE)
        b_quarter = Note('B3', QUARTER_NOTE)
        a_quarter = Note('A3', QUARTER_NOTE)
        g_half = Note('G3', HALF_NOTE)

        return [
            b_quarter,
            a_quarter,
            g_half,
            b_quarter,
            a_quarter,
            g_half,
            g_eighth,
            g_eighth,
            g_eighth,
            g_eighth,
            a_eighth,
            a_eighth,
            a_eighth,
            a_eighth,
            b_quarter,
            a_quarter,
            g_half,
        ]
示例#5
0
    def _sequence(self) -> List[Note]:
        # Defining the notes for hot cross buns
        instrument = self.get_instrument().get_instrument_str()
        a_eighth = Note('A3', instrument, EIGHTH_NOTE)
        g_eighth = Note('G3', instrument, EIGHTH_NOTE)
        b_quarter = Note('B3', instrument, QUARTER_NOTE)
        a_quarter = Note('A3', instrument, QUARTER_NOTE)
        g_half = Note('G3', instrument, HALF_NOTE)

        return [
            b_quarter,
            a_quarter,
            g_half,
            b_quarter,
            a_quarter,
            g_half,
            g_eighth,
            g_eighth,
            g_eighth,
            g_eighth,
            a_eighth,
            a_eighth,
            a_eighth,
            a_eighth,
            b_quarter,
            a_quarter,
            g_half,
        ]
 def _sequence(self) -> List[Note]:
     c_quarter = Note('C4', QUARTER_NOTE)
     d_quarter = Note('D4', QUARTER_NOTE)
     e_quarter = Note('E4', QUARTER_NOTE)
     d_half = Note('D4', HALF_NOTE)
     e_half = Note('E4', HALF_NOTE)
     return [
         e_quarter,
         d_quarter,
         c_quarter,
         d_quarter,
         e_quarter,
         e_quarter,
         e_half,
         d_quarter,
         d_quarter,
         d_half,
         e_quarter,
         e_quarter,
         e_half,
         e_quarter,
         d_quarter,
         c_quarter,
         d_quarter,
         e_quarter,
         e_quarter,
         e_half,
         d_quarter,
         d_quarter,
         e_quarter,
         d_quarter,
         c_quarter,
     ]
 def _sequence(self) -> List[Note]:
     g_quarter = Note('G5', QUARTER_NOTE)
     e_quarter = Note('E5', QUARTER_NOTE)
     a_quarter = Note('A5', QUARTER_NOTE)
     g_half = Note('G5', HALF_NOTE)
     e_half = Note('E5', HALF_NOTE)
     return [g_half, e_half,
             g_quarter, g_quarter, e_half,
             g_quarter, g_quarter, e_quarter, a_quarter, g_quarter, g_quarter, e_half,
             g_quarter, e_half,
             g_quarter, g_quarter, e_half,
             g_quarter, g_quarter, e_quarter, a_quarter, g_quarter, g_quarter, e_half]
示例#8
0
 def _sequence(self) -> List[Note]:
     instrument = self.get_instrument().get_instrument_str()
     g_quarter = Note('G5', instrument, QUARTER_NOTE)
     e_quarter = Note('E5', instrument, QUARTER_NOTE)
     a_quarter = Note('A5', instrument, QUARTER_NOTE)
     g_half = Note('G5', instrument, HALF_NOTE)
     e_half = Note('E5', instrument, HALF_NOTE)
     return [
         g_half, e_half, g_quarter, g_quarter, e_half, g_quarter, g_quarter,
         e_quarter, a_quarter, g_quarter, g_quarter, e_half, g_quarter,
         e_half, g_quarter, g_quarter, e_half, g_quarter, g_quarter,
         e_quarter, a_quarter, g_quarter, g_quarter, e_half
     ]
示例#9
0
 def _sequence(self) -> List[Note]:
     # Defining notes for it's raining song
     instrument = self.get_instrument().get_instrument_str()
     a_quarter = Note('A4', instrument, QUARTER_NOTE)
     g_quarter = Note('G3', instrument, QUARTER_NOTE)
     e_quarter = Note('E4', instrument, QUARTER_NOTE)
     g_half = Note('G3', instrument, HALF_NOTE)
     e_half = Note('E4', instrument, HALF_NOTE)
     return [
         e_quarter, g_half, e_quarter, a_quarter, g_half, e_quarter,
         e_quarter, g_half, e_quarter, a_quarter, g_half, e_quarter,
         e_quarter, g_quarter, g_quarter, e_quarter, e_quarter, g_quarter,
         g_quarter, e_quarter, e_quarter, g_quarter, g_quarter, g_quarter,
         e_quarter, e_quarter, e_quarter, a_quarter, g_quarter, e_half
     ]
示例#10
0
    def _notes(self) -> List[Note]:
        instrument = self.get_instrument().get_instrument_str()

        if not self.is_notes_set:
            while self.random_note_one == self.random_note_two or self.random_note_one == self.random_note_three \
                    or self.random_note_two == self.random_note_three:
                self.random_note_one = self.random_note()
                self.random_note_two = self.random_note()
                self.random_note_three = self.random_note()

            self.is_notes_set = True

        return [
            Note(self.random_note_one, instrument),
            Note(self.random_note_two, instrument),
            Note(self.random_note_three, instrument)
        ]
示例#11
0
    def _sequence(self) -> List[Note]:
        instrument = self.get_instrument().get_instrument_str()

        first_note = Note(self.get_note_at_pos(0), instrument,
                          self.random_note_length())
        second_note = Note(self.get_note_at_pos(1), instrument,
                           self.random_note_length())
        third_note = Note(self.get_note_at_pos(2), instrument,
                          self.random_note_length())

        if not self.is_seq_set:
            self.is_seq_set = True
            choice_sequence = [first_note, second_note, third_note]

            # Determine a random length for the sequence in the range 5-10
            sequence_len = random.randint(RANDOM_SEQUENCE_MIN_BOUND,
                                          RANDOM_SEQUENCE_MAX_BOUND)

            for x in range(0, sequence_len):
                self.seq.append(random.choice(choice_sequence))

        return self.seq
示例#12
0
    def _sequence(self) -> List[Note]:
        # Defining notes for it's raining song
        instrument = self.get_instrument().get_instrument_str()
        d_quarter = Note('D4', instrument, QUARTER_NOTE)
        b_quarter = Note('B3', instrument, QUARTER_NOTE)
        e_quarter = Note('E4', instrument, QUARTER_NOTE)
        e_half = Note('E4', instrument, HALF_NOTE)
        d_half = Note('D4', instrument, HALF_NOTE)
        b_half = Note('B3', instrument, HALF_NOTE)
        return [
            # Ring around the rosie
            d_quarter, d_quarter, b_quarter,
            e_quarter, d_half, b_quarter,

            # Pocket full of posies
            d_quarter, d_quarter, b_quarter,
            e_quarter, d_half, b_quarter,

            # Ashes Ashes
            e_half, b_half, e_half, b_half,

            # We all fall down
            e_quarter, d_quarter, d_quarter, b_half
        ]
示例#13
0
 def _notes(self) -> List[Note]:
     return [Note('G3'), Note('A3'), Note('B3')]
 def _notes(self) -> List[Note]:
     return [
         Note('E5'),
         Note('G5'),
         Note('A5')
     ]
 def _notes(self) -> List[Note]:
     return [Note('C4'), Note('D4'), Note('E4')]