SpectMorph
sminstencoder.hh
1 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl-2.1.html
2 
3 #ifndef SPECTMORPH_INSTENCODER_HH
4 #define SPECTMORPH_INSTENCODER_HH
5 
6 #include "smwavdata.hh"
7 #include "smencoder.hh"
8 #include "sminstrument.hh"
9 
10 namespace SpectMorph
11 {
12 
14 {
15  EncoderParams enc_params;
16  std::vector<float> window;
17 
18  void setup_params (const WavData& wd, int midi_note);
19 
20 public:
21  Audio *encode (const WavData& wd, int midi_note, Instrument::EncoderConfig& cfg, const std::function<bool()>& kill_function);
22 };
23 
24 }
25 
26 #endif
Audio sample containing many blocks.
Definition: smaudio.hh:80
Encoder parameters.
Definition: smencoder.hh:23
Definition: sminstencoder.hh:14
Definition: smwavdata.hh:17
Definition: sminstrument.hh:106