Midi Drum buttons

would it be possible if I trigger the output only on rising edge ?? If so, how can I implement it ?