code for real-time dsp class