- Run
annotate_export_split_SFS.bat
to annotate, extract durations of annotated utterances to a csv file, and split the annotated continuous file into short wav files based on delimeters of annotations. - Split wav files will be used in PraatR to extract pitch values:
praatrPitchLoop.R
- Run
praatr_analyse.R
to summarise and plot acquired values.
- Run
gogo_loop.m
– use different baseline for self-production (-49 1) than other conditions (50 101). Epoch -49 350 is fine. - Matlab script (
gogo_loop.m
) has to be located in the EEGLab folder - C:\eeglab13_0_1b – EEGLab folders have to be in the Matlab path - The files are saved in the L0n folders in the current Matlab folder.
- Use
ffr_averages.R
- Create new folders with the relevant txt files - use
copy_all_type.bat
- Run
makeGA.m
(modify the source folder) - typemakeGA
on the command line
- Basic version:
doFFT.m
- Loop:
doFFT_eryk_loop.m
- Extracts 10% at the beginning, middle, and end of each file:
doFFT_eryk_loop_percentage_bme_onAVG.m
- Use
mat2txt.m
- Plot the averages from .mat files using
load_and_plot_GAs.m
- Plot individual files using .avg files (created with Tim’s script) using
ffr_plot_ind_loop.R
- Use
bt_txt2avg.m
in BT2013
bt_txt2avg('filename.txt', 6855, -15.8, 58.89)
where filename.txt is the exported brainstem data file, 6855 is the sampling rate, -15.8 corresponds to the start time (ms) of the response epoch and 58.89 corresponds to the time at the end the response epoch. (In this example, the recording window is 74.69 ms) e.g.
bt_txt2avg('perc-fall.txt', 16384, -49, 350)
Use the script: txt2avg_script.m
- BT2013 must be the current Matlab folder
- Use the command
wav2avg('xxxxxxx_self_01.wav', 16384)
The sampling rate of stimulus and response avg file has to be the same.
- Run the script
wavButter.m
- In R:
library(seewave)
savewav(FFR_vector, f = 16384)
- Find the output of
gogo_loop.m
- Use
txt2praat.R
- Start the GUI by typing
bt_ptgui
in Matlab - Load the response (avg), stimulus (avg), and adjust the settings.
- Excel output is saved in /output_files
- Make ERPs (without ICA) using
makeERPs.m
- Run ICA on filtered/epoched data using
ICA_loop_catch.m
- Average ERPs and append them
- Channel order for plotting ERPs: 1 5 6 2 7 8 3 4 9
- Select software OpenGL rendering in Matlab (to enable plotting in Homer2):
matlab -softwareopengl