pySoundToolbox.py
def addSource(self, angle, source):
        """
        Adds a source that will be "recorded" by the microphone array.

        @param angle angle of arrival in rad of the sound emitted by the source. The angle is relative to the x-axis of
            the coordinate plane.
        @param source a source object that has a get and an onAdd method
        """

        if not np.isscalar(angle):
            raise ValueError('Only scalar types are allowed for angle!')
        if not np.isreal(angle):
            raise ValueError('angle must be a real value!')

        # Generate direction of arrival (DOA) from angle of arrival
        doa = np.array([np.cos(angle), np.sin(angle)])

        source.onAdd(self)
        self.sources.append((doa, source))

        Adds a source that will be "recorded" by the microphone array.

        @param angle angle of arrival in rad of the sound emitted by the source. The angle is relative to the x-axis of
            the coordinate plane.
        @param source a source object that has a get and an onAdd method
        
Adds a source that will be "recorded" by the microphone array.
@param angle angle of arrival in rad of the sound emitted by the source. The angle is relative to the x-axis of
the coordinate plane.
@param source a source object that has a get and an onAdd method
Adds a source that will be " recorded " by the microphone array . @param angle angle of arrival in rad of the sound emitted by the source . The angle is relative to the x - axis of the coordinate plane . @param source a source object that has a get and an onAdd method
def addSource(self, angle, source):
        if not np.isscalar(angle):
            raise ValueError('Only scalar types are allowed for angle!')
        if not np.isreal(angle):
            raise ValueError('angle must be a real value!')
        doa = np.array([np.cos(angle), np.sin(angle)])
        source.onAdd(self)
        self.sources.append((doa, source))
def addSource ( self , angle , source ) : if not np . isscalar ( angle ) : raise ValueError ( 'Only scalar types are allowed for angle!' ) if not np . isreal ( angle ) : raise ValueError ( 'angle must be a real value!' ) doa = np . array ( [ np . cos ( angle ) , np . sin ( angle ) ] ) source . onAdd ( self ) self . sources . append ( ( doa , source ) )
Adds a source that will be "recorded" by the microphone array.
Adds a source that will be " recorded " by the microphone array .
"""
        Adds a source that will be "recorded" by the microphone array.

        @param angle angle of arrival in rad of the sound emitted by the source. The angle is relative to the x-axis of
            the coordinate plane.
        @param source a source object that has a get and an onAdd method
        """ # Generate direction of arrival (DOA) from angle of arrival
self
angle
source