module documentation

Gap detection experiment by Schneider, 1999 DOI: 10.1121/1.427062

Function generate_stimulus No summary
Constant MARKER_DURATIONS The durations of the marker (in seconds) used in the paper
Constant SIGNAL_FREQUENCY Frequency for the sinusoid used in the paper
Constant SIGNAL_LEVEL 90 dB SPL
def generate_stimulus(t, sinusoid_frequency=SIGNAL_FREQUENCY, stimulus_start=0.2, marker_duration=0.002, gap_length=0.001, with_gap=True): (source)
Parameters
t:np.ndarraytime-vector
sinusoid_frequency:floatfrequency of the target signal (see SIGNAL_FREQUENCY for frequency used in the paper)
stimulus_start:floatwhen to start the experiment
marker_duration:floatduration of preceding marker
gap_length:floatduration of the gap
with_gap:boolproduce the stimulus with or without a gap
Returns
MARKER_DURATIONS = (source)

The durations of the marker (in seconds) used in the paper

Value
np.array([0.83, 2.5, 5.0, 40.0, 200.0, 500.0])*0.001
SIGNAL_FREQUENCY: float = (source)

Frequency for the sinusoid used in the paper

Value
2000.0
SIGNAL_LEVEL: int = (source)

90 dB SPL

Value
90