libgig
3.3.0.svn20
|
.KMP multi sample file More...
#include <Korg.h>
Public Member Functions | |
KMPInstrument (const String &filename) | |
virtual | ~KMPInstrument () |
KMPRegion * | GetRegion (int index) |
int | GetRegionCount () const |
bool | Use2ndStart () const |
String | FileName () const |
String | Name () const |
Returns the long name (Name24) if it was stored in the file, otherwise returns the short name (Name16). More... | |
Public Attributes | |
String | Name16 |
Human readable name of the instrument for display purposes (not the file name). Since this name is always stored with 16 bytes, this name must never be longer than 16 characters. This information is stored in all .KMP files (. More... | |
String | Name24 |
Longer Human readable name (24 characters) of the instrument for display purposes (not the file name). This longer name might not be stored in all versions of .KMP files (. More... | |
uint8_t | Attributes |
Bit field of attribute flags (ATM only bit 0 is used, better call Use2ndStart() instead of accessing this variable directly though). More... | |
.KMP multi sample file
Implements access to so called KORG "multi sample" files with ".KMP" file name extension. A KMPInstrument combines individual KSFSamples (.KSF files) to a logical group of samples. It also maps the individual (mono) samples to consecutive areas (KMPRegion) on the keyboard.
A KMPInstrument only supports very simple articulation informations. Too simple for decent sounds. That's why this kind of file is usually not used directly on keyboards. Instead a keyboard uses a separate .PCG file for its more complex and very synthesis model specific and OS version specific articulation definitions.
There is no support for .PCG files in this library yet though.
Korg::KMPInstrument::KMPInstrument | ( | const String & | filename | ) |
Definition at line 369 of file Korg.cpp.
References Attributes, CHUNK_ID_MSP1, CHUNK_ID_NAME, CHUNK_ID_RLP1, RIFF::endian_big, RIFF::Chunk::GetSize(), RIFF::List::GetSubChunk(), RIFF::layout_flat, Name16, Name24, Korg::readText16(), Korg::readText24(), and RIFF::Chunk::ReadUint8().
String Korg::KMPInstrument::FileName | ( | ) | const |
Definition at line 430 of file Korg.cpp.
References RIFF::File::GetFileName().
String Korg::KMPInstrument::Name | ( | ) | const |
bool Korg::KMPInstrument::Use2ndStart | ( | ) | const |
Definition at line 418 of file Korg.cpp.
References Attributes.
uint8_t Korg::KMPInstrument::Attributes |
Bit field of attribute flags (ATM only bit 0 is used, better call Use2ndStart() instead of accessing this variable directly though).
Definition at line 175 of file Korg.h.
Referenced by KMPInstrument(), and Use2ndStart().
String Korg::KMPInstrument::Name16 |
Human readable name of the instrument for display purposes (not the file name). Since this name is always stored with 16 bytes, this name must never be longer than 16 characters. This information is stored in all .KMP files (.
Definition at line 173 of file Korg.h.
Referenced by KMPInstrument(), and Name().
String Korg::KMPInstrument::Name24 |
Longer Human readable name (24 characters) of the instrument for display purposes (not the file name). This longer name might not be stored in all versions of .KMP files (.
Definition at line 174 of file Korg.h.
Referenced by KMPInstrument(), and Name().