Exemple #1
0
void SynthGroupElement::NoteEnded(SynthNote *inNote, UInt32 inFrame)
{
#if DEBUG_PRINT
    printf("SynthGroupElement::NoteEnded %d %d\n", inNote->mNoteID, inNote->mState);
#endif
    SynthNoteList *list = mNoteList + inNote->mState;
    list->RemoveNote(inNote);

    GetAUInstrument()->AddFreeNote(inNote);
}
Exemple #2
0
void SynthGroupElement::NoteEnded(SynthNote *inNote, UInt32 inFrame)
{
#if DEBUG_PRINT_NOTE
	printf("SynthGroupElement::NoteEnded: id %d state %d\n", inNote->mNoteID, inNote->mState);
#endif
	if (inNote->IsSounding()) {
		SynthNoteList *list = &mNoteList[inNote->GetState()];
		list->RemoveNote(inNote);
	}
	
	GetAUInstrument()->AddFreeNote(inNote);
}