Oh and for what it is worth. You can know tons of scales and theory and still be bad at melodies both in terms of generating them and people liking them, and you can be self taught without much theory and generate wonderful melodies to people. Praise or blame your brain for it. Theory and practise can inspire your brain, but first and foremost listening to the music your brain likes wil make itl remember and reframe. Theoretical knowledge can inspire, help break boundaries, try new things, but it does not guarantee that catching melodies will ever be your thing. That would be same as saying that people with theoretical knowledge make better melodies, which is not the case in terms of popular songs and tunes.