libgig
3.3.0.svn20
|
Region of a .KMP multi sample file. More...
#include <Korg.h>
Public Member Functions | |
String | FullSampleFileName () const |
KMPInstrument * | GetInstrument () const |
Public Attributes | |
bool | Transpose |
uint8_t | OriginalKey |
Note of sample's original pitch, a.k.a. "root key" (0..127). More... | |
uint8_t | TopKey |
The end of this region on the keyboard (0..127). The start of this region is given by TopKey+1 of the previous region. More... | |
int8_t | Tune |
-99..+99 cents More... | |
int8_t | Level |
-99..+99 cents More... | |
int8_t | Pan |
-64..+63 More... | |
int8_t | FilterCutoff |
-50..0 More... | |
String | SampleFileName |
Base file name of sample file (12 bytes). Call FullSampleFileName() for getting the file name with path, which you might then pass to a KSFSample constructor to load the respective sample. There are two special names: "SKIPPEDSAMPL" means the sample was skipped during loading on the original KORG instrument, whereas "INTERNALnnnn" means internal sample (of the original KORG instrument) with number nnnn is used. In both cases, you obviously have no other chance than skipping them. More... | |
Protected Member Functions | |
KMPRegion (KMPInstrument *parent, RIFF::Chunk *rlp1) | |
virtual | ~KMPRegion () |
Friends | |
class | KMPInstrument |
Region of a .KMP multi sample file.
Encapsulates one region on the keyboard which is part of a KORG ".KMP" file (KMPInstrument). Each regions defines a mapping between one (mono) sample and one consecutive area on the keyboard.
|
protected |
Definition at line 340 of file Korg.cpp.
References FilterCutoff, Level, OriginalKey, Pan, RIFF::Chunk::ReadInt8(), Korg::readText12(), RIFF::Chunk::ReadUint8(), SampleFileName, TopKey, Transpose, and Tune.
String Korg::KMPRegion::FullSampleFileName | ( | ) | const |
Definition at line 357 of file Korg.cpp.
References RIFF::Chunk::GetFile(), RIFF::File::GetFileName(), Korg::removeFileTypeExtension(), and SampleFileName.
KMPInstrument * Korg::KMPRegion::GetInstrument | ( | ) | const |
|
friend |
int8_t Korg::KMPRegion::FilterCutoff |
int8_t Korg::KMPRegion::Level |
uint8_t Korg::KMPRegion::OriginalKey |
Note of sample's original pitch, a.k.a. "root key" (0..127).
Definition at line 136 of file Korg.h.
Referenced by KMPRegion().
int8_t Korg::KMPRegion::Pan |
String Korg::KMPRegion::SampleFileName |
Base file name of sample file (12 bytes). Call FullSampleFileName() for getting the file name with path, which you might then pass to a KSFSample constructor to load the respective sample. There are two special names: "SKIPPEDSAMPL" means the sample was skipped during loading on the original KORG instrument, whereas "INTERNALnnnn" means internal sample (of the original KORG instrument) with number nnnn is used. In both cases, you obviously have no other chance than skipping them.
Definition at line 142 of file Korg.h.
Referenced by FullSampleFileName(), and KMPRegion().
uint8_t Korg::KMPRegion::TopKey |
The end of this region on the keyboard (0..127). The start of this region is given by TopKey+1 of the previous region.
Definition at line 137 of file Korg.h.
Referenced by KMPRegion().
bool Korg::KMPRegion::Transpose |
Definition at line 135 of file Korg.h.
Referenced by KMPRegion().
int8_t Korg::KMPRegion::Tune |