% Jon Newman
% Ga Tech

% 11 May 2010

% Play intra/extracellular recording simultaneously using the functions I
% created for this purpose and a continously extracted data set

% Specify tank and block and plot parameters
% *************************************************************************
tankID = 'C:\TempData\20100420\20100420-27';
windsize = 200; % ms
recRange = [-100 50]; %pA
zoomrange = []; % crop range, sec
asdrtimebin = 0.05; % sec
% *************************************************************************

[fid file] = queryfid(tankID);
load(fid);

% Create neurosound objects and play them together
% ns1 =
% neurosound(data.extrarec.spiketime-data.trange(1),data.sampfreq,'disc');
ns1 = neurosound(data.extrarec.spiketime-495,data.sampfreq,'disc',0.5);
ns2 = neurosound(data.intrarec.imon,data.sampfreq,'cont',0.5,0.15);
play(ns1);play(ns2);