You're talking my language! Thanks. One of the many things I've used my
workbench computer for was to vary the audio sampling rate on the fly, in realtime, to see how many samples per second we needed to record air traffic controller audio with good intelligibility, and to 100% interactively evaluate the effects of immediate changes. Same for sampling depth in bits, with and without dynamic compression, and experiment with anti-aliasing filters. (A recent post elsewhere questioned the 65816's computing power to do, in Forth, anything of the sort, not to mention the '02. Well, I've been doing it.) In a semi-medical project about five years ago, I used 8-bit sampling to produce pure tones that were previously thought to need 24-bit and a DSP. Initial experiments were done on the workbench computer, showing the results to the higher-ups and knocking their socks off, and then implementing the method on a PIC16F74.
The square-wave part was applicable to something that gets discussed here much more often. He showed that the 1kHz square wave was made up of frequencies up to, and way beyond, 20kHz. Similarly, a 1MHz square wave, will have a lot of harmonic content at even 20MHz and beyond. If you take those away, it's no longer square. It doesn't need to be perfectly square for the digital work; but the circuit's response to those higher frequencies can get you in trouble, and running a 20MHz part at 1MHz doesn't necessarily keep you
out of trouble.