That was special. I grew up in a town where the railroad divided the town and tracks were next to our house on an embankment. My bedroom was second floor, trackside, and I remember hearing the train whistle blow in the middle of the night as a crossing warning and to stop at the station to pick up freight. It was a comforting sound in a way.
As quickly I recall awakening in the night to a different sound of the train whistle replaced by a horn and rugged sounds of a diesel engine.
Several summers we picked up and dropped off my aunt at Beacon, NY, just across the Hudson River from Newburg. She lived in St. Lawrence County on the Canadian Border and took the train, a steam engine the New York Central used on the tracks that followed the Hudson River.