Have meds affected your intelligence?

I used to be very much into composing music and writing lyrics. While I was experimenting with low to no olanzapine my music “spark” came back and I was improving on the piano. Also felt more intelligent