Mercurial > hg > btrack
comparison src/BTrack.cpp @ 29:bddd59087c36 develop
Overloaded initialise in OnsetDetectionFunction so the hopSize and frameSize can be set independently of the window type and onset detection function type
author | Adam <adamstark.uk@gmail.com> |
---|---|
date | Tue, 28 Jan 2014 00:49:53 +0000 |
parents | 7af87d3f2ce2 |
children |
comparison
equal
deleted
inserted
replaced
28:7af87d3f2ce2 | 29:bddd59087c36 |
---|---|
150 | 150 |
151 //======================================================================= | 151 //======================================================================= |
152 void BTrack::updateHopAndFrameSize(int hopSize_,int frameSize_) | 152 void BTrack::updateHopAndFrameSize(int hopSize_,int frameSize_) |
153 { | 153 { |
154 // update the onset detection function object | 154 // update the onset detection function object |
155 odf.initialise(hopSize_, frameSize_, ComplexSpectralDifferenceHWR, HanningWindow); | 155 odf.initialise(hopSize_, frameSize_); |
156 | 156 |
157 // update the hop size being used by the beat tracker | 157 // update the hop size being used by the beat tracker |
158 setHopSize(hopSize_); | 158 setHopSize(hopSize_); |
159 } | 159 } |
160 | 160 |