comparison Tuning.cpp @ 52:0bf1486dc674 matthiasm-plugin

reduced parameters for tuning plugin
author matthiasm
date Mon, 25 Oct 2010 18:48:39 +0900
parents 1d668695c03b
children 01bc078f5f61
comparison
equal deleted inserted replaced
51:9ea1b92082fc 52:0bf1486dc674
39 Tuning::~Tuning() 39 Tuning::~Tuning()
40 { 40 {
41 if (debug_on) cerr << "--> ~Tuning" << endl; 41 if (debug_on) cerr << "--> ~Tuning" << endl;
42 } 42 }
43 43
44 size_t
45 Tuning::getPreferredStepSize() const
46 {
47 if (debug_on) cerr << "--> getPreferredStepSize" << endl;
48 return 2048*4;
49 }
50
44 string 51 string
45 Tuning::getIdentifier() const 52 Tuning::getIdentifier() const
46 { 53 {
47 if (debug_on) cerr << "--> getIdentifier" << endl; 54 if (debug_on) cerr << "--> getIdentifier" << endl;
48 return "tuning"; 55 return "tuning";
59 Tuning::getDescription() const 66 Tuning::getDescription() const
60 { 67 {
61 // Return something helpful here! 68 // Return something helpful here!
62 if (debug_on) cerr << "--> getDescription" << endl; 69 if (debug_on) cerr << "--> getDescription" << endl;
63 return "This plugin provides a number of features derived from a log-frequency amplitude spectrum of the DFT: some variants of the log-frequency spectrum, including a semitone spectrum derived from approximate transcription using the NNLS algorithm; based on this semitone spectrum, chroma features and a simple chord estimate."; 70 return "This plugin provides a number of features derived from a log-frequency amplitude spectrum of the DFT: some variants of the log-frequency spectrum, including a semitone spectrum derived from approximate transcription using the NNLS algorithm; based on this semitone spectrum, chroma features and a simple chord estimate.";
71 }
72
73 Tuning::ParameterList
74 Tuning::getParameterDescriptors() const
75 {
76 if (debug_on) cerr << "--> getParameterDescriptors" << endl;
77 ParameterList list;
78
79 ParameterDescriptor d0;
80 d0.identifier = "rollon";
81 d0.name = "spectral roll-on";
82 d0.description = "The bins below the spectral roll-on quantile will be set to 0.";
83 d0.unit = "";
84 d0.minValue = 0;
85 d0.maxValue = 0.05;
86 d0.defaultValue = 0;
87 d0.isQuantized = true;
88 d0.quantizeStep = 0.005;
89 list.push_back(d0);
90
91
92 return list;
64 } 93 }
65 94
66 Tuning::OutputList 95 Tuning::OutputList
67 Tuning::getOutputDescriptors() const 96 Tuning::getOutputDescriptors() const
68 { 97 {