SpectMorph
smmorphsourcemodule.hh
1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
2 
3 #ifndef SPECTMORPH_MORPH_SOURCE_MODULE_HH
4 #define SPECTMORPH_MORPH_SOURCE_MODULE_HH
5 
6 #include "smmorphoperatormodule.hh"
7 #include "smwavset.hh"
8 
9 namespace SpectMorph
10 {
11 
13 {
14 private:
15  WavSet *wav_set;
16  Audio *active_audio;
17 
18 public:
20 
21  void set_wav_set (const std::string& path);
22 
23  void retrigger (int channel, float freq, int midi_velocity, float mix_freq);
24  Audio *audio();
25  AudioBlock *audio_block (size_t index);
26 };
27 
29 {
30 protected:
31  SimpleWavSetSource my_source;
32 
33 public:
36 
37  void set_config (MorphOperator *op);
38  LiveDecoderSource *source();
39 };
40 }
41 
42 #endif
Audio sample containing many blocks.
Definition: smaudio.hh:81
Definition: smmorphsourcemodule.hh:28
Definition: smmorphsourcemodule.hh:12
Definition: smwavset.hh:28
Block of audio data, encoded in SpectMorph parametric format.
Definition: smaudio.hh:28
Definition: smmorphoperatormodule.hh:23
Definition: smlivedecodersource.hh:10
Definition: smmorphplanvoice.hh:14
Definition: smmorphoperator.hh:19
Definition: smalignedarray.cc:7