Can I Explain What Happens Next?
An old SuperCollider sketch of mine contains a sine-wave oscillator with a parameter called lag. It is a small piece of code. I can describe it quickly: it makes a tone, and the controls change its frequency and amplitude.
But what does lag do? Does the program wait before changing the tone, or does the change itself take time?
Both descriptions sound plausible if I stay at the level of the word. They predict different behavior. That makes this a useful little test of how much an explanation actually explains.
My early programming at the Institute of Sonology involved synthesizers, sequencers, and algorithmic composition. I later taught and mentored people working with interactive media and software. Those interests bring me back to a question I can examine directly here: what would let someone understand this patch well enough to change it deliberately?
The part of the sketch I want to follow is this expression, with its formatting opened up:
SinOsc.ar(
Lag.kr(freq, lag),
phase,
Lag.kr(amp, lag)
)
SinOsc produces a sine wave. Its first argument controls frequency, the second controls phase, and the third scales the output. The two Lag expressions sit between the frequency and amplitude controls and the oscillator. That is already more useful than saying that the patch makes a sound: it identifies where a change has to pass. The SuperCollider reference gives the argument meanings precisely.
One change, two predictions
Suppose the frequency has settled at 200 hertz and I change its target to 400. If lag meant a waiting period, I would expect the old tone to continue unchanged, followed by a jump. If it meant smoothing, I would expect the frequency to move toward the new target during the transition.
The documentation for Lag identifies it as an exponential smoothing filter. Its time parameter describes settling behavior. It does not schedule a pause followed by an abrupt update. In this example, the oscillator receives changing frequency values as the smoothed signal approaches the target.
That distinction gives me a prediction I could check. I could listen for a glide or inspect the control signal. The explanation also tells me where to investigate if the result disagrees: the target value, the smoothing stage, or the oscillator receiving its output.
Now change the target again before the first transition has settled. A description that treats lag as a delayed command might suggest a queue: finish one instruction, then carry out the next. Smoothing suggests a different account. The current value continues to change in response to the new target. The history matters through the filter’s state, rather than through a list of future commands waiting their turn.
I have made the example slightly harder without adding much code. That is what I want from this kind of question. It asks whether the explanation survives a change in conditions, rather than whether I can repeat its wording.
There is a second path through the expression too. amp is smoothed independently before scaling the oscillator’s output. Holding the frequency steady while changing the amplitude lets me examine that path separately. If I change both together, two effects overlap. Separating them gives me a clearer account of what each control contributes.
How much detail is enough?
It is possible to make this explanation arbitrarily long. I could introduce the filter’s recurrence equation, derive its coefficient, discuss sample blocks, and inspect the implementation. Those would answer additional questions. They would also change what the reader has to hold in mind.
For this example, I need the distinction between a target and a changing output, and enough of the signal path to predict which parameter is affected. That is a workable stopping point. It would be insufficient if I were trying to reproduce the filter exactly or explain a discrepancy at a particular control rate.
The rate distinction is real: SuperCollider’s .ar computes at audio rate, while .kr computes at control rate. Its introductory guide explains this in terms of values calculated per sample or per block. I do not need to teach the whole execution model to point out that the abbreviated account has left it outside the frame.
This is where I find the demand to “explain it simply” both useful and incomplete. Simple for what purpose? To begin exploring the patch, the target-and-smoothing account may be enough. To change its timing behavior, I may need the next level. An explanation should help the reader know when that next level has become relevant.
Fluency alone does not do that. I can learn the sentence “an exponential filter smooths the input” without knowing what it implies when the target changes twice. Equally, someone may be able to make precise musical choices with the control while finding the verbal account difficult. Skill with the instrument and skill at explaining it provide different evidence.
That makes me reluctant to use explanation as a universal test of another person’s understanding. It is more useful as a way to expose a particular model: here is what I think will happen, here is why, and here is a change that would reveal whether that account is sufficient.
When someone else needs to change it
There is a detail in the expression that I have not needed yet: the two smoothing filters use the same lag parameter. Their inputs and states are separate, but this control sets the smoothing time for both. A description of frequency alone leaves that relationship out.
Suppose someone wants pitch changes to happen quickly while changes in loudness remain gradual. Reducing lag looks like the obvious edit after hearing my first explanation. It also changes the amplitude smoothing. The explanation was sufficient to predict a frequency change, but insufficient for the modification this person wants to make.
One possible revision would give the two filters separate time controls. Before making that change, I would want to know whether the shared control is useful musically. Perhaps coordinating the two transitions is part of the instrument. Perhaps it merely reflects how small the original sketch was. The expression shows the relationship; it does not record why I chose it. I should not invent an intention from code that cannot establish one.
This is where the explanation becomes useful to a collaborator. We can point to the same expression and identify a decision: preserve the coupling, separate it, or offer both behaviors. We have enough shared understanding to discuss the consequence of the edit. We do not need to agree on a complete account of synthesis first.
My teaching and mentoring in interactive media make me interested in this exchange, rather than just in whether I can deliver a clear explanation. A question from someone trying to do a different thing can expose a limitation that my own demonstration never touches. In the sketch, the new requirement brings the shared time control into view. It changes what the explanation has to include.
Writing creates another version of this problem. “Lag makes changes smooth” is a reasonable summary after following the signal. Before that, the reader might imagine a delay, a queue, or a gradual transition. Easy wording does not settle which mechanism the sentence describes.
I can now give a more useful account of the old sketch. Frequency and amplitude each pass through a smoothing filter, and both filters take their timing from one control. That explains the glide and also locates the change needed if the two transitions should behave differently. The next person has somewhere specific to begin, including a choice I have not made for them.
Labels