From the community: Track and hold, from a shared schematic
A track and hold built part for part from a schematic someone in our community shared: two followers, a JFET switch and a capacitor, and a comparator for a clock; then a short clock makes it the classic stepped sample and hold on a resonant filter, with Ned. A step-by-step lesson in your browser, nothing to install.
In this lesson
Ned builds it on this page, one step at a time, while you watch and listen. What he says, chapter by chapter:
A shared schematic
Hi, I'm Ned. That's a track and hold, built from a schematic someone in our community shared with us. The drawing is four small blocks: an input buffer, a switch and a capacitor, an output buffer, and a clock. Let's build it, one block at a time.
The input buffer
The noise comes in here. R10 holds the input at zero volts when nothing's plugged in, and R5 takes it to an op-amp, wired as a follower: its output copies its input, and it can push far more current than the input could. The capacitor will need that.
The switch
The switch is a JFET, J1. This one megohm joins its gate to its channel, so with nothing pulling the gate down, the switch is on. The four hundred and seventy ohms keeps the op-amp steady as it fills the capacitor. C1 holds the voltage, and a second follower reads it without draining it. With the switch on all the time, what comes out is what goes in: plain hiss.
The clock
The clock comes in here. On the real board, these two hold it at about four point seven volts when nothing's plugged in. These two make a steady one point four volts, and the comparator weighs the clock against it: above, its output goes right up to its top rail, thirteen and a half volts; below, right down to minus thirteen and a half. Into the clock goes a square LFO, four times a second, swinging five volts either way: well over one point four, then well under.
The diode
Now a diode, from the switch's gate to the comparator. When the comparator is high, the diode is off, and the switch stays on: it tracks. When it's low, the diode pulls the gate down near minus thirteen volts, and the switch is off: it holds. One difference from the board: here, an input with nothing wired sits at zero volts, so the switch would hold for ever. That's why the clock went in first.
Track, then hold
Listen, and watch. Half of every tick, it follows the noise, and hisses. The other half, it holds, and goes quiet.
Only a moment
To grab a moment, not half a tick, the clock has to be short. Make the LFO a triangle, turn its depth down, and listen: now it only pokes over one point four volts at the very top, for about a hundredth of a second. On the Scope, the noise has turned into steps. That's the classic sample and hold.
Into a filter
Now let's play something with it. A saw, a pulse an octave down, and a filter with some resonance. The steps go into the filter's envelope input: every new voltage, a new cutoff. Listen.
Droop
Rl stands for the little a real capacitor leaks while it holds: a hundred megohms, about ten seconds to drain. Make it one megohm, and listen: each step sags back before the next one, and the filter slides back after every jump. Back to a hundred megohms, and the steps stay put.
Random notes
Someone in our community suggested one more thing: take the track and hold's output into the pitch of both oscillators. Every tick, a new random note, up to an octave either way, and the filter still follows the same steps, so the higher notes come out brighter. Listen: a random melody. They said it would sound cool, and they were right.
Your turn
Your turn. Play a few notes, and turn the clock's rate and depth: faster or slower notes, and with more depth, longer windows where the pitch follows the noise. Press Continue when you're done.
End
That's the track and hold from our community: two followers, a JFET and a capacitor, and a comparator for a clock. Thanks for sharing it, and for the idea. If there's a circuit you'd like to hear, suggest it on the forum.