-odac sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 giTrnsFnc ftgen 0, 0, 4097, -7, -0.5, 1024, -0.5, 2048, 0.5, 1024, 0.5 giSine ftgen 0, 0, 1024, 10, 1 instr 1 aAmp poscil 1, 400, giSine aIndx = (aAmp + 1) / 2 aWavShp tablei aIndx, giTrnsFnc, 1 out aWavShp, aWavShp endin i 1 0 10 ;example by joachim heintz