% Read with downsampling, sample range restriction, and forced
% single channel
addpath('m4aread');
%s=dir('*.m4a');
firstsamp = 30001;
lastsamp = 1000000;
forcemono = 1;
downsamp = 2; % 2:1 downsampling
%[d,sr] = m4aread('jazz.m4a',[firstsamp lastsamp],forcemono,downsamp);
[d,fs] = audioread('josh-note.m4a');
size(d)

% What did that give us?
%subplot(212)
%specgram(d,512,sr);

