pysynth/seq.py
def chord(self, notes, length, index=-1, name=None):

        """
        Creates a chord with a given length.

        We do this by creating a Chord event.

        :param notes: Notes to be included in the chord
        :type notes: list
        :param length: Length of the chord
        :type length: float
        :param index: Index to add the event at
        :type index: int
        :param name: Name of the instrument to toggle
        :type name: str, int
        """

        # Check if we should convert the notes:

        for num, note in enumerate(notes):

            if type(note) != Note:

                # Lets convert the note:

                note = Note.from_num(note)

                notes[num] = note

        # Create and ass the Chord event:

        print("Creating chord with notes: {}".format(notes))

        self.add_event(Chord(notes, length, name=name), index)

        Creates a chord with a given length.

        We do this by creating a Chord event.

        :param notes: Notes to be included in the chord
        :type notes: list
        :param length: Length of the chord
        :type length: float
        :param index: Index to add the event at
        :type index: int
        :param name: Name of the instrument to toggle
        :type name: str, int
        
Creates a chord with a given length.
We do this by creating a Chord event.
Creates a chord with a given length . We do this by creating a Chord event .
def chord(self, notes, length, index=-1, name=None):
        for num, note in enumerate(notes):
            if type(note) != Note:
                note = Note.from_num(note)
                notes[num] = note
        print("Creating chord with notes: {}".format(notes))
        self.add_event(Chord(notes, length, name=name), index)
def chord ( self , notes , length , index = - 1 , name = None ) : for num , note in enumerate ( notes ) : if type ( note ) != Note : note = Note . from_num ( note ) notes [ num ] = note print ( "Creating chord with notes: {}" . format ( notes ) ) self . add_event ( Chord ( notes , length , name = name ) , index )
Creates a chord with a given length.
Creates a chord with a given length .
"""
        Creates a chord with a given length.

        We do this by creating a Chord event.

        :param notes: Notes to be included in the chord
        :type notes: list
        :param length: Length of the chord
        :type length: float
        :param index: Index to add the event at
        :type index: int
        :param name: Name of the instrument to toggle
        :type name: str, int
        """ # Check if we should convert the notes: # Lets convert the note: # Create and ass the Chord event:
self
notes
Notes to be included in the chord
Notes to be included in the chord
length
Length of the chord
Length of the chord
index
Index to add the event at
Index to add the event at
name
Name of the instrument to toggle
Name of the instrument to toggle