Mercurial > hg > match-vamp
comparison src/MatchVampPlugin.cpp @ 148:d307803083e6 structure
Some conversion fixes
author | Chris Cannam |
---|---|
date | Thu, 22 Jan 2015 16:55:27 +0000 |
parents | 6914a6a01ffc |
children | fcf0dd0166b1 |
comparison
equal
deleted
inserted
replaced
147:3673e2dae6a7 | 148:d307803083e6 |
---|---|
209 desc.identifier = "silencethreshold"; | 209 desc.identifier = "silencethreshold"; |
210 desc.name = "Silence Threshold"; | 210 desc.name = "Silence Threshold"; |
211 desc.description = "Total frame energy threshold below which a feature will be regarded as silent"; | 211 desc.description = "Total frame energy threshold below which a feature will be regarded as silent"; |
212 desc.minValue = 0; | 212 desc.minValue = 0; |
213 desc.maxValue = 1; | 213 desc.maxValue = 1; |
214 desc.defaultValue = m_defaultFcParams.silenceThreshold; | 214 desc.defaultValue = (float)m_defaultFcParams.silenceThreshold; |
215 desc.isQuantized = false; | 215 desc.isQuantized = false; |
216 list.push_back(desc); | 216 list.push_back(desc); |
217 | 217 |
218 desc.identifier = "gradientlimit"; | 218 desc.identifier = "gradientlimit"; |
219 desc.name = "Gradient Limit"; | 219 desc.name = "Gradient Limit"; |
280 } else if (name == "zonewidth") { | 280 } else if (name == "zonewidth") { |
281 return (float)m_params.blockTime; | 281 return (float)m_params.blockTime; |
282 } else if (name == "smooth") { | 282 } else if (name == "smooth") { |
283 return m_smooth ? 1.0 : 0.0; | 283 return m_smooth ? 1.0 : 0.0; |
284 } else if (name == "silencethreshold") { | 284 } else if (name == "silencethreshold") { |
285 return m_fcParams.silenceThreshold; | 285 return (float)m_fcParams.silenceThreshold; |
286 } | 286 } |
287 | 287 |
288 return 0.0; | 288 return 0.0; |
289 } | 289 } |
290 | 290 |