Green’s Dictionary of Slang

bagpipe n.1

the penis.

Passenger of Benvenuto 569: For little pleasure [he] suffers great paine, that lets his Bagpipe out vpon credite [N].
[UK] ‘North Country Lass’ in Ebsworth Roxburghe Ballads (1897) VIII 88: And then he pluckt his bag-pipes forth, and plai’d melodiously.
[UK]J. Johnson Academy of Love 88: The Bag-pipe [...] is a wind instrument, and never playes but when the bag is full.
[UK]Mercurius Fumigosus 8 61: [A shepherd] reprehended two maids a milking a Bull, [...] knowing himself better able to administer Musick to the delight of the Milk-maids, with the Bag-pipes in his Breeches.
[UK] ‘Blowzabella’ in Farmer Merry Songs and Ballads (1897) IV 77: Squeakham, Squeakham, Bag-pipe will make ’em / Whisking, Frisking.
[UK]‘Bumper Allnight. Esquire’ Honest Fellow 24: So Jockey with haste pull’d out of its case / His merry bagpipe, and play’d with a grace.