82 |
RTList<Event>::Iterator& itNoteOnEvent, |
RTList<Event>::Iterator& itNoteOnEvent, |
83 |
bool HandleKeyGroupConflicts |
bool HandleKeyGroupConflicts |
84 |
) { |
) { |
85 |
|
NoteIterator itNote = GetNotePool()->fromID(itNoteOnEvent->Param.Note.ID); |
86 |
|
if (!itNote) { |
87 |
|
dmsg(1,("sf2::Engine: No Note object for triggering new voices!\n")); |
88 |
|
return; |
89 |
|
} |
90 |
EngineChannel* pChannel = static_cast<EngineChannel*>(pEngineChannel); |
EngineChannel* pChannel = static_cast<EngineChannel*>(pEngineChannel); |
91 |
|
|
92 |
//uint8_t chan = pChannel->MidiChannel(); |
//uint8_t chan = pChannel->MidiChannel(); |
93 |
int key = itNoteOnEvent->Param.Note.Key; |
int key = itNote->cause.Param.Note.Key; //itNoteOnEvent->Param.Note.Key; <- using note object instead, since note nr might been modified by script |
94 |
uint8_t vel = itNoteOnEvent->Param.Note.Velocity; |
uint8_t vel = itNote->cause.Param.Note.Velocity; //itNoteOnEvent->Param.Note.Velocity; <- using note object instead, since velocity might been modified by script |
95 |
//int bend = pChannel->Pitch; |
//int bend = pChannel->Pitch; |
96 |
//uint8_t chanaft = pChannel->ControllerTable[128]; |
//uint8_t chanaft = pChannel->ControllerTable[128]; |
97 |
//uint8_t* cc = pChannel->ControllerTable; |
//uint8_t* cc = pChannel->ControllerTable; |
98 |
|
|
|
NoteIterator itNote = GetNotePool()->fromID(itNoteOnEvent->Param.Note.ID); |
|
|
if (!itNote) { |
|
|
dmsg(1,("sf2::Engine: No Note object for triggering new voices!\n")); |
|
|
return; |
|
|
} |
|
|
|
|
99 |
int layer = 0; |
int layer = 0; |
100 |
::sf2::Query query(*pChannel->pInstrument); |
::sf2::Query query(*pChannel->pInstrument); |
101 |
query.key = key; |
query.key = key; |