the answer is midi automation.

master volume midi, you just have to draw in the volume on/off pattern in the volume automation section of the track, thats if its a vst synth your using. for audio there are gating vst fx availible that provide the same function synced to midi clock that you just have to stick into an insert channel.