pysynth/seq.py
def find_time_type(self, note_type):

        """
        Finds the amount of time the note will take given it's note type,
        beats per measure, and tempo.

        We use 'find_beats()' to determine the amount of beats the note type takes up.

        Once we have determined the number of beats this note takes up,
        we will then multiply the value by the beats per second,
        which we can calculate using the beats per minute.

        We then return the amount of time, in seconds, a note will take.

        :param note_type: Type of note to calculate rest time for
        :type note_type: float
        :return: Number of nanoseconds we must sleep for
        :rtype: float
        """

        # Find the number of beats this note type takes up:

        beats = self.find_beats(note_type)

        # Multiply this by the time per beat, convert to nanoseconds, and return:

        return (beats * (1 / (self.tempo / 60))) * 1000000000

        Finds the amount of time the note will take given it's note type,
        beats per measure, and tempo.

        We use 'find_beats()' to determine the amount of beats the note type takes up.

        Once we have determined the number of beats this note takes up,
        we will then multiply the value by the beats per second,
        which we can calculate using the beats per minute.

        We then return the amount of time, in seconds, a note will take.

        :param note_type: Type of note to calculate rest time for
        :type note_type: float
        :return: Number of nanoseconds we must sleep for
        :rtype: float
        
Finds the amount of time the note will take given it's note type,
beats per measure, and tempo.

We use 'find_beats()' to determine the amount of beats the note type takes up.

Once we have determined the number of beats this note takes up,
we will then multiply the value by the beats per second,
which we can calculate using the beats per minute.

We then return the amount of time, in seconds, a note will take.
Finds the amount of time the note will take given it ' s note type beats per measure and tempo . We use ' find_beats () ' to determine the amount of beats the note type takes up . Once we have determined the number of beats this note takes up we will then multiply the value by the beats per second which we can calculate using the beats per minute . We then return the amount of time in seconds a note will take .
def find_time_type(self, note_type):
        beats = self.find_beats(note_type)
        return (beats * (1 / (self.tempo / 60))) * 1000000000
def find_time_type ( self , note_type ) : beats = self . find_beats ( note_type ) return ( beats * ( 1 / ( self . tempo / 60 ) ) ) * 1000000000
Finds the amount of time the note will take given it's note type,
beats per measure, and tempo.
Finds the amount of time the note will take given it ' s note type beats per measure and tempo .
"""
        Finds the amount of time the note will take given it's note type,
        beats per measure, and tempo.

        We use 'find_beats()' to determine the amount of beats the note type takes up.

        Once we have determined the number of beats this note takes up,
        we will then multiply the value by the beats per second,
        which we can calculate using the beats per minute.

        We then return the amount of time, in seconds, a note will take.

        :param note_type: Type of note to calculate rest time for
        :type note_type: float
        :return: Number of nanoseconds we must sleep for
        :rtype: float
        """ # Find the number of beats this note type takes up: # Multiply this by the time per beat, convert to nanoseconds, and return:
Number of nanoseconds we must sleep for
Number of nanoseconds we must sleep for
float
self
note_type
Type of note to calculate rest time for
Type of note to calculate rest time for