wavegen: new funct params s (sample) and c (channel), new funct mask(t,duration)