noTunes is a macOS application that will prevent iTunes or Apple Music from launching.
Simply launch the noTunes app and iTunes/Music will no longer be able to launch. For example, when bluetooth headphones reconnect to a laptop which may trigger iTunes/Music to open.
You can enable/disable the apps functionality via the menu bar icon, which is a simple toggle.
noTunes 2.3 (with menu bar icon): noTunes-2.3.zip
noTunes 2.3 (without menu bar icon): noTunes-2.3-noMenu.zip