(self, signal_source, feedback, frequency, duration, loop, volume)
Initialise the generator.
Initialise the generator.
Initialise the generator .
def __init__(self, signal_source, feedback, frequency, duration, loop, volume):
        """Initialise the generator."""
        # noise generator
        self._signal_source = signal_source
        self._feedback = feedback
        # actual duration and gap length
        self._duration = duration
        self._amplitude = _AMPLITUDE[volume]
        self._frequency = frequency
        self.loop = loop
        self._count_samples = 0
        self._num_samples = int(self._duration * SAMPLE_RATE)
def __init__ ( self , signal_source , feedback , frequency , duration , loop , volume ) : # noise generator self . _signal_source = signal_source self . _feedback = feedback # actual duration and gap length self . _duration = duration self . _amplitude = _AMPLITUDE [ volume ] self . _frequency = frequency self . loop = loop self . _count_samples = 0 self . _num_samples = int ( self . _duration * SAMPLE_RATE )