home/ atoms/ jitlib-crossfade-redefinition

JITLib can crossfade a proxy's source when it is redefined instead of cutting abruptly

When a JITLib proxy’s source is replaced, the transition need not be abrupt. JITLib supports crossfading code redefinitions: the old source fades out while the new one fades in, controlled by a fade time on the proxy. This is a large part of what makes SC live coding sound like deliberate transitions rather than clicks and dropouts. The jitlib_fading tutorial documents how the crossfade of code works. A common pitfall: with a zero fade time a replacement source that does not start at zero amplitude will click.

Examples

Ndef(\drone).fadeTime = 4 // 4-second crossfade Ndef(\drone).source = { LFSaw.ar(80) * 0.2 } // fades in over 4 s

Assessment

Set a proxy’s fadeTime and replace its source, observing the transition. Then set fadeTime to 0 and replace again; explain why the result may click and how to avoid it.

“[jitlib fading](https://doc.sccode.org/Tutorials/JITLib/jitlib_fading.html) (how crossfade of code works)”
corpus · supercollider-jitlib-overview-live-coding-with-nodeproxy-nde · chunk 2