pysynth/wrappers/mml.py
def read_number(self):

        """
        Reads the number after an arbitrary item,
        taking dots into account and converting them into floats.

        We assume our current index is the item we want the length of.
        Like 'read_length()', we will continue to push the seeker forward
        until we stop reading ints.

        :return: Returns the number after the current position
        :rtype: float
        """

        final = 0

        # Read initial ints:

        ints = self._read_ints()

        if ints:

            # Have some values, add them to the final value:

            final += ints

        # Check to see if we are working with decimals:

        if self.source.peek() == '.':

            # Working with decimals, move forward and read:

            self.source.forward()

            final = float(str(final) + '.' + str(self.read_length()))

        # Lets return:

        return float(final)

        Reads the number after an arbitrary item,
        taking dots into account and converting them into floats.

        We assume our current index is the item we want the length of.
        Like 'read_length()', we will continue to push the seeker forward
        until we stop reading ints.

        :return: Returns the number after the current position
        :rtype: float
        
Reads the number after an arbitrary item,
taking dots into account and converting them into floats.

We assume our current index is the item we want the length of.
Like 'read_length()', we will continue to push the seeker forward
until we stop reading ints.
Reads the number after an arbitrary item taking dots into account and converting them into floats . We assume our current index is the item we want the length of . Like ' read_length () ' we will continue to push the seeker forward until we stop reading ints .
def read_number(self):
        final = 0
        ints = self._read_ints()
        if ints:
            final += ints
        if self.source.peek() == '.':
            self.source.forward()
            final = float(str(final) + '.' + str(self.read_length()))
        return float(final)
def read_number ( self ) : final = 0 ints = self . _read_ints ( ) if ints : final += ints if self . source . peek ( ) == '.' : self . source . forward ( ) final = float ( str ( final ) + '.' + str ( self . read_length ( ) ) ) return float ( final )
Reads the number after an arbitrary item,
taking dots into account and converting them into floats.
Reads the number after an arbitrary item taking dots into account and converting them into floats .
"""
        Reads the number after an arbitrary item,
        taking dots into account and converting them into floats.

        We assume our current index is the item we want the length of.
        Like 'read_length()', we will continue to push the seeker forward
        until we stop reading ints.

        :return: Returns the number after the current position
        :rtype: float
        """ # Read initial ints: # Have some values, add them to the final value: # Check to see if we are working with decimals: # Working with decimals, move forward and read: # Lets return:
Returns the number after the current position
Returns the number after the current position
float
self