beam and pusle shaping codes