Music composition, in its most basic sense, is sound and silence organized over time. Producers are creating music just as much as the traditional songwriter, if not more. If you created an original piece of music and it is to be released to Spotify, Apple Music, etc., then you will generate publishing royalties. If you understand your ownership of that release, then you can register your percentage of publishing ownership and collect recurring royalties for the rest of your life.
If you have been writing songs for some time and find yourself feeling creatively stifled, consider listening to your older songs for inspiration. Map out those songs and identify elements or themes that you can expand upon, improve, or alter. If you are new to songwriting or don’t have music that you previously released, take a trip down memory lane and listen to music that you enjoyed two, five, or even ten years ago. Identify the elements of those songs that you enjoyed and try to incorporate those ideas into your own writing.