SpectMorph
smnoisebandpartition.hh
1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
2 
3 #ifndef SPECTMORPH_NOISE_BAND_PARTITION_HH
4 #define SPECTMORPH_NOISE_BAND_PARTITION_HH
5 
6 #include <vector>
7 
8 #include <stdint.h>
9 
10 #include "smrandom.hh"
11 
12 namespace SpectMorph
13 {
14 
16 {
17  std::vector<int> band_count;
18  std::vector<int> band_start;
19  size_t spectrum_size;
20 
21 public:
22  NoiseBandPartition (size_t n_bands, size_t n_spectrum_bins, double mix_freq);
23  void noise_envelope_to_spectrum (SpectMorph::Random& random_gen, const std::vector<uint16_t>& envelope, float *spectrum, double scale);
24 
25  size_t n_bands();
26  size_t n_spectrum_bins();
27 };
28 
29 }
30 
31 #endif
Definition: smnoisebandpartition.hh:15
Definition: smrandom.hh:14
Definition: smadsrenvelope.hh:8