As a second part of my unfinished whistle simulator, I figured I'd make this contraption. As an example, I used CP 2816's whistle from Selkirk 5935. Click the button, (Or any part of the screen) to turn it on. Unfortunately, due to a glitch, the sound works when it wants. I haven't found a way to fix it at the moment, so consider checking the project now and then to see if I've added anything.
Just hours before completing this, I was only aware that locomotives like CP 2816, SP cab forwards, C&O Hudsons, and PM 1225 (Early '90s) had a button on the fireman side that would activate the whistle when pressure was added. I didn't know what it looked like or where exactly it was placed, so I did some research on the topic. After searching through a few forums, YouTube videos, and Wikipedia articles, I got the answer I'd been looking for. Using limited sources, I managed to come up with this model. Here's an example of a real one: https://www.youtube.com/watch?v=ytC4KAOlFgM