Mercurial > hg > libxtract
comparison src/descriptors.c @ 51:5306739416cf
Added desc and p_desc fields to descriptor definitions
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Tue, 09 Jan 2007 11:30:44 +0000 |
parents | 435be4a78aac |
children | 45c585bb7996 |
comparison
equal
deleted
inserted
replaced
50:435be4a78aac | 51:5306739416cf |
---|---|
24 #define XTRACT | 24 #define XTRACT |
25 | 25 |
26 void *xtract_make_descriptors(){ | 26 void *xtract_make_descriptors(){ |
27 | 27 |
28 t_function_descriptor *fd, *d; | 28 t_function_descriptor *fd, *d; |
29 t_type *type; | |
29 int f , F; | 30 int f , F; |
30 char *name, *pretty_name; | 31 char *name, *p_name, *desc, *p_desc, *author; |
31 int *n_args; | 32 int *argc, *year; |
32 | 33 |
33 f = F = XTRACT_FEATURES; | 34 f = F = XTRACT_FEATURES; |
34 | 35 |
35 fd = malloc(XTRACT_FEATURES * sizeof(t_function_descriptor)); | 36 fd = malloc(XTRACT_FEATURES * sizeof(t_function_descriptor)); |
36 | 37 |
38 | |
37 while(f--){ | 39 while(f--){ |
40 | |
38 d = &fd[f]; | 41 d = &fd[f]; |
42 argc = &d->argc; | |
43 type = &d->argv.type; | |
44 | |
39 switch(f){ | 45 switch(f){ |
40 case MEAN: | 46 case MEAN: |
41 case VARIANCE: | 47 case VARIANCE: |
42 case STANDARD_DEVIATION: | 48 case STANDARD_DEVIATION: |
43 case AVERAGE_DEVIATION: | 49 case AVERAGE_DEVIATION: |
47 case ODD_EVEN_RATIO: | 53 case ODD_EVEN_RATIO: |
48 case LOWEST_VALUE: | 54 case LOWEST_VALUE: |
49 case F0: | 55 case F0: |
50 case FAILSAFE_F0: | 56 case FAILSAFE_F0: |
51 case TONALITY: | 57 case TONALITY: |
52 d->n_args = 1; | 58 *argc = 1; |
53 d->argv.type = FLOAT; | 59 d->argv.type = FLOAT; |
54 break; | 60 break; |
55 case SKEWNESS: | 61 case SKEWNESS: |
56 case KURTOSIS: | 62 case KURTOSIS: |
57 case PEAKS: | 63 case PEAKS: |
58 case HARMONICS: | 64 case HARMONICS: |
59 case NOISINESS: | 65 case NOISINESS: |
60 case CREST: | 66 case CREST: |
61 d->n_args = 2; | 67 *argc = 2; |
62 d->argv.type = FLOAT; | 68 d->argv.type = FLOAT; |
63 break; | 69 break; |
64 case MFCC: | 70 case MFCC: |
65 d->n_args = 1; | 71 *argc = 1; |
66 d->argv.type = MEL_FILTER; | 72 d->argv.type = MEL_FILTER; |
67 break; | 73 break; |
68 case BARK_COEFFICIENTS: | 74 case BARK_COEFFICIENTS: |
69 d->n_args = BARK_BANDS; | 75 *argc = BARK_BANDS; |
70 d->argv.type = INT; | 76 d->argv.type = INT; |
71 break; | 77 break; |
72 case CENTROID: | 78 case CENTROID: |
73 case IRREGULARITY_K: | 79 case IRREGULARITY_K: |
74 case IRREGULARITY_J: | 80 case IRREGULARITY_J: |
94 case AUTOCORRELATION_FFT: | 100 case AUTOCORRELATION_FFT: |
95 case DCT: | 101 case DCT: |
96 case AUTOCORRELATION: | 102 case AUTOCORRELATION: |
97 case AMDF: | 103 case AMDF: |
98 case ASDF: | 104 case ASDF: |
99 d->n_args = 0; | 105 *argc = 0; |
100 break; | 106 break; |
101 default: | 107 default: |
102 d->n_args = 0; | 108 *argc = 0; |
103 break; | 109 break; |
104 } | 110 } |
111 | |
105 name = d->algo.name; | 112 name = d->algo.name; |
106 pretty_name = d->algo.pretty_name; | 113 p_name = d->algo.p_name; |
107 n_args = d->n_args; | 114 desc = d->algo.desc; |
115 p_desc = d->algo.p_desc; | |
116 author = d->algo.author; | |
117 year = &d->algo.year; | |
118 | |
119 *year = 0; | |
120 | |
108 switch(f){ | 121 switch(f){ |
109 case MEAN: | 122 case MEAN: |
110 strcpy(name, "mean"); | 123 strcpy(name, "mean"); |
111 strcpy(pretty_name, "Mean"); | 124 strcpy(p_name, "Spectral Mean"); |
125 strcpy(desc, "Extract the mean of an input vector"); | |
126 strcpy(p_desc, "Extract the mean of a audio spectrum"); | |
127 strcpy(author, ""); | |
112 break; | 128 break; |
113 case VARIANCE: | 129 case VARIANCE: |
114 strcpy(name, "variance"); | 130 strcpy(name, "variance"); |
115 strcpy(pretty_name, "Variance"); | 131 strcpy(p_name, "Variance"); |
132 strcpy(desc, "Extract the variance of an input vector"); | |
133 strcpy(p_desc, "Extract the variance of an audio spectrum"); | |
134 strcpy(author, ""); | |
116 break; | 135 break; |
117 case STANDARD_DEVIATION: | 136 case STANDARD_DEVIATION: |
118 strcpy(name, "standard_deviation"); | 137 strcpy(name, "standard_deviation"); |
119 strcpy(pretty_name, "Standard Deviation"); | 138 strcpy(p_name, "Standard Deviation"); |
139 strcpy(desc, "Extract the standard deviation of an input \ | |
140 vector"); | |
141 strcpy(p_desc, "Extract the standard deviation of an audio \ | |
142 spectrum"); | |
143 strcpy(author, ""); | |
120 break; | 144 break; |
121 case AVERAGE_DEVIATION: | 145 case AVERAGE_DEVIATION: |
122 strcpy(name, "average_deviation"); | 146 strcpy(name, "average_deviation"); |
123 strcpy(pretty_name, "Average Deviation"); | 147 strcpy(p_name, "Average Deviation"); |
148 strcpy(desc, "Extract the average deviation of an input vector"); | |
149 strcpy(p_desc, "Extract the average deviation of an audio \ | |
150 spectrum"); | |
151 strcpy(author, ""); | |
124 break; | 152 break; |
125 case ROLLOFF: | 153 case ROLLOFF: |
126 strcpy(name, "rolloff"); | 154 strcpy(name, "rolloff"); |
127 strcpy(pretty_name, "Spectral Rolloff"); | 155 strcpy(p_name, "Spectral Rolloff"); |
156 strcpy(desc, "Extract the rolloff point of a spectrum"); | |
157 strcpy(p_desc, "Extract the rolloff point of an audio \ | |
158 spectrum"); | |
159 strcpy(author, ""); | |
128 break; | 160 break; |
129 case INHARMONICITY: | 161 case INHARMONICITY: |
130 strcpy(name, "inharmonicity"); | 162 strcpy(name, "inharmonicity"); |
131 strcpy(pretty_name, "Inharmonicity"); | 163 strcpy(p_name, "Inharmonicity"); |
164 strcpy(desc, "Extract the inharmonicity of a spectrum"); | |
165 strcpy(p_desc, "Extract the inharmonicity of an audio \ | |
166 spectrum"); | |
167 strcpy(author, ""); | |
132 break; | 168 break; |
133 case MAGNITUDE_SPECTRUM: | 169 case MAGNITUDE_SPECTRUM: |
134 strcpy(name, "magnitude_spectrum"); | 170 strcpy(name, "magnitude_spectrum"); |
135 strcpy(pretty_name, "Magnitude Spectrum"); | 171 strcpy(p_name, "Magnitude Spectrum"); |
172 strcpy(desc, "Extract the magnitude spectrum of an input \ | |
173 vector"); | |
174 strcpy(p_desc, "Extract the magnitude spectrum of an \ | |
175 audio signal"); | |
176 strcpy(author, ""); | |
136 break; | 177 break; |
137 case ODD_EVEN_RATIO: | 178 case ODD_EVEN_RATIO: |
138 strcpy(name, "odd_even_ratio"); | 179 strcpy(name, "odd_even_ratio"); |
139 strcpy(pretty_name, "Odd/Even Harmonic Ratio"); | 180 strcpy(p_name, "Odd/Even Harmonic Ratio"); |
181 strcpy(desc, "Extract the odd-to-even harmonic ratio of a \ | |
182 spectrum"); | |
183 strcpy(p_desc, "Extract the odd-to-even harmonic ratio of an \ | |
184 audio spectrum"); | |
185 strcpy(author, ""); | |
140 break; | 186 break; |
141 case LOWEST_VALUE: | 187 case LOWEST_VALUE: |
142 strcpy(name, "lowest_value"); | 188 strcpy(name, "lowest_value"); |
143 strcpy(pretty_name, "Lowest Value"); | 189 strcpy(p_name, "Lowest Value"); |
190 strcpy(desc, "Extract the lowest value from an input vector"); | |
191 strcpy(p_desc, "Extract the lowest value from a given range"); | |
192 strcpy(author, ""); | |
144 break; | 193 break; |
145 case F0: | 194 case F0: |
146 strcpy(name, "f0"); | 195 strcpy(name, "f0"); |
147 strcpy(pretty_name, "Fundamental Frequency"); | 196 strcpy(p_name, "Fundamental Frequency"); |
197 strcpy(desc, "Extract the fundamental frequency of a signal"); | |
198 strcpy(p_desc, "Extract the fundamental frequency of an audio \ | |
199 signal"); | |
200 strcpy(author, ""); | |
148 break; | 201 break; |
149 case FAILSAFE_F0: | 202 case FAILSAFE_F0: |
150 strcpy(name, "failsafe_f0"); | 203 strcpy(name, "failsafe_f0"); |
151 strcpy(pretty_name, "Fundamental Frequency (failsafe)"); | 204 strcpy(p_name, "Fundamental Frequency (failsafe)"); |
205 strcpy(desc, "Extract the fundamental frequency of a signal"); | |
206 strcpy(p_desc, "Extract the fundamental frequency of an audio \ | |
207 signal"); | |
208 strcpy(author, ""); | |
152 break; | 209 break; |
153 case TONALITY: | 210 case TONALITY: |
154 strcpy(name, "tonality"); | 211 strcpy(name, "tonality"); |
155 strcpy(pretty_name, "Tonality"); | 212 strcpy(p_name, "Tonality"); |
213 strcpy(desc, "Extract the tonality of a spectrum"); | |
214 strcpy(p_desc, "Extract the tonality an audio spectrum"); | |
215 strcpy(author, ""); | |
156 break; | 216 break; |
157 case SKEWNESS: | 217 case SKEWNESS: |
158 strcpy(name, "skewness"); | 218 strcpy(name, "skewness"); |
159 strcpy(pretty_name, "Spectral Skewness"); | 219 strcpy(p_name, "Spectral Skewness"); |
220 strcpy(desc, "Extract the skewness of an input vector"); | |
221 strcpy(p_desc, "Extract the skewness of an audio spectrum"); | |
222 strcpy(author, ""); | |
160 break; | 223 break; |
161 case KURTOSIS: | 224 case KURTOSIS: |
162 strcpy(name, "kurtosis"); | 225 strcpy(name, "kurtosis"); |
163 strcpy(pretty_name, "Spectral Kurtosis"); | 226 strcpy(p_name, "Spectral Kurtosis"); |
227 strcpy(desc, "Extract the kurtosis of an input vector"); | |
228 strcpy(p_desc, "Extract the kurtosis of an audio spectrum"); | |
229 strcpy(author, ""); | |
164 break; | 230 break; |
165 case PEAKS: | 231 case PEAKS: |
166 strcpy(name, "peaks"); | 232 strcpy(name, "peaks"); |
167 strcpy(pretty_name, "Spectral Peaks"); | 233 strcpy(p_name, "Spectral Peaks"); |
234 strcpy(desc, "Extract the spectral peaks from of a spectrum"); | |
235 strcpy(p_desc, "Extract the spectral peaks from an audio \ | |
236 spectrum"); | |
237 strcpy(author, ""); | |
168 break; | 238 break; |
169 case HARMONICS: | 239 case HARMONICS: |
170 strcpy(name, "harmonics"); | 240 strcpy(name, "harmonics"); |
171 strcpy(pretty_name, "Spectral Harmonics"); | 241 strcpy(p_name, "Spectral Harmonics"); |
242 strcpy(desc, "Extract the harmonics from a spectrum"); | |
243 strcpy(p_desc, "Extract the harmonics from an audio spectrum"); | |
244 strcpy(author, ""); | |
172 break; | 245 break; |
173 case NOISINESS: | 246 case NOISINESS: |
174 strcpy(name, "noisiness"); | 247 strcpy(name, "noisiness"); |
175 strcpy(pretty_name, "Noisiness"); | 248 strcpy(p_name, "Noisiness"); |
249 strcpy(desc, "Extract the noisiness of a spectrum"); | |
250 strcpy(p_desc, "Extract the noisiness of an audio spectrum"); | |
251 strcpy(author, ""); | |
176 break; | 252 break; |
177 case CREST: | 253 case CREST: |
178 strcpy(name, "crest"); | 254 strcpy(name, "crest"); |
179 strcpy(pretty_name, "Spectral Crest Measure"); | 255 strcpy(p_name, "Spectral Crest Measure"); |
256 strcpy(desc, "Extract the spectral crest measure of a \ | |
257 spectrum"); | |
258 strcpy(p_desc, "Extract the spectral crest measure of a \ | |
259 audio spectrum"); | |
260 strcpy(author, ""); | |
180 break; | 261 break; |
181 case MFCC: | 262 case MFCC: |
182 strcpy(name, "mfcc"); | 263 strcpy(name, "mfcc"); |
183 strcpy(pretty_name, "Mel Frequency Cepstral Coefficients"); | 264 strcpy(p_name, "Mel Frequency Cepstral Coefficients"); |
265 strcpy(desc, "Extract MFCC from a spectrum"); | |
266 strcpy(p_desc, "Extract MFCC from an audio spectrum"); | |
267 strcpy(author, ""); | |
184 break; | 268 break; |
185 case BARK_COEFFICIENTS: | 269 case BARK_COEFFICIENTS: |
186 strcpy(name, "bark_coefficients"); | 270 strcpy(name, "bark_coefficients"); |
187 strcpy(pretty_name, "Bark Coefficients"); | 271 strcpy(p_name, "Bark Coefficients"); |
272 strcpy(desc, "Extract bark coefficients from a spectrum"); | |
273 strcpy(p_desc, "Extract bark coefficients from an audio \ | |
274 spectrum"); | |
275 strcpy(author, ""); | |
188 break; | 276 break; |
189 case CENTROID: | 277 case CENTROID: |
190 strcpy(name, "centroid"); | 278 strcpy(name, "centroid"); |
191 strcpy(pretty_name, "Spectral Centroid"); | 279 strcpy(p_name, "Spectral Centroid"); |
280 strcpy(desc, "Extract the spectral centroid of a spectrum"); | |
281 strcpy(p_desc, "Extract the spectral centroid of an audio \ | |
282 spectrum"); | |
283 strcpy(author, ""); | |
192 break; | 284 break; |
193 case IRREGULARITY_K: | 285 case IRREGULARITY_K: |
194 strcpy(name, "irregularity_k"); | 286 strcpy(name, "irregularity_k"); |
195 strcpy(pretty_name, "Irregularity I"); | 287 strcpy(p_name, "Irregularity I"); |
288 strcpy(desc, "Extract the irregularity of a spectrum"); | |
289 strcpy(p_desc, "Extract the irregularity of an audio \ | |
290 spectrum"); | |
291 strcpy(author, ""); | |
196 break; | 292 break; |
197 case IRREGULARITY_J: | 293 case IRREGULARITY_J: |
198 strcpy(name, "irregularity_j"); | 294 strcpy(name, "irregularity_j"); |
199 strcpy(pretty_name, "Irregularity II"); | 295 strcpy(p_name, "Irregularity II"); |
296 strcpy(desc, "Extract the irregularity of a spectrum"); | |
297 strcpy(p_desc, "Extract the irregularity of an audio \ | |
298 spectrum"); | |
299 strcpy(author, ""); | |
200 break; | 300 break; |
201 case TRISTIMULUS_1: | 301 case TRISTIMULUS_1: |
202 strcpy(name, "tristimulus_1"); | 302 strcpy(name, "tristimulus_1"); |
203 strcpy(pretty_name, "Tristimulus I"); | 303 strcpy(p_name, "Tristimulus I"); |
304 strcpy(desc, "Extract the tristimulus (type I) of a spectrum"); | |
305 strcpy(p_desc, "Extract the tristimulus (type I) of an audio \ | |
306 spectrum"); | |
307 strcpy(author, ""); | |
204 break; | 308 break; |
205 case TRISTIMULUS_2: | 309 case TRISTIMULUS_2: |
206 strcpy(name, "tristimulus_2"); | 310 strcpy(name, "tristimulus_2"); |
207 strcpy(pretty_name, "Tristimulus II"); | 311 strcpy(p_name, "Tristimulus II"); |
312 strcpy(desc, "Extract the tristimulus (type II) of a spectrum"); | |
313 strcpy(p_desc, "Extract the tristimulus (type II) of an audio \ | |
314 spectrum"); | |
315 strcpy(author, ""); | |
208 break; | 316 break; |
209 case TRISTIMULUS_3: | 317 case TRISTIMULUS_3: |
210 strcpy(name, "tristimulus_3"); | 318 strcpy(name, "tristimulus_3"); |
211 strcpy(pretty_name, "Tristimulus III"); | 319 strcpy(p_name, "Tristimulus III"); |
320 strcpy(desc, "Extract the tristimulus (type III) of a spectrum"); | |
321 strcpy(p_desc, "Extract the tristimulus (type III) of an audio \ | |
322 spectrum"); | |
323 strcpy(author, ""); | |
212 break; | 324 break; |
213 case SMOOTHNESS: | 325 case SMOOTHNESS: |
214 strcpy(name, "smoothness"); | 326 strcpy(name, "smoothness"); |
215 strcpy(pretty_name, "Spectral Smoothness"); | 327 strcpy(p_name, "Spectral Smoothness"); |
328 strcpy(desc, "Extract the spectral smoothness of a spectrum"); | |
329 strcpy(p_desc, "Extract the spectral smoothness of an audio \ | |
330 spectrum"); | |
331 strcpy(author, ""); | |
216 break; | 332 break; |
217 case FLATNESS: | 333 case FLATNESS: |
218 strcpy(name, "flatness"); | 334 strcpy(name, "flatness"); |
219 strcpy(pretty_name, "Spectral Flatness"); | 335 strcpy(p_name, "Spectral Flatness"); |
336 strcpy(desc, "Extract the spectral flatness of a spectrum"); | |
337 strcpy(p_desc, "Extract the spectral flatness of an audio \ | |
338 spectrum"); | |
339 strcpy(author, ""); | |
220 break; | 340 break; |
221 case SPREAD: | 341 case SPREAD: |
222 strcpy(name, "spread"); | 342 strcpy(name, "spread"); |
223 strcpy(pretty_name, "Spectral Spread"); | 343 strcpy(p_name, "Spectral Spread"); |
344 strcpy(desc, "Extract the spectral spread of a spectrum"); | |
345 strcpy(p_desc, "Extract the spectral spread of an audio \ | |
346 spectrum"); | |
347 strcpy(author, ""); | |
224 break; | 348 break; |
225 case ZCR: | 349 case ZCR: |
226 strcpy(name, "zcr"); | 350 strcpy(name, "zcr"); |
227 strcpy(pretty_name, "Zero Crossing Rate"); | 351 strcpy(p_name, "Zero Crossing Rate"); |
352 strcpy(desc, "Extract the zero crossing rate of a vector"); | |
353 strcpy(p_desc, "Extract the zero crossing rate of an audio \ | |
354 signal"); | |
355 strcpy(author, ""); | |
228 break; | 356 break; |
229 case LOUDNESS: | 357 case LOUDNESS: |
230 strcpy(name, "loudness"); | 358 strcpy(name, "loudness"); |
231 strcpy(pretty_name, "Loudness"); | 359 strcpy(p_name, "Loudness"); |
360 strcpy(desc, "Extract the loudness of a signal from its \ | |
361 spectrum"); | |
362 strcpy(p_desc, "Extract the loudness of an audio signal from \ | |
363 its spectrum"); | |
364 strcpy(author, ""); | |
232 break; | 365 break; |
233 case HIGHEST_VALUE: | 366 case HIGHEST_VALUE: |
234 strcpy(name, "highest_value"); | 367 strcpy(name, "highest_value"); |
235 strcpy(pretty_name, "Highest Value"); | 368 strcpy(p_name, "Highest Value"); |
369 strcpy(desc, "Extract the highest value from an input vector"); | |
370 strcpy(p_desc, "Extract the highest value from a given range"); | |
371 strcpy(author, ""); | |
236 break; | 372 break; |
237 case SUM: | 373 case SUM: |
238 strcpy(name, "sum"); | 374 strcpy(name, "sum"); |
239 strcpy(pretty_name, "Sum of Values"); | 375 strcpy(p_name, "Sum of Values"); |
376 strcpy(desc, "Extract the sum of the values in an input \ | |
377 vector"); | |
378 strcpy(p_desc, "Extract the sum of the values in a given \ | |
379 range"); | |
380 strcpy(author, ""); | |
240 break; | 381 break; |
241 case RMS_AMPLITUDE: | 382 case RMS_AMPLITUDE: |
242 strcpy(name, "rms_amplitude"); | 383 strcpy(name, "rms_amplitude"); |
243 strcpy(pretty_name, "RMS Amplitude"); | 384 strcpy(p_name, "RMS Amplitude"); |
385 strcpy(desc, "Extract the RMS amplitude of a signal"); | |
386 strcpy(p_desc, "Extract the RMS amplitude of an audio signal"); | |
387 strcpy(author, ""); | |
244 break; | 388 break; |
245 case POWER: | 389 case POWER: |
246 strcpy(name, "power"); | 390 strcpy(name, "power"); |
247 strcpy(pretty_name, "Spectral Power"); | 391 strcpy(p_name, "Spectral Power"); |
392 strcpy(desc, "Extract the spectral power of a spectrum"); | |
393 strcpy(p_desc, "Extract the spectral power of an audio \ | |
394 spectrum"); | |
395 strcpy(author, ""); | |
248 break; | 396 break; |
249 case SHARPNESS: | 397 case SHARPNESS: |
250 strcpy(name, "sharpness"); | 398 strcpy(name, "sharpness"); |
251 strcpy(pretty_name, "Spectral Sharpness"); | 399 strcpy(p_name, "Spectral Sharpness"); |
400 strcpy(desc, "Extract the spectral sharpness of a spectrum"); | |
401 strcpy(p_desc, "Extract the spectral sharpness of an audio \ | |
402 spectrum"); | |
403 strcpy(author, ""); | |
252 break; | 404 break; |
253 case SLOPE: | 405 case SLOPE: |
254 strcpy(name, "slope"); | 406 strcpy(name, "slope"); |
255 strcpy(pretty_name, "Spectral Slope"); | 407 strcpy(p_name, "Spectral Slope"); |
408 strcpy(desc, "Extract the spectral slope of a spectrum"); | |
409 strcpy(p_desc, "Extract the spectral slope of an audio \ | |
410 spectrum"); | |
411 strcpy(author, ""); | |
256 break; | 412 break; |
257 case HPS: | 413 case HPS: |
258 strcpy(name, "hps"); | 414 strcpy(name, "hps"); |
259 strcpy(pretty_name, "Harmonic Product Spectrum"); | 415 strcpy(p_name, "Harmonic Product Spectrum"); |
416 strcpy(desc, "Extract the harmonic product spectrum of a \ | |
417 spectrum"); | |
418 strcpy(p_desc, "Extract the harmonic product spectrum of an \ | |
419 audio spectrum"); | |
420 strcpy(author, ""); | |
260 break; | 421 break; |
261 case FLUX: | 422 case FLUX: |
262 strcpy(name, "flux"); | 423 strcpy(name, "flux"); |
263 strcpy(pretty_name, "Spectral Flux"); | 424 strcpy(p_name, "Spectral Flux"); |
425 strcpy(desc, "Extract the spectral flux of a spectrum"); | |
426 strcpy(p_desc, "Extract the spectral flux of an audio \ | |
427 spectrum"); | |
428 strcpy(author, ""); | |
264 break; | 429 break; |
265 case ATTACK_TIME: | 430 case ATTACK_TIME: |
266 strcpy(name, "attack_time"); | 431 strcpy(name, "attack_time"); |
267 strcpy(pretty_name, "Attack Time"); | 432 strcpy(p_name, "Attack Time"); |
433 strcpy(desc, "Extract the attack time of a signal"); | |
434 strcpy(p_desc, "Extract the attack time of an audio signal"); | |
435 strcpy(author, ""); | |
268 break; | 436 break; |
269 case DECAY_TIME: | 437 case DECAY_TIME: |
270 strcpy(name, "decay_time"); | 438 strcpy(name, "decay_time"); |
271 strcpy(pretty_name, "Decay Time"); | 439 strcpy(p_name, "Decay Time"); |
440 strcpy(desc, "Extract the decay time of a signal"); | |
441 strcpy(p_desc, "Extract the decay time of an audio signal"); | |
442 strcpy(author, ""); | |
272 break; | 443 break; |
273 case DELTA_FEATURE: | 444 case DELTA_FEATURE: |
274 strcpy(name, "delta_feature"); | 445 strcpy(name, "delta_feature"); |
275 strcpy(pretty_name, "Delta Feature"); | 446 strcpy(p_name, "Delta Feature"); |
447 strcpy(desc, "Extract the time derivative of a feature"); | |
448 strcpy(p_desc, "Extract the time derivative of a feature"); | |
449 strcpy(author, ""); | |
276 break; | 450 break; |
277 case AUTOCORRELATION_FFT: | 451 case AUTOCORRELATION_FFT: |
278 strcpy(name, "autocorrelation_fft"); | 452 strcpy(name, "autocorrelation_fft"); |
279 strcpy(pretty_name, "Autocorrelation (FFT method)"); | 453 strcpy(p_name, "Autocorrelation (FFT method)"); |
454 strcpy(desc, "Extract the autocorrelation of a signal"); | |
455 strcpy(p_desc, "Extract the autocorrelation of an audio signal"); | |
456 strcpy(author, ""); | |
280 break; | 457 break; |
281 case DCT: | 458 case DCT: |
282 strcpy(name, "dct"); | 459 strcpy(name, "dct"); |
283 strcpy(pretty_name, "Discrete Cosine Transform"); | 460 strcpy(p_name, "Discrete Cosine Transform"); |
461 strcpy(desc, "Extract the DCT of a signal"); | |
462 strcpy(p_desc, "Extract the DCT of an audio signal"); | |
463 strcpy(author, ""); | |
284 break; | 464 break; |
285 case AUTOCORRELATION: | 465 case AUTOCORRELATION: |
286 strcpy(name, "autocorrelation"); | 466 strcpy(name, "autocorrelation"); |
287 strcpy(pretty_name, "Autocorrelation"); | 467 strcpy(p_name, "Autocorrelation"); |
468 strcpy(desc, "Extract the autocorrelation of a signal"); | |
469 strcpy(p_desc, "Extract the autocorrelation of an audio signal"); | |
470 strcpy(author, ""); | |
288 break; | 471 break; |
289 case AMDF: | 472 case AMDF: |
290 strcpy(name, "amdf"); | 473 strcpy(name, "amdf"); |
291 strcpy(pretty_name, "Average Magnitude Difference Function"); | 474 strcpy(p_name, "Average Magnitude Difference Function"); |
475 strcpy(desc, "Extract the AMDF of a signal"); | |
476 strcpy(p_desc, "Extract the AMDF of an audio signal"); | |
477 strcpy(author, ""); | |
292 break; | 478 break; |
293 case ASDF: | 479 case ASDF: |
294 strcpy(name, "asdf"); | 480 strcpy(name, "asdf"); |
295 strcpy(pretty_name, "Average Squared Difference Function"); | 481 strcpy(p_name, "Average Squared Difference Function"); |
482 strcpy(desc, "Extract the ASDF of a signal"); | |
483 strcpy(p_desc, "Extract the ASDF of an audio signal"); | |
484 strcpy(author, ""); | |
296 break; | 485 break; |
297 default: | 486 default: |
487 strcpy(name, ""); | |
488 strcpy(desc, ""); | |
489 strcpy(p_desc, ""); | |
490 strcpy(author, ""); | |
298 break; | 491 break; |
299 } | 492 } |
300 } | 493 } |
301 | 494 |
302 return fd; | 495 return fd; |