I have a music track and a track with morse code tones.
I want to mix it in a way that the music track is only beeing heared during the morse code.
I allready tryed to Phase invert one track and then recombine, but that didnt work out so well.
Put a volume gate on the music and take the output from the Morse Code to its input. Then mute the Morse in your track. That should give you music only playing when there’s signal coming from the Morse.
To achieve this you need to use a gate effect that supports sidechain on the music track, and then feed the morse code output into the sidechain input on the gate.
This tutorial I found with a quick search looks fairly comprehensive: https://www.practical-music-production.com/sidechain/
You could always manually edit the waveform if using a gate doesn’t work out for you.