comparison data/model/IntervalModel.h @ 1040:a1cd5abcb38b cxx11

Introduce and use a samplerate type
author Chris Cannam
date Wed, 04 Mar 2015 12:01:04 +0000
parents cc27f35aa75c
children 0559f25b99f2
comparison
equal deleted inserted replaced
1039:b14064bd1f97 1040:a1cd5abcb38b
27 27
28 template <typename PointType> 28 template <typename PointType>
29 class IntervalModel : public SparseValueModel<PointType> 29 class IntervalModel : public SparseValueModel<PointType>
30 { 30 {
31 public: 31 public:
32 IntervalModel(int sampleRate, int resolution, 32 IntervalModel(sv_samplerate_t sampleRate, int resolution,
33 bool notifyOnAdd = true) : 33 bool notifyOnAdd = true) :
34 SparseValueModel<PointType>(sampleRate, resolution, notifyOnAdd) 34 SparseValueModel<PointType>(sampleRate, resolution, notifyOnAdd)
35 { } 35 { }
36 36
37 IntervalModel(int sampleRate, int resolution, 37 IntervalModel(sv_samplerate_t sampleRate, int resolution,
38 float valueMinimum, float valueMaximum, 38 float valueMinimum, float valueMaximum,
39 bool notifyOnAdd = true) : 39 bool notifyOnAdd = true) :
40 SparseValueModel<PointType>(sampleRate, resolution, 40 SparseValueModel<PointType>(sampleRate, resolution,
41 valueMinimum, valueMaximum, 41 valueMinimum, valueMaximum,
42 notifyOnAdd) 42 notifyOnAdd)