|
wavelength 1.0.0
|
Editor view of one instrument of a bank and its sample descriptions. More...
#include <InstrumentWin.h>
Public Member Functions | |
| InstrumentWin (unsigned short program) | |
| Create an instrument, named after its identifier. | |
| ~InstrumentWin () | |
| Delete the sample descriptions. | |
| int | AttachSample (SampleWin *iSampleWin) |
| Add a sample description that plays a sample, named after the sample, on the key after the highest base key in use. | |
| int | SetDefaultKeymap (SampleDescWin *sdw) |
| Put a sample description on the key after the highest base key of the instrument, or on key zero when none is in use or the next key is out of range. | |
| int | DeleteSampleDescription (int sampleDescID) |
| Remove and delete a sample description. | |
| int | RemoveSample (SampleWin *sampleWin, std::map< int, int > &removed) |
| Remove and delete every sample description that plays a sample. | |
| int | GetID () const |
| Report the identifier. | |
| String & | GetName () |
| Report the name. | |
| void | SetName (const String &name) |
| Rename the instrument, unless the new name is empty. | |
| Instrument & | GetInstrument () |
| Report the program settings. | |
| std::map< int, SampleDescWin * > & | GetSampleDescs () |
| Report the sample descriptions. | |
Editor view of one instrument of a bank and its sample descriptions.
The class has no RTTI, and its name comes from the assert text of its users. The object is 0x2c bytes. It deletes its sample descriptions. Its routines are in BankManager.cpp.
|
explicit |
Create an instrument, named after its identifier.
| program | The program number. |
| InstrumentWin::~InstrumentWin | ( | ) |
Delete the sample descriptions.
| int InstrumentWin::AttachSample | ( | SampleWin * | iSampleWin | ) |
Add a sample description that plays a sample, named after the sample, on the key after the highest base key in use.
| iSampleWin | The sample. |
| int InstrumentWin::SetDefaultKeymap | ( | SampleDescWin * | sdw | ) |
Put a sample description on the key after the highest base key of the instrument, or on key zero when none is in use or the next key is out of range.
| sdw | The sample description. |
| int InstrumentWin::DeleteSampleDescription | ( | int | sampleDescID | ) |
Remove and delete a sample description.
| sampleDescID | The identifier of the SampleDescWin. |
| int InstrumentWin::RemoveSample | ( | SampleWin * | sampleWin, |
| std::map< int, int > & | removed ) |
Remove and delete every sample description that plays a sample.
| sampleWin | The sample. |
| removed | Receives the identifier of the instrument under the identifier of each removed SampleDescWin. |
|
inline |
Report the identifier.
|
inline |
Report the name.
|
inline |
Rename the instrument, unless the new name is empty.
| name | The new name. |
|
inline |
Report the program settings.
|
inline |
Report the sample descriptions.