3 #ifndef SPECTMORPH_MORPH_GRID_MODULE_HH
4 #define SPECTMORPH_MORPH_GRID_MODULE_HH
6 #include "smmorphoperatormodule.hh"
7 #include "smmorphgrid.hh"
9 #include "smmorphsourcemodule.hh"
30 struct InputNodeMatrix {
31 static constexpr
int MAX_DIM = 7;
32 std::array<InputNode, MAX_DIM * MAX_DIM> data;
35 operator() (
int x,
int y)
37 assert (x < MAX_DIM && y < MAX_DIM);
38 return data[x + y * MAX_DIM];
45 struct MySource :
public LiveDecoderSource
47 MorphGridModule *module;
49 void retrigger (
int channel,
float freq,
int midi_velocity)
override;
50 Audio* audio()
override;
51 bool rt_audio_block (
size_t index, RTAudioBlock& out_block)
override;
55 MorphGridModule (MorphPlanVoice *voice);
58 void set_config (
const MorphOperatorConfig *cfg);
59 LiveDecoderSource *source();
Definition: smmorphgridmodule.hh:17
Definition: smmorphoperatormodule.hh:27
Definition: smmorphsourcemodule.hh:13
Definition: smmorphgrid.hh:29