Someone on the plugdata discord asked about how to do this, but deleted their post before I could post my suggestion. I thought it was kind of fun to play with, so I'm posting it here in case you are as easily amused as I am :) I think it's interesting to watch the averaging happen as the frequency goes beyond the size of the wave table, more interesting than the interpolation.
one cycle of wavetable.pd
Screenshot 2026-07-09 172805.png