Commit ee879140 authored by Jesse Heckman's avatar Jesse Heckman
Browse files

update calibration

parent 1823f323
...@@ -43,7 +43,7 @@ delay = 0; % [ms] ...@@ -43,7 +43,7 @@ delay = 0; % [ms]
atten = 0; % [dB] attenuation atten = 0; % [dB] attenuation
% Speaker selection % Speaker selection
dum = spherelookupMinor; dum = pb_vLookup;
nSpeakers = dum.nspeakers; nSpeakers = dum.nspeakers;
speakers = dum.lookup; speakers = dum.lookup;
speakers = speakers(~isnan(speakers(:,5)),:); % remove NaN entries (i.e. unused MUX channels speakers = speakers(~isnan(speakers(:,5)),:); % remove NaN entries (i.e. unused MUX channels
...@@ -154,34 +154,34 @@ tArray = (1:length(Sounds.in)) / fsRZ6; ...@@ -154,34 +154,34 @@ tArray = (1:length(Sounds.in)) / fsRZ6;
% Time domain % Time domain
figure(1); figure(1);
subplot(411); subplot(211);
plot(tArray,Sounds.in); plot(tArray,Sounds.in);
title('sent to TDT'); title('sent to TDT');
subplot(412); % subplot(412);
plot(tArray,Sounds.out); % plot(tArray,Sounds.out);
title('Played by TDT'); % title('Played by TDT');
subplot(413); subplot(212);
plot(tArray,Sounds.recorded); plot(tArray,Sounds.recorded);
title('Recorded'); title('Recorded');
xlabel('# of samples'); xlabel('# of samples');
freqs = linspace(1,fsRZ6,nsamples); freqs = linspace(1,fsRZ6,nsamples);
% F-domain % % F-domain
figure(2); % figure(2);
subplot(4,1,1); % subplot(2,1,1);
getpower(Sounds.in,length(Sounds.in),'display',2); % getpower(Sounds.in,length(Sounds.in),'display',2);
title('sent to TDT'); % title('sent to TDT');
subplot(4,1,2); % subplot(4,1,2);
getpower(Sounds.out, length(Sounds.in),'display',2); % getpower(Sounds.out, length(Sounds.in),'display',2);
title('Played by TDT'); % title('Played by TDT');
subplot(4,1,3); % subplot(2,1,2);
getpower(Sounds.recorded,length(Sounds.in),'display',2); % getpower(Sounds.recorded,length(Sounds.in),'display',2);
title('Recorded'); % title('Recorded');
xlabel('Frequencies'); % xlabel('Frequencies');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment