00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef SPECTMORPH_WAVSET_HH
00019 #define SPECTMORPH_WAVSET_HH
00020
00021 #include <vector>
00022 #include <string>
00023 #include <bse/bsecxxplugin.hh>
00024
00025 #include "smaudio.hh"
00026
00027 namespace SpectMorph
00028 {
00029
00030 class WavSetWave
00031 {
00032 public:
00033 int midi_note;
00034 int channel;
00035 int velocity_range_min;
00036 int velocity_range_max;
00037 std::string path;
00038 Audio *audio;
00039
00040 WavSetWave();
00041 ~WavSetWave();
00042 };
00043
00044 class WavSet
00045 {
00046 public:
00047 ~WavSet();
00048
00049 std::vector<WavSetWave> waves;
00050
00051 BseErrorType load (const std::string& filename);
00052 BseErrorType save (const std::string& filename, bool embed_models = false);
00053 };
00054
00055 }
00056
00057 #endif