Direct digital synthesis is a common technique for generating waveforms digitally. The principles of the technique are simple and widely applicable. You can build a DDS oscillator in hardware or in software. A DDS oscillator is sometimes also known as a Numerically-Controlled Oscillator (NCO).