comparison examples/ZeroCrossing.cpp @ 49:aa64a46320d4

* Rename "name" and "description" to "identifier" and "name"; add new "description" that actually contains a description
author cannam
date Mon, 26 Feb 2007 18:08:48 +0000
parents be8fdfe25693
children 1982246a3902
comparison
equal deleted inserted replaced
48:f46bf5e0fa42 49:aa64a46320d4
52 ZeroCrossing::~ZeroCrossing() 52 ZeroCrossing::~ZeroCrossing()
53 { 53 {
54 } 54 }
55 55
56 string 56 string
57 ZeroCrossing::getName() const 57 ZeroCrossing::getIdentifier() const
58 { 58 {
59 return "zerocrossing"; 59 return "zerocrossing";
60 } 60 }
61 61
62 string 62 string
63 ZeroCrossing::getName() const
64 {
65 return "Zero Crossings";
66 }
67
68 string
63 ZeroCrossing::getDescription() const 69 ZeroCrossing::getDescription() const
64 { 70 {
65 return "Zero Crossings"; 71 return "Detect and count zero crossing points";
66 } 72 }
67 73
68 string 74 string
69 ZeroCrossing::getMaker() const 75 ZeroCrossing::getMaker() const
70 { 76 {
104 ZeroCrossing::getOutputDescriptors() const 110 ZeroCrossing::getOutputDescriptors() const
105 { 111 {
106 OutputList list; 112 OutputList list;
107 113
108 OutputDescriptor zc; 114 OutputDescriptor zc;
109 zc.name = "counts"; 115 zc.identifier = "counts";
116 zc.name = "Zero Crossing Counts";
117 zc.description = "The number of zero crossing points per processing block";
110 zc.unit = "crossings"; 118 zc.unit = "crossings";
111 zc.description = "Zero Crossing Counts";
112 zc.hasFixedBinCount = true; 119 zc.hasFixedBinCount = true;
113 zc.binCount = 1; 120 zc.binCount = 1;
114 zc.hasKnownExtents = false; 121 zc.hasKnownExtents = false;
115 zc.isQuantized = true; 122 zc.isQuantized = true;
116 zc.quantizeStep = 1.0; 123 zc.quantizeStep = 1.0;
117 zc.sampleType = OutputDescriptor::OneSamplePerStep; 124 zc.sampleType = OutputDescriptor::OneSamplePerStep;
118 list.push_back(zc); 125 list.push_back(zc);
119 126
120 zc.name = "zerocrossings"; 127 zc.identifier = "zerocrossings";
128 zc.name = "Zero Crossings";
129 zc.description = "The locations of zero crossing points";
121 zc.unit = ""; 130 zc.unit = "";
122 zc.description = "Zero Crossings";
123 zc.hasFixedBinCount = true; 131 zc.hasFixedBinCount = true;
124 zc.binCount = 0; 132 zc.binCount = 0;
125 zc.sampleType = OutputDescriptor::VariableSampleRate; 133 zc.sampleType = OutputDescriptor::VariableSampleRate;
126 zc.sampleRate = m_inputSampleRate; 134 zc.sampleRate = m_inputSampleRate;
127 list.push_back(zc); 135 list.push_back(zc);