module documentation

Gap detection experiment by Moore et al., 1989 DOI: 10.1121/1.397457

Function generate_stimulus Function for generating the stimulus
Constant GAP_LENGTHS Gap lengths used in the paper (0.0 is the no-gap condition)
Constant NOISE_SPECTRUM_PATH Path to spectrum shape of the masking noise
Constant SIGNAL_DURATION Target length of the signal (see paper for details)
Constant SIGNAL_FREQUENCY Frequency of the sinusoid (they always used 1kHz)
Constant SIGNAL_LEVEL Level of the sinusoid used in the original paper (they always used 80 dB SPL)
Constant SIGNAL_TO_NOISE_RATIO Level difference between signal and noise in dB SPL
def generate_stimulus(t, gap_length=0, signal_start=0.2): (source)

Function for generating the stimulus

Parameters
ttime-vector
gap_length:floatlength of the gap (see GAP_LENGTHS for gap lengths used in the paper)
signal_start:floattime-point for starting the signal
Returns
np.ndarray
GAP_LENGTHS = (source)

Gap lengths used in the paper (0.0 is the no-gap condition)

Value
0.001*np.array([0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5, 6.0]
)
NOISE_SPECTRUM_PATH = (source)

Path to spectrum shape of the masking noise

Value
os.path.join(os.path.dirname(__file__),
             'data/moore_et_al_1988__noise_profile_1khz.csv')
SIGNAL_DURATION: float = (source)

Target length of the signal (see paper for details)

Value
0.4
SIGNAL_FREQUENCY: float = (source)

Frequency of the sinusoid (they always used 1kHz)

Value
1000.0
SIGNAL_LEVEL: int = (source)

Level of the sinusoid used in the original paper (they always used 80 dB SPL)

Value
80
SIGNAL_TO_NOISE_RATIO: int = (source)

Level difference between signal and noise in dB SPL

Value
34