888 |
if (it) pEvents->free(it); |
if (it) pEvents->free(it); |
889 |
} |
} |
890 |
|
|
|
/** |
|
|
* Called by real-time instrument script functions to ignore the note |
|
|
* reflected by given note ID. The note's event will be freed immediately |
|
|
* to its event pool and this will prevent voices to be launched for the |
|
|
* note. |
|
|
* |
|
|
* NOTE: preventing a note by calling this method works only if the note |
|
|
* was launched within the current audio fragment cycle. |
|
|
* |
|
|
* @param id - unique ID of note to be dropped |
|
|
*/ |
|
|
void AbstractEngineChannel::IgnoreNote(note_id_t id) { |
|
|
NoteBase* pNote = pEngine->NoteByID(id); |
|
|
if (!pNote) return; |
|
|
IgnoreEvent(pNote->eventID); |
|
|
} |
|
|
|
|
891 |
/** @brief Drop the requested event. |
/** @brief Drop the requested event. |
892 |
* |
* |
893 |
* Called by real-time instrument script functions to ignore the event |
* Called by real-time instrument script functions to ignore the event |