58 |
typedef typename RTList<RR*>::Iterator RootRegionIterator; |
typedef typename RTList<RR*>::Iterator RootRegionIterator; |
59 |
typedef typename MidiKeyboardManager<V>::MidiKey MidiKey; |
typedef typename MidiKeyboardManager<V>::MidiKey MidiKey; |
60 |
|
|
61 |
EngineBase() : SuspendedRegions(128), noteIDPool(GLOBAL_MAX_NOTES) { |
EngineBase() : noteIDPool(GLOBAL_MAX_NOTES), SuspendedRegions(128) { |
62 |
pDiskThread = NULL; |
pDiskThread = NULL; |
63 |
pNotePool = new Pool< Note<V> >(GLOBAL_MAX_NOTES); |
pNotePool = new Pool< Note<V> >(GLOBAL_MAX_NOTES); |
64 |
pNotePool->setPoolElementIDsReservedBits(INSTR_SCRIPT_EVENT_ID_RESERVED_BITS); |
pNotePool->setPoolElementIDsReservedBits(INSTR_SCRIPT_EVENT_ID_RESERVED_BITS); |
163 |
dmsg(5,("Engine: Sysex received\n")); |
dmsg(5,("Engine: Sysex received\n")); |
164 |
ProcessSysex(itEvent); |
ProcessSysex(itEvent); |
165 |
break; |
break; |
166 |
|
default: ; // noop |
167 |
} |
} |
168 |
} |
} |
169 |
} |
} |
799 |
case Event::type_note_pressure: |
case Event::type_note_pressure: |
800 |
//TODO: ... |
//TODO: ... |
801 |
break; |
break; |
802 |
|
|
803 |
|
case Event::type_sysex: |
804 |
|
//TODO: ... |
805 |
|
break; |
806 |
|
|
807 |
|
case Event::type_cancel_release_key: |
808 |
|
case Event::type_release_key: |
809 |
|
case Event::type_release_note: |
810 |
|
case Event::type_play_note: |
811 |
|
case Event::type_stop_note: |
812 |
|
case Event::type_note_synth_param: |
813 |
|
break; // noop |
814 |
} |
} |
815 |
|
|
816 |
// see HACK comment above |
// see HACK comment above |
901 |
dmsg(5,("Engine: Note Synth Param received\n")); |
dmsg(5,("Engine: Note Synth Param received\n")); |
902 |
ProcessNoteSynthParam(itEvent->pEngineChannel, itEvent); |
ProcessNoteSynthParam(itEvent->pEngineChannel, itEvent); |
903 |
break; |
break; |
904 |
|
case Event::type_sysex: |
905 |
|
break; // TODO ... |
906 |
|
|
907 |
|
case Event::type_cancel_release_key: |
908 |
|
case Event::type_release_key: |
909 |
|
case Event::type_release_note: |
910 |
|
break; // noop |
911 |
} |
} |
912 |
} |
} |
913 |
} |
} |
1291 |
itScriptEvent->ignoreAllWaitCalls = false; |
itScriptEvent->ignoreAllWaitCalls = false; |
1292 |
itScriptEvent->handlerType = VM_EVENT_HANDLER_INIT; |
itScriptEvent->handlerType = VM_EVENT_HANDLER_INIT; |
1293 |
|
|
1294 |
VMExecStatus_t res = pScriptVM->exec( |
/*VMExecStatus_t res = */ pScriptVM->exec( |
1295 |
pEngineChannel->pScript->parserContext, &*itScriptEvent |
pEngineChannel->pScript->parserContext, &*itScriptEvent |
1296 |
); |
); |
1297 |
|
|