%% Example: Electric Guitar
% Load an audio file containing a fragment of rock music with vocals, drums, and guitar. The signal has a sample rate of 16 kHz.

load ElectricGuitarSolo

% Set the frequency range over which the CQT has a logarithmic frequency response to be the minimum allowable frequency to 2 kHz. Perform the CQT of the signal using 96 bins per octave.

minFreq = Fs/length(audio);
maxFreq = 2000;
cqt(audio,'SamplingFrequency',Fs,'BinsPerOctave',96,'FrequencyLimits',[minFreq maxFreq])

% Copyright 2019 The MathWorks, Inc.