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 |
Function for generating the stimulus |
Constant | SIGNAL |
Duration of the target signal |
Constant | SIGNAL |
Frequencies of the sinusoid used in the original paper |
Constant | SIGNAL |
Levels of the sinusoid used in the original paper |
Constant | SIGNAL |
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 | |
t | time-vector |
sinusoidfloat | frequency of the target signal (see SIGNAL_FREQUENCIES for frequencies used in the paper) |
sinusoidfloat | level of the target signal (see SIGNAL_LEVELS for frequencies used in the paper) |
gapfloat | length of the gap |
signalfloat | time-point for starting the signal |
Returns | |
np.ndarray |