diff --git a/generateStim_HugginsPitch/huggins_3AFC.m b/generateStim_HugginsPitch/huggins_3AFC.m index ee213f4..38c54f6 100644 --- a/generateStim_HugginsPitch/huggins_3AFC.m +++ b/generateStim_HugginsPitch/huggins_3AFC.m @@ -46,7 +46,11 @@ %% Make an pure noise example to calibrate sound level fname = 'HugginsPitch_calibration.flac'; -signal = makeNoise(10,SampFreq); +signal = []; +for i = 1:5 %5 intervals of sound + sig = makeNoise(burstLength,SampFreq);%Make noise burst + signal = [signal;sig;zeros(SampFreq*intervalLength,2)]; +end audiowrite([path_out fname], signal, SampFreq); %% Make an example with the tone present in the 2nd noise @@ -93,4 +97,4 @@ end end -fprintf('+++ Special note from Sijia: If you saw a warning saying "Warning: Data clipped when writing file.". Ignore it, not a problem here. +++\n'); \ No newline at end of file +fprintf('+++ Special note from Sijia: If you saw a warning saying "Warning: Data clipped when writing file.". Ignore it, not a problem here. +++\n');