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-2009 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* 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 * |
1957 |
if (reader.read(&addr[0], 3) != 3) goto free_sysex_data; |
if (reader.read(&addr[0], 3) != 3) goto free_sysex_data; |
1958 |
if (addr[0] == 0x40 && addr[1] == 0x00) { // System Parameters |
if (addr[0] == 0x40 && addr[1] == 0x00) { // System Parameters |
1959 |
dmsg(3,("\tSystem Parameter\n")); |
dmsg(3,("\tSystem Parameter\n")); |
1960 |
|
if (addr[2] == 0x7f) { // GS reset |
1961 |
|
for (int i = 0; i < engineChannels.size(); ++i) { |
1962 |
|
EngineChannel* pEngineChannel = engineChannels[i]; |
1963 |
|
if (pEngineChannel->GetMidiInputPort() == itSysexEvent->pMidiInputPort) { |
1964 |
|
KillAllVoices(pEngineChannel, itSysexEvent); |
1965 |
|
pEngineChannel->ResetControllers(); |
1966 |
|
} |
1967 |
|
} |
1968 |
|
} |
1969 |
} |
} |
1970 |
else if (addr[0] == 0x40 && addr[1] == 0x01) { // Common Parameters |
else if (addr[0] == 0x40 && addr[1] == 0x01) { // Common Parameters |
1971 |
dmsg(3,("\tCommon Parameter\n")); |
dmsg(3,("\tCommon Parameter\n")); |
2219 |
} |
} |
2220 |
|
|
2221 |
String Engine::Version() { |
String Engine::Version() { |
2222 |
String s = "$Revision: 1.100 $"; |
String s = "$Revision: 1.101 $"; |
2223 |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
2224 |
} |
} |
2225 |
|
|