Public Methods |
|
| pcbInstrument () |
|
| pcbInstrument (const pcbInstrument& i) |
|
virtual | ~pcbInstrument () |
|
bool | Load (const char* filename) |
|
bool | Save (const char* filename) const |
|
bool | Release (bool all = true) |
|
void | ReleaseSamples () |
|
pcbParameters& | GetVolume () |
|
pcbParameters& | GetPanning () |
|
pcbVibe& | GetVibrato () |
|
unsigned char | GetNote (unsigned key) const |
|
unsigned char | GetSampleNumber (unsigned key) const |
|
pp::Sample* | GetSample (unsigned sample) |
|
unsigned short | GetSamples () const |
|
const char* | GetName () const |
|
void | SetName (const char* name) |
|
void | SetSamples (unsigned samples) |
|
void | SetNote (unsigned key, unsigned char note) |
|
void | SetSampleNumber (unsigned key, unsigned char number) |
|
void | AllocateSamples () |
|
void | SetSample (unsigned number, pp::Sample* sample) |
|
void | ShareSamples (bool share) |
|
int | GetUploadedID (int sample_number) |
|
void | SetUploadedID (int sample_number, int id) |
Public Attributes |
|
pp::Sample** | m_samples |
Static Public Methods |
|
void | RegisterInstruments () |
|
void | AllocateSharedSamples (int length) |
Protected Attributes |
|
pcbParameters | m_volume |
|
pcbParameters | m_panning |
|
pcbVibe | m_vibrato |
|
unsigned char | m_key_note [120] |
|
unsigned char | m_key_samp [120] |
|
char* | m_name |
|
unsigned short | m_num_samples |
|
bool | m_share_samples |
Static Protected Attributes |
|
int* | m_shared_uploaded_id = 0 |
|
int | m_num_shared_samples = 0 |
They may also contain volume or panning envelopes.