Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions generateStim_HugginsPitch/huggins_3AFC.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');
fprintf('+++ Special note from Sijia: If you saw a warning saying "Warning: Data clipped when writing file.". Ignore it, not a problem here. +++\n');