I've heard this played too many times over my life. For family, friends, and fellow servicemen.
From what I learned in the service and by reading, "Taps" was arranged in its present form by the Union Army Brigadier General Daniel Butterfield, an American Civil War general and Medal of Honor recipient who commanded the 3rd Brigade of the 1st Division in the V Army Corps of the Army of the Potomac while at Harrison's Landing, Virginia, in July 1862 to replace a previous French bugle call used to signal "lights out". Butterfield's bugler, Oliver Wilcox Norton, of East Springfield, Pennsylvania,[8] was the first to sound the new call. Within months "Taps" was used by both Union and Confederate forces. It was officially recognized by the United States Army in 1874.