Functions | |
double | MKGetPreemptDuration (void) |
Get the MKSynthPatch preemption time. | |
void | MKSetPreemptDuration (double seconds) |
Set the MKSynthPatch preemption time. |
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().
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().
seconds | is a double. |