pySoundToolbox.py
def onAdd(self, array):
        """
        Event handler that will be executed when this source is attached to an array.

        @param array MicrophoneArray object
        """

        if array.samplingRate != self.fileSamplingRate:
            raise ValueError("Array sampling rate and file sampling rate must be the same!")
        # TODO maybe interpolate samples if sampling rates are not compatible

        Event handler that will be executed when this source is attached to an array.

        @param array MicrophoneArray object
        
Event handler that will be executed when this source is attached to an array.
@param array MicrophoneArray object
Event handler that will be executed when this source is attached to an array . @param array MicrophoneArray object
def onAdd(self, array):
        if array.samplingRate != self.fileSamplingRate:
            raise ValueError("Array sampling rate and file sampling rate must be the same!")
def onAdd ( self , array ) : if array . samplingRate != self . fileSamplingRate : raise ValueError ( "Array sampling rate and file sampling rate must be the same!" )
Event handler that will be executed when this source is attached to an array.
Event handler that will be executed when this source is attached to an array .
"""
        Event handler that will be executed when this source is attached to an array.

        @param array MicrophoneArray object
        """ # TODO maybe interpolate samples if sampling rates are not compatible
self
array