Err PurgeScoreInstrument( ScoreContext *scon, uint8 Priority, int32 MaxLevel )
This code fragment can be used to free the DSP resources used by all
instruments that have finished playing:
{
int32 result;
* loop until function returns no voice purged or error *
while ( (result = PurgeScoreInstrument (scon, SCORE_MAX_PRIORITY,
AF_STOPPED)) > 0 ) ;
* catch error *
if (result < 0) ...
}
StartScoreNote()
. Frequent use of this function and StartScoreNote()
can consume the item table. If you simply want to stop a score note in it's tracks for later use with the same channel, use StopScoreNote()
instead. It merely stops instruments and doesn't delete them.
StopScoreNote
()