module documentation

Gap detection experiment by Moore et al., 1993 DOI: 10.1121/1.406815

Stimulus used is puretone with background masker

They used the Khron-Hite 3550 filter for lowpassing the noise, which has a 24 dB/Octave slope source.

Signal was ramped with cosine squared ramp with 50ms rise/fall

Function generate_stimulus Function for generating the stimulus
Constant SIGNAL_DURATION Duration of the target signal
Constant SIGNAL_FREQUENCIES Frequencies of the sinusoid used in the original paper
Constant SIGNAL_LEVELS Levels of the sinusoid used in the original paper
Constant SIGNAL_TO_NOISE_RATIO Level difference between signal and noise in dB SPL
def generate_stimulus(t, sinusoid_frequency=SIGNAL_FREQUENCIES[0], sinusoid_level=SIGNAL_LEVELS[0], gap_length=0, signal_start=0.2): (source)

Function for generating the stimulus

Parameters
ttime-vector
sinusoid_frequency:floatfrequency of the target signal (see SIGNAL_FREQUENCIES for frequencies used in the paper)
sinusoid_level:floatlevel of the target signal (see SIGNAL_LEVELS for frequencies used in the paper)
gap_length:floatlength of the gap
signal_start:floattime-point for starting the signal
Returns
np.ndarray
SIGNAL_DURATION: float = (source)

Duration of the target signal

Value
0.4
SIGNAL_FREQUENCIES: list[int] = (source)

Frequencies of the sinusoid used in the original paper

Value
[100, 200, 400, 800, 1000, 2000]
SIGNAL_LEVELS: list[int] = (source)

Levels of the sinusoid used in the original paper

Value
[25, 40, 55, 70, 85]
SIGNAL_TO_NOISE_RATIO: int = (source)

Level difference between signal and noise in dB SPL

Value
40