2 |
* * |
* * |
3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2011 Grigor Iliev * |
* Copyright (C) 2011 - 2012 Grigor Iliev * |
6 |
* * |
* * |
7 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
8 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
316 |
} |
} |
317 |
|
|
318 |
/** Should return value in the range [0, 127] (L <-> R) */ |
/** Should return value in the range [0, 127] (L <-> R) */ |
319 |
virtual uint8_t CaluclatePan(uint8_t pan) { |
virtual uint8_t CalculatePan(int pan) { |
320 |
int p = pan + GetPan() * 0.63; |
int p = pan + GetPan() * 0.63; |
321 |
if (p < 0) return 0; |
if (p < 0) return 0; |
322 |
if (p > 127) return 127; |
if (p > 127) return 127; |