MakeStimuli#
- MakeStimuli.LoadSoundfile(varargin)#
usage: tone=LoadSoundfile(params, samplerate) inputs:
- param (should have the following fields:)
frequency - frequency of the tone (Hz) amplitude - sound pressure level of the tone (dB) duration - duration of the tone (ms) ramp - length of an rising/falling edge (ascending/descending ramp) (ms)
samplerate - sampling rate in hz
- MakeStimuli.Make2Tone(varargin)#
Note: now we use absolute SPL instead of attenuation!!!
- MakeStimuli.MakeAMNoise(varargin)#
- MakeStimuli.MakeAMTone(varargin)#
- MakeStimuli.MakeAOPulse(varargin)#
this is modified from MakePulse (which is meant for delivering voltage/current pulses and therefore corrects for axopatch scale factor)
this function just delivers a straight AO voltage pulse
- MakeStimuli.MakeAOPulseTrain(varargin)#
- MakeStimuli.MakeASR(varargin)#
makes an ASR (acoustic startle response) stimulus with a white noise prepulse and white noise startle pulse modified from makeASR
Note: now we use absolute SPL instead of attenuation!!!
- MakeStimuli.MakeAsymGPIAS(varargin)#
Note: now we use absolute SPL instead of attenuation!!!
- MakeStimuli.MakeBinTone(varargin)#
Note: this was the original header function tone=MakeTone(frequency,attenuation,duration,samplerate,ramp)
- MakeStimuli.MakeBinWhiteNoise(varargin)#
- MakeStimuli.MakeCFTrainTC(varargin)#
- Creates a CFTrainTC type tone train (a tone train at CF followed by a
test tone) Input
cf - the freq of the tones in train ntones - number of tones isi - inter-stimulus interval, i.e. interval between the
start of previous tone and start of the next tone
toneduration - duration of an individual tone (ms)
- frequency - frequency of the tone (Hz)
amplitude - tone amplitude (dB) start - start of the first tone after the trigger (ms) duration - total duration of the tone train (ms) %%???not used? mw 04.13.06 next - inter-tone-train-interval, i.e. when the next
tone train should follow the previous one (ms)
ramp - rising/falling edge of individual tones samplerate - sampling rate (Hz)
- Output
pulse - the required waveform
mw 111907
- MakeStimuli.MakeChordTrain(varargin)#
- MakeStimuli.MakeClickTrain(varargin)#
- MakeStimuli.MakeDampedTone(varargin)#
- MakeStimuli.MakeEdge(ramp, samplerate)#
- MakeStimuli.MakeFMSweep(varargin)#
Note: now we use absolute SPL instead of attenuation
- MakeStimuli.MakeFMTone(varargin)#
- MakeStimuli.MakeGPIAS(varargin)#
Note: now we use absolute SPL instead of attenuation!!!
- MakeStimuli.MakeGapInNoise(varargin)#
Creates a gap stimulus consisting of a continuous background noise with a gap. The background noise is generated by MakeNoise, see that function for params to use.
given frequency, attenuation, duration, at a given sample rate, with an ascending/descending ramp of a given length, at a given SOA (stimulus onset asynchrony) All lengths (duration, ramp) are in ms frequency is in Hz, attenuation in dB Input:
frequency - frequency of the tone (Hz)
% % % % % % % % % % % attenuation - attenuation of the tone (dB) % % % % % % % % % % % !!!!!attenuation is relative to the max. sound pressure level % % % % % % % % % % % as specified in Prefs.m (pref.maxSPL)
amplitude - sound pressure level of the tone (dB) duration - duration of the tone (ms) samplerate - required sampling rate ramp - length of an rising/falling edge (ascending/descending ramp) (ms) probefreq - frequency of the probe tone (Hz) probeamp - sound pressure level of the probe tone (dB) SOA - stimulus onset asynchrony (time in ms between onset of tone and probe tone)
Output: tone - the specified tone (empty if unsuccessful)
- MakeStimuli.MakeGapInTone(varargin)#
- MakeStimuli.MakeHoldCmd(varargin)#
- MakeStimuli.MakeITDTone(varargin)#
Note: this was the original header function tone=MakeTone(frequency,attenuation,duration,samplerate,ramp)
- MakeStimuli.MakeITDWhiteNoise(varargin)#
- MakeStimuli.MakeNBASR(varargin)#
makes an ASR (acoustic startle response) stimulus with a prepulse and white noise startle pulse modified from makeASR
- MakeStimuli.MakeNoise(varargin)#
- MakeStimuli.MakePulse(varargin)#
NOTE: This was the original header function pulse=MakePulse(start,width,height,npulses,isi,samplerate)
- MakeStimuli.MakePulseTrain(varargin)#
- MakeStimuli.MakeRampedTone(varargin)#
- MakeStimuli.MakeRandomChords(varargin)#
Note: now we use absolute SPL instead of attenuation!!!
- MakeStimuli.MakeSilentSound(varargin)#
Creates a “silent sound”, which is a token of white-noise at -1000 dB SPL this is useful for explicitly collecting spontaneous activity or laser-only as its own stimulus condition
Usage: silentsound=MakeSilentSound(param, samplerate) Inputs: param should have the following fields:
duration - duration of the stimulus (ms) amplitude - sound pressure level of the sound (dB SPL) ramp - length of an ascending/descending edge MS???
samplerate - required sampling rate (Hz)
Output: noise - the requested sample; empty if unsuccessful
- MakeStimuli.MakeTone(varargin)#
usage: tone=MakeTone(params, samplerate) inputs:
- param (should have the following fields:)
frequency - frequency of the tone (Hz) amplitude - sound pressure level of the tone (dB) duration - duration of the tone (ms) ramp - length of an rising/falling edge (ascending/descending ramp) (ms)
samplerate - sampling rate in hz
- MakeStimuli.MakeToneTrain(varargin)#
Creates a tone train Input
ntones - number of tones isi - inter-stimulus interval, i.e. interval between the
start of previous tone and start of the next tone
toneduration - duration of an individual tone (ms)
- frequency - frequency of the tone (Hz)
amplitude - tone amplitude (dB) start - start of the first tone after the trigger (ms) duration - total duration of the tone train (ms) %%???not used? mw 04.13.06 next - inter-tone-train-interval, i.e. when the next
tone train should follow the previous one (ms)
ramp - rising/falling edge of individual tones samplerate - sampling rate (Hz)
- Output
pulse - the required waveform
- MakeStimuli.MakeWhiteNoise(varargin)#
Creates a gaussian white-noise sample with the given parameters
Usage: noise=MakeWhiteNoise(param, samplerate)
Inputs: param should have the following fields:
duration - duration of the stimulus (ms) amplitude - sound pressure level of the sound (dB) ramp - length of an ascending/descending edge in ms
samplerate - required sampling rate (Hz)
Output: noise - the requested sample; empty if unsuccessful
- MakeStimuli.MaketoneGPIAS(varargin)#
Note: now we use absolute SPL instead of attenuation!!!