%% Example: Percussive Tone
% Load a synthetic Percussive tone sampled at 96 kHz. Set the frequency range from 1 Hz to 25 kHz.

load synthPercussiveTone

minFreq = 1;
maxFreq = 25e3;

% Calculate the Constant-q Gabor Transform of the percussive tone. You can clearly view the successive attacks and the constant low frequency component at 1 kHz.

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

% Copyright 2019 The MathWorks, Inc.