SpectMorph
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
SpectMorph::MorphLFO Class Reference
Inheritance diagram for SpectMorph::MorphLFO:
SpectMorph::MorphOperator SpectMorph::SignalReceiver

Classes

struct  Config
 

Public Types

enum  WaveType {
  WAVE_SINE = 1 , WAVE_TRIANGLE = 2 , WAVE_SAW_UP = 3 , WAVE_SAW_DOWN = 4 ,
  WAVE_SQUARE = 5 , WAVE_RANDOM_SH = 6 , WAVE_RANDOM_LINEAR = 7
}
 
enum  Note {
  NOTE_32_1 = 1 , NOTE_16_1 = 2 , NOTE_8_1 = 3 , NOTE_4_1 = 4 ,
  NOTE_2_1 = 5 , NOTE_1_1 = 6 , NOTE_1_2 = 7 , NOTE_1_4 = 8 ,
  NOTE_1_8 = 9 , NOTE_1_16 = 10 , NOTE_1_32 = 11 , NOTE_1_64 = 12
}
 
enum  NoteMode { NOTE_MODE_STRAIGHT = 1 , NOTE_MODE_TRIPLET = 2 , NOTE_MODE_DOTTED = 3 }
 
- Public Types inherited from SpectMorph::MorphOperator
enum  OutputType { OUTPUT_NONE , OUTPUT_AUDIO , OUTPUT_CONTROL }
 
enum  ControlType {
  CONTROL_GUI = 1 , CONTROL_SIGNAL_1 = 2 , CONTROL_SIGNAL_2 = 3 , CONTROL_OP = 4 ,
  CONTROL_SIGNAL_3 = 5 , CONTROL_SIGNAL_4 = 6 , CONTROL_VELOCITY = 7
}
 
typedef std::map< std::string, MorphOperator * > OpNameMap
 
typedef uintptr_t PtrID
 

Public Member Functions

 MorphLFO (MorphPlan *morph_plan)
 
const char * type () override
 
int insert_order () override
 
bool save (OutFile &out_file) override
 
bool load (InFile &in_file) override
 
OutputType output_type () override
 
MorphOperatorConfigclone_config () override
 
bool sync_voices () const
 
void set_sync_voices (float new_sync_voices)
 
bool beat_sync () const
 
void set_beat_sync (bool beat_sync)
 
- Public Member Functions inherited from SpectMorph::MorphOperator
 MorphOperator (MorphPlan *morph_plan)
 
virtual void post_load (OpNameMap &op_name_map)
 
virtual std::vector< MorphOperator * > dependencies ()
 
void get_property_dependencies (std::vector< MorphOperator * > &deps, const std::vector< std::string > &identifiers)
 
void register_property (Property *property)
 
Propertyproperty (const std::string &identifier)
 
void write_properties (OutFile &out_file)
 
bool read_property_event (InFile &in_file)
 
void read_properties_post_load (OpNameMap &op_name_map)
 
MorphPlanmorph_plan ()
 
std::string type_name ()
 
std::string name ()
 
void set_name (const std::string &name)
 
bool can_rename (const std::string &name)
 
std::string id ()
 
void set_id (const std::string &id)
 
bool folded () const
 
void set_folded (bool folded)
 
PtrID ptr_id () const
 
- Public Member Functions inherited from SpectMorph::SignalReceiver
template<class... Args, class CbFunction >
uint64 connect (Signal< Args... > &signal, const CbFunction &callback)
 
template<class... Args, class Instance , class Method >
uint64 connect (Signal< Args... > &signal, Instance *instance, const Method &method)
 
void disconnect (uint64 id)
 
void dead_signal (uint64 id)
 

Static Public Attributes

static constexpr auto P_WAVE_TYPE = "wave_type"
 
static constexpr auto P_FREQUENCY = "frequency"
 
static constexpr auto P_DEPTH = "depth"
 
static constexpr auto P_CENTER = "center"
 
static constexpr auto P_START_PHASE = "start_phase"
 
static constexpr auto P_NOTE = "note"
 
static constexpr auto P_NOTE_MODE = "note_mode"
 

Protected Attributes

Config m_config
 
- Protected Attributes inherited from SpectMorph::MorphOperator
MorphPlanm_morph_plan
 
std::string m_name
 
std::string m_id
 
bool m_folded
 
std::map< std::string, std::unique_ptr< Property > > m_properties
 

Additional Inherited Members

- Static Public Member Functions inherited from SpectMorph::MorphOperator
static MorphOperatorcreate (const std::string &type, MorphPlan *plan)
 
- Protected Member Functions inherited from SpectMorph::MorphOperator
LogPropertyadd_property_log (float *value, const std::string &identifier, const std::string &label, const std::string &value_label, float def, float mn, float mx)
 
LogPropertyadd_property_log (ModulationData *mod_data, const std::string &identifier, const std::string &label, const std::string &value_label, float def, float mn, float mx)
 
XParamPropertyadd_property_xparam (float *value, const std::string &identifier, const std::string &label, const std::string &value_label, float def, float mn, float mx, float slope)
 
LinearPropertyadd_property (float *value, const std::string &identifier, const std::string &label, const std::string &value_label, float def, float mn, float mx)
 
LinearPropertyadd_property (ModulationData *mod_data, const std::string &identifier, const std::string &label, const std::string &value_label, float def, float mn, float mx)
 
IntPropertyadd_property (int *value, const std::string &identifier, const std::string &label, const std::string &value_label, int def, int mn, int mx)
 
IntVecPropertyadd_property (int *value, const std::string &identifier, const std::string &label, const std::string &value_label, int def, const std::vector< int > &vec)
 
BoolPropertyadd_property (bool *value, const std::string &identifier, const std::string &label, bool def)
 
template<typename Enum >
EnumPropertyadd_property_enum (Enum *value, const std::string &identifier, const std::string &label, int def, const EnumInfo &ei)
 
EnumPropertyadd_property_enum (const std::string &identifier, const std::string &label, int def, const EnumInfo &ei, std::function< int()> read_func, std::function< void(int)> write_func)
 

The documentation for this class was generated from the following files: