3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005-2008 Christian Schoenebeck * |
* Copyright (C) 2005-2020 Christian Schoenebeck * |
7 |
* Copyright (C) 2009-2010 Christian Schoenebeck and Grigor Iliev * |
* Copyright (C) 2009-2010 Grigor Iliev * |
8 |
* * |
* * |
9 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
10 |
* 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 * |
326 |
if (!pKey->Active) { // mark as active key |
if (!pKey->Active) { // mark as active key |
327 |
pKey->Active = true; |
pKey->Active = true; |
328 |
pKey->itSelf = pActiveKeys->allocAppend(); |
pKey->itSelf = pActiveKeys->allocAppend(); |
329 |
const int iKey = pKey - &pMIDIKeyInfo[0]; |
const int iKey = int( pKey - &pMIDIKeyInfo[0] ); |
330 |
*pKey->itSelf = iKey; |
*pKey->itSelf = iKey; |
331 |
} |
} |
332 |
} |
} |