adding the generator of saw/sine/pulse/noise in a class