Skip to content

Commit 76c5489

Browse files
committed
work in debug
1 parent 69df45f commit 76c5489

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

input/equateRmsWav.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ function equateRmsWav(subjName)
3535

3636
end
3737

38-
3938
function runFunction (referenceWavFn,targetWavFn)
40-
%% This Script takes a file (targetWavFn) and equates its rms with
39+
% This Script takes a file (targetWavFn) and equates its rms with
4140
% another reference audio file (referenceWavFn) amd gives the equated
4241
% wav file as an output ('final_wave.wav')
4342

@@ -65,10 +64,9 @@ function runFunction (referenceWavFn,targetWavFn)
6564
finalRms = rms(finalWav);
6665
disp('rms of the final wav file')
6766
disp(finalRms)
68-
%wavwrite(new_wave,'new_wave.wav')
69-
%audiowrite(target_wav_fn,final_wave,FS_reference)
70-
%wavwrite(final_wave,FS_reference,16,['rms_',target_wav_fn])
67+
7168
audiowrite([targetWavFn(1:end-4), '_rms.wav'],finalWav,referenceFs)
69+
7270
%% plot the reference wav and final wav files
7371
figure()
7472
subplot(2,1,1)

setParameters.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
%% Debug mode settings
1414

15-
cfg.debug.do = false; % To test the script out of the scanner, skip PTB sync
15+
cfg.debug.do = true; % To test the script out of the scanner, skip PTB sync
1616
cfg.debug.smallWin = false; % To test on a part of the screen, change to 1
1717
cfg.debug.transpWin = false; % To test with trasparent full size screen
1818

0 commit comments

Comments
 (0)