48 |
*/ |
*/ |
49 |
class LookupTable { |
class LookupTable { |
50 |
public: |
public: |
51 |
LookupTable(const Instrument* instrument); |
/** |
52 |
|
* Constructs a lookup table for the instrument. If triggercc |
53 |
|
* is specified, the lookup table is made for regions |
54 |
|
* triggered by the MIDI controller, otherwise the table is |
55 |
|
* made for ordinary note-on triggered regions. |
56 |
|
* |
57 |
|
* @param instrument - instrument |
58 |
|
* @param triggercc - controller number or -1 |
59 |
|
*/ |
60 |
|
LookupTable(const Instrument* instrument, int triggercc = -1); |
61 |
|
|
62 |
~LookupTable(); |
~LookupTable(); |
63 |
|
|
64 |
/** |
/** |
97 |
const int Definition::* hi, |
const int Definition::* hi, |
98 |
int min, int max, int* a); |
int min, int max, int* a); |
99 |
static int fillMapArr(const std::vector<Region*>& regions, |
static int fillMapArr(const std::vector<Region*>& regions, |
100 |
int cc, int* a); |
int cc, int* a, int triggercc); |
101 |
void fillRegionArr(const int* len, Region* region, |
void fillRegionArr(const int* len, Region* region, |
102 |
std::vector<int>::size_type dim, int j); |
std::vector<int>::size_type dim, int j, |
103 |
|
int triggercc); |
104 |
}; |
}; |
105 |
} |
} |
106 |
|
|