|
1 | 1 | // qtractorMidiEngine.cpp |
2 | 2 | // |
3 | 3 | /**************************************************************************** |
4 | | - Copyright (C) 2005-2017, rncbc aka Rui Nuno Capela. All rights reserved. |
| 4 | + Copyright (C) 2005-2018, rncbc aka Rui Nuno Capela. All rights reserved. |
5 | 5 |
|
6 | 6 | This program is free software; you can redistribute it and/or |
7 | 7 | modify it under the terms of the GNU General Public License |
@@ -1091,7 +1091,7 @@ void qtractorMidiPlayer::enqueue ( unsigned short iMidiChannel, |
1091 | 1091 | case qtractorMidiEvent::PGMCHANGE: |
1092 | 1092 | ev.type = SND_SEQ_EVENT_PGMCHANGE; |
1093 | 1093 | ev.data.control.channel = iMidiChannel; |
1094 | | - ev.data.control.value = pEvent->value(); |
| 1094 | + ev.data.control.value = pEvent->param(); |
1095 | 1095 | break; |
1096 | 1096 | case qtractorMidiEvent::CHANPRESS: |
1097 | 1097 | ev.type = SND_SEQ_EVENT_CHANPRESS; |
@@ -1659,8 +1659,8 @@ void qtractorMidiEngine::capture ( snd_seq_event_t *pEv ) |
1659 | 1659 | case SND_SEQ_EVENT_PGMCHANGE: |
1660 | 1660 | type = qtractorMidiEvent::PGMCHANGE; |
1661 | 1661 | channel = pEv->data.control.channel; |
1662 | | - // param = 0; |
1663 | | - value = pEv->data.control.value; |
| 1662 | + param = pEv->data.control.value; |
| 1663 | + value = 0; |
1664 | 1664 | break; |
1665 | 1665 | case SND_SEQ_EVENT_CHANPRESS: |
1666 | 1666 | type = qtractorMidiEvent::CHANPRESS; |
@@ -2019,7 +2019,7 @@ void qtractorMidiEngine::enqueue ( qtractorTrack *pTrack, |
2019 | 2019 | case qtractorMidiEvent::PGMCHANGE: |
2020 | 2020 | ev.type = SND_SEQ_EVENT_PGMCHANGE; |
2021 | 2021 | ev.data.control.channel = pTrack->midiChannel(); |
2022 | | - ev.data.control.value = pEvent->value(); |
| 2022 | + ev.data.control.value = pEvent->param(); |
2023 | 2023 | // HACK: Track properties override... |
2024 | 2024 | if (pTrack->midiProg() >= 0) |
2025 | 2025 | ev.data.control.value = pTrack->midiProg(); |
@@ -4268,7 +4268,7 @@ void qtractorMidiBus::sendEvent ( qtractorMidiEvent::EventType etype, |
4268 | 4268 | ev.type = SND_SEQ_EVENT_PGMCHANGE; |
4269 | 4269 | ev.data.control.channel = iChannel; |
4270 | 4270 | ev.data.control.param = 0; |
4271 | | - ev.data.control.value = iValue; |
| 4271 | + ev.data.control.value = iParam; |
4272 | 4272 | break; |
4273 | 4273 | case qtractorMidiEvent::CHANPRESS: |
4274 | 4274 | ev.type = SND_SEQ_EVENT_CHANPRESS; |
|
0 commit comments