Set the SynthPatch preemption time.


Functions

double MKGetPreemptDuration (void)
 Get the MKSynthPatch preemption time.
void MKSetPreemptDuration (double seconds)
 Set the MKSynthPatch preemption time.

Function Documentation

double MKGetPreemptDuration ( void   ) 

Get the MKSynthPatch preemption time.

During a performance, DSP resources can become scarce; it's sometimes necessary to preempt active MKSynthPatches in order to synthesize new MKNotes. This preemption is handled by MKSynthInstrument objects. But rather than simply yank the rug from under an active MKSynthPatch, a certain amount of time is given to allow the patch to “wind down” before it's killed in order to prevent clicks. By default, this grace period, or “preempt duration”, is 0.006 seconds - not a lot of time but enough to avoid snapping the MKSynthPatch's envelopes. You can set the preempt duration yourself through MKSetPreemptDuration(). Preempt duration is global to an application; it's current value is retrieved through MKGetPreemptDuration().

Returns:
Returns the preempt duration.
See also:
MKSetPreemptDuration().

void MKSetPreemptDuration ( double  seconds  ) 

Set the MKSynthPatch preemption time.

During a performance, DSP resources can become scarce; it's sometimes necessary to preempt active MKSynthPatches in order to synthesize new MKNotes. This preemption is handled by MKSynthInstrument objects. But rather than simply yank the rug from under an active MKSynthPatch, a certain amount of time is given to allow the patch to “wind down” before it's killed in order to prevent clicks. By default, this grace period, or “preempt duration”, is 0.006 seconds - not a lot of time but enough to avoid snapping the MKSynthPatch's envelopes. You can set the preempt duration yourself through MKSetPreemptDuration(). Preempt duration is global to an application; it's current value is retrieved through MKGetPreemptDuration().

Parameters:
seconds is a double.


Generated on Sat Dec 5 17:01:14 2009 for MusicKit by  doxygen 1.5.6