and the same thing also happens with guitar, ill randomly start playing a tune that i really like, but when i go to write it down, its just not as good and mid way through writing, ive forgotten most of it  do you have any advice? thanks
you could try recording yourself