Skip to content

dfSetAudFB()

Dante Smith edited this page Jan 7, 2022 · 1 revision

Link to File
Author: Dante

[p, SSNw, SSNfs] = dfSetAudFB(expParam, dirs, p) sets the type of auditory feedback (AF) to be used in experiments investigating vocal-motor control using Audapter.

This function updates the Audapter variable p and passes it back to be used by the other experimental scripts. In experiments requiring Speech-Shaped masking Noise (SSN), this function also generates the waveform to be played as masking noise during those experimental tasks.

Auditory feedback is set by checking the value of expParam.AudFBSw. At the moment this scripts only creates experimental parameters for three Auditory feedback conditions. They are the following:
expParam.AudFBSw = 0: NORMAL AUDITORY FEEDBACK OF SPOKEN VOICE (Default)
expParam.AudFBSw = 1: PITCH-SHIFTED AUDITORY FEEDBACK OF SPOKEN VOICE
expParam.AudFBSw = 2: SPEECH-SHAPED MASKING NOISE (NO SPOKEN VOICE)

INPUTS
expParam : Structure of experimental parameters. This structure is passed around to nearly all of the functions involved with the experimental setup and has full detail of the necessary parameters set for the experiments that are performed.
dirs : Structure of the file directories set for the computer in use.
p : Structure of Audapter parameters generated by getAudapterDefaultParams and set when AudapterIO is initialized.

OUTPUTS
p : Structure of Audapter parameters generated by getAudapterDefaultParams and set when AudapterIO is initialized. This structure is updated in this script and then passed back to the top-level function.
SSNw : Vector of the Speech-Shaped Noise (SSN) waveform. In experiments that require SSN this will generate a waveform to be played while Audapter is active. In experiments where it is not needed, it is an empty value.
SSNfs : Integer value of the sampling frequency for the SSN waveform produced in experiments where this form of feedback is selected. When it is not selected it is an empty value.