147 |
virtual void DeleteRegionIfNotUsed(R* pRegion, region_info_t* pRegInfo) = 0; |
virtual void DeleteRegionIfNotUsed(R* pRegion, region_info_t* pRegInfo) = 0; |
148 |
virtual void DeleteSampleIfNotUsed(S* pSample, region_info_t* pRegInfo) = 0; |
virtual void DeleteSampleIfNotUsed(S* pSample, region_info_t* pRegInfo) = 0; |
149 |
|
|
150 |
|
void SetKeyBindings(uint8_t* bindingsArray, int low, int high, int undefined = -1) { |
151 |
|
if (low == undefined || high == undefined) return; |
152 |
|
if (low < 0 || low > 127 || high < 0 || high > 127 || low > high) { |
153 |
|
std::cerr << "Invalid key range: " << low << " - " << high << std::endl; |
154 |
|
return; |
155 |
|
} |
156 |
|
|
157 |
|
for (int i = low; i <= high; i++) bindingsArray[i] = 1; |
158 |
|
} |
159 |
|
|
160 |
}; |
}; |
161 |
|
|
162 |
template <class F /* Instrument File */, class I /* Instrument */, class R /* Region */, class S /* Sample */> |
template <class F /* Instrument File */, class I /* Instrument */, class R /* Region */, class S /* Sample */> |