SpectMorph
smaudiotool.hh
1 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl-2.1.html
2 
3 #ifndef SPECTMORPH_AUDIO_TOOL_HH
4 #define SPECTMORPH_AUDIO_TOOL_HH
5 
6 #include "smaudio.hh"
7 
8 namespace SpectMorph
9 {
10 
11 namespace AudioTool
12 {
13 
14 double compute_energy (const Audio& audio);
15 void normalize_factor (double norm, Audio& audio);
16 void normalize_energy (double energy, Audio& audio);
17 
18 bool get_auto_tune_factor (Audio& audio, double& tune_factor);
19 void apply_auto_tune_factor (Audio& audio, double tune_factor);
20 void auto_tune_smooth (Audio& audio, int partials, double smooth_ms, double smooth_percent);
21 
23 {
24  std::vector<float> noise_factors;
25 public:
26  Block2Energy (double mix_freq);
27 
28  double energy (const AudioBlock& block);
29 };
30 
31 }
32 
33 }
34 
35 #endif
Block of audio data, encoded in SpectMorph parametric format.
Definition: smaudio.hh:28
Definition: smaudiotool.hh:23