SpectMorph
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
SpectMorph::Instrument Class Reference

Classes

struct  AutoTune
 
struct  AutoVolume
 
struct  EncoderConfig
 
struct  EncoderEntry
 

Public Types

enum class  LoadOptions { ALL , NAME_ONLY }
 

Public Member Functions

Sampleadd_sample (const WavData &wav_data, const std::string &filename)
 
Samplesample (size_t n) const
 
void remove_sample ()
 
std::string gen_short_name (std::vector< std::unique_ptr< Sample >> &samples, const std::string &filename)
 
size_t size () const
 
void clear ()
 
std::string name () const
 
void set_name (const std::string &name)
 
std::string short_name () const
 
void set_short_name (const std::string &short_name)
 
std::string version ()
 
int selected () const
 
void set_selected (int sel)
 
Error load (const std::string &filename, LoadOptions load_options=LoadOptions::ALL)
 
Error load (ZipReader &zip_reader, LoadOptions load_options=LoadOptions::ALL)
 
Error save (const std::string &filename) const
 
Error save (ZipWriter &zip_writer) const
 
Instrumentclone () const
 
void update_order ()
 
void marker_changed ()
 
void volume_changed ()
 
std::map< int, int > used_count () const
 
double global_volume () const
 
void set_global_volume (double new_volume)
 
AutoVolume auto_volume () const
 
void set_auto_volume (const AutoVolume &new_value)
 
AutoTune auto_tune () const
 
void set_auto_tune (const AutoTune &new_value)
 
EncoderConfig encoder_config () const
 
void set_encoder_config (const EncoderConfig &new_value)
 

Public Attributes

Signal signal_volume_changed
 
Signal signal_samples_changed
 
Signal signal_selected_sample_changed
 
Signal signal_marker_changed
 
Signal signal_global_changed
 

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