Mercurial > hg > qm-vamp-plugins
comparison plugins/SegmenterPlugin.cpp @ 214:23b2a2f93c5a
Merge from branch MSVC
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 27 Apr 2018 15:48:50 +0100 |
parents | af6a5ba00a8f |
children |
comparison
equal
deleted
inserted
replaced
186:8dca49290db9 | 214:23b2a2f93c5a |
---|---|
196 nSegmentTypes = int(value + 0.0001); | 196 nSegmentTypes = int(value + 0.0001); |
197 return; | 197 return; |
198 } | 198 } |
199 | 199 |
200 if (param == "featureType") { | 200 if (param == "featureType") { |
201 if (featureType != feature_types(value)) // feature type changed, create a new segmenter | 201 int nval = int(value + 0.5); |
202 { | 202 if (featureType != feature_types(nval)) { // feature type changed, create a new segmenter |
203 featureType = feature_types(value); | 203 featureType = feature_types(nval); |
204 makeSegmenter(); | 204 makeSegmenter(); |
205 } | 205 } |
206 return; | 206 return; |
207 } | 207 } |
208 | 208 |