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

        """
        We schedule a note event with the given note number,
        length, and index of the event to add.

        The 'num' parameter can be a integer, or a 'Note' object.
        If it is an integer, then it will be converted into a note.

        The 'length' is the length of the note.
        We will block and remove the note at the end of this time.

        Index is the index to insert the event at.
        Be default, the command is appended to the end of the event list,
        but you could place it elsewhere if necessary.

        :param num: Number of the note to play
        :type num: int, Note
        :param length: Length of the note to play
        :type length: float
        :param index: Index to insert the command at
        :type index: int
        :param name: Name of the synth to add
        :type name: int, str
        """

        # First, check to see if we are working with a note:

        if type(num) != Note:

            # Convert into a note:

            num = Note.from_num(num)

        # Create an event:

        self.add_event(NoteOn(num, length, name=name), index)

        We schedule a note event with the given note number,
        length, and index of the event to add.

        The 'num' parameter can be a integer, or a 'Note' object.
        If it is an integer, then it will be converted into a note.

        The 'length' is the length of the note.
        We will block and remove the note at the end of this time.

        Index is the index to insert the event at.
        Be default, the command is appended to the end of the event list,
        but you could place it elsewhere if necessary.

        :param num: Number of the note to play
        :type num: int, Note
        :param length: Length of the note to play
        :type length: float
        :param index: Index to insert the command at
        :type index: int
        :param name: Name of the synth to add
        :type name: int, str
        
We schedule a note event with the given note number,
length, and index of the event to add.

The 'num' parameter can be a integer, or a 'Note' object.
If it is an integer, then it will be converted into a note.

The 'length' is the length of the note.
We will block and remove the note at the end of this time.

Index is the index to insert the event at.
Be default, the command is appended to the end of the event list,
but you could place it elsewhere if necessary.
We schedule a note event with the given note number length and index of the event to add . The ' num ' parameter can be a integer or a ' Note ' object . If it is an integer then it will be converted into a note . The ' length ' is the length of the note . We will block and remove the note at the end of this time . Index is the index to insert the event at . Be default the command is appended to the end of the event list but you could place it elsewhere if necessary .
def note(self, num, length, index=-1, name=None):
        if type(num) != Note:
            num = Note.from_num(num)
        self.add_event(NoteOn(num, length, name=name), index)
def note ( self , num , length , index = - 1 , name = None ) : if type ( num ) != Note : num = Note . from_num ( num ) self . add_event ( NoteOn ( num , length , name = name ) , index )
We schedule a note event with the given note number,
length, and index of the event to add.
We schedule a note event with the given note number length and index of the event to add .
"""
        We schedule a note event with the given note number,
        length, and index of the event to add.

        The 'num' parameter can be a integer, or a 'Note' object.
        If it is an integer, then it will be converted into a note.

        The 'length' is the length of the note.
        We will block and remove the note at the end of this time.

        Index is the index to insert the event at.
        Be default, the command is appended to the end of the event list,
        but you could place it elsewhere if necessary.

        :param num: Number of the note to play
        :type num: int, Note
        :param length: Length of the note to play
        :type length: float
        :param index: Index to insert the command at
        :type index: int
        :param name: Name of the synth to add
        :type name: int, str
        """ # First, check to see if we are working with a note: # Convert into a note: # Create an event:
self
num
Number of the note to play
Number of the note to play
length
Length of the note to play
Length of the note to play
index
Index to insert the command at
Index to insert the command at
name
Name of the synth to add
Name of the synth to add