Non-interpolating K2A

I had a technique to do this, but I forgot how. Basically I need to get an audio rate version of control rate signal without ramp interpolation (K2A uses linear ramps), i.e. repeat the the value constantly over each block. And should be “cheap” in terms of CPU.

Maybe use this BitCrusher/Sample Reducer and set the sampleRate to the control rate?

BitCrusher {
*ar {|input, bitRate, sampleRate|
^Latch.ar(input.round(1/bitRate.clip(1,32)), Impulse.ar(sampleRate))
}
}

Thanks. I had that in mind but accidentally used SampleRate.ir/2 instead of ControlRate.

scope {
  var k = SinOsc.ar(200);
  Latch.ar(K2A.ar(k), Impulse.ar(ControlRate.ir));
}