comparison src/BTrack.cpp @ 28:7af87d3f2ce2 develop

Added a function to allow updates to the hop and frame size of the beat tracker
author Adam <adamstark.uk@gmail.com>
date Tue, 28 Jan 2014 00:31:17 +0000
parents e4d5f045064d
children bddd59087c36
comparison
equal deleted inserted replaced
27:98f7a54faa0c 28:7af87d3f2ce2
147 } 147 }
148 } 148 }
149 } 149 }
150 150
151 //======================================================================= 151 //=======================================================================
152 void BTrack::updateHopAndFrameSize(int hopSize_,int frameSize_)
153 {
154 // update the onset detection function object
155 odf.initialise(hopSize_, frameSize_, ComplexSpectralDifferenceHWR, HanningWindow);
156
157 // update the hop size being used by the beat tracker
158 setHopSize(hopSize_);
159 }
160
161 //=======================================================================
152 bool BTrack::beatDueInCurrentFrame() 162 bool BTrack::beatDueInCurrentFrame()
153 { 163 {
154 return beatDueInFrame; 164 return beatDueInFrame;
155 } 165 }
156 166