Factor out APU length and stub the triangle wave