97 if (name.
size() > 0) {
124 std::map<int, SampleDescWin *> mSampleDescs;
int DeleteSampleDescription(int sampleDescID)
Remove and delete a sample description.
int GetID() const
Report the identifier.
Definition InstrumentWin.h:78
int SetDefaultKeymap(SampleDescWin *sdw)
Put a sample description on the key after the highest base key of the instrument, or on key zero when...
~InstrumentWin()
Delete the sample descriptions.
Instrument & GetInstrument()
Report the program settings.
Definition InstrumentWin.h:107
InstrumentWin(unsigned short program)
Create an instrument, named after its identifier.
String & GetName()
Report the name.
Definition InstrumentWin.h:87
std::map< int, SampleDescWin * > & GetSampleDescs()
Report the sample descriptions.
Definition InstrumentWin.h:116
int AttachSample(SampleWin *iSampleWin)
Add a sample description that plays a sample, named after the sample, on the key after the highest ba...
int RemoveSample(SampleWin *sampleWin, std::map< int, int > &removed)
Remove and delete every sample description that plays a sample.
void SetName(const String &name)
Rename the instrument, unless the new name is empty.
Definition InstrumentWin.h:96
Program settings of one instrument of a bank, shared with the synthesiser on the IOP.
Definition Instrument.h:10
Editor view of one sample description of an instrument.
Definition SampleDescWin.h:12
Editor view of one sample of a bank, tied to the WAV file it was made from.
Definition SampleWin.h:14
Growable text buffer that is also a PrnStream.
Definition string.h:19
unsigned int size() const
Definition Str.h:226