I could play music from memory when I played the flute, but I found that after about ten years of violin playing (and I started in my early 30s) I was unable to memorize much of anything. I attributed it to my relatively advanced age, instrumentally speaking. I always thought that my musical memory was dominated by muscle memory, because once I had an instrument in my hands, I could hold forth for quite a while. I used to think that my musical memory was a kind of limited dance between only the kinetic and the aural parts of my array of senses, but today I discovered that my musical memory is visual as well.
Those dang progressive lenses that I had been using for everything, including reading music, from about the age of 40 caused me to have to do so much "post processing" that my inner vision got itself all clouded up when trying to memorize music. Now, after only a month of using single-vision lenses for music, I can close my eyes and visualize specific passages of music that I am practicing as they appear on the page. I can even do it without closing my eyes.
This, to me, is a revelation.