implement triangle channel of apu.