3 #ifndef SPECTMORPH_MORPH_WAV_SOURCE_HH
4 #define SPECTMORPH_MORPH_WAV_SOURCE_HH
6 #include "smmorphoperator.hh"
7 #include "smmodulationlist.hh"
8 #include "smproperty.hh"
23 PLAY_MODE_STANDARD = 1,
24 PLAY_MODE_CUSTOM_POSITION = 2
31 PlayMode play_mode = PLAY_MODE_STANDARD;
34 static constexpr
auto P_PLAY_MODE =
"play_mode";
35 static constexpr
auto P_POSITION =
"position";
37 static constexpr
auto USER_BANK =
"User";
42 std::string m_bank = USER_BANK;
43 std::string m_lv2_filename;
50 const char *type()
override;
51 int insert_order()
override;
52 bool save (
OutFile& out_file)
override;
53 bool load (
InFile& in_file)
override;
54 OutputType output_type()
override;
55 std::vector<MorphOperator *> dependencies()
override;
58 void set_object_id (
int id);
61 void set_bank_and_instrument (
const std::string& bank,
int inst);
66 void set_lv2_filename (
const std::string& filename);
67 std::string lv2_filename();
69 void on_instrument_updated (
const std::string& bank,
int number,
const Instrument *new_instrument);
70 void on_bank_removed (
const std::string& bank);
Class to read SpectMorph binary data.
Definition: sminfile.hh:27
Definition: sminstrument.hh:83
Definition: smmodulationlist.hh:17
Definition: smmorphoperator.hh:27
Definition: smmorphplan.hh:18
Definition: smmorphwavsource.hh:20
Definition: smoutfile.hh:19
Definition: smproject.hh:67
Definition: smsignal.hh:150
Definition: smmorphoperator.hh:18
Definition: smmorphwavsource.hh:27