plug melody or sample in compressor input, plug the kick into a splitter, plug the compressor output into a crossfader input, plug a splitter output in the other crossfader input, the other splitter output into the sidechain input on the compressor, then play with the ratio and threshold on compressor until you get what you want