Prepositions are hard to teach, especially if the context is limited to one sentence. But all three prepositions could be used. And it does not matter if the movie has original music and/or pre-existing music; the general uses of the prepositions are the same.
1) I like the music in the movie Ray.
I like the music featured in, found in, contained in, heard in, played in, etc. the movie Ray.
2) I like the music from the movie Ray. That is why I bought the OMPST (official motion picture soundtrack) on CD. I can listen to music from the movie whenever I want.
So music from the movie means the music that comes from the movie.
3) I like the music of the movie Ray.
This is a general statement. It is like saying:
I like the movie Ray's music. Or: I like the movie's music.
You can also say:
4) I like the music of Beethoven (= Beethoven's music) in the movie Ray.
Or:
5) I like the music of Beethoven (= Beethoven's music) from the movie Ray.
But you would probably not hear the above sentence with two of's in it.
You could also say:
6) I like the music of movies that have Beethoven's "Moonlight Sonata" in them.
Or:
7) I like Beethoven's "Moonlight Sonata" in the movie Ray, but I don't like any of the other music in, from, or of the movie.
Edit: It should be clear that it doesn't matter if the music is "original music" or not.
8) The music in / from / of Forrest Gump includes all the songs I used to listen to on the radio.
The music of Pulp Fiction also mentions The music
of Guardians of the Galaxy. There's the Blog of Doug Adams, which is called
The Music of The Lord of the Rings Films. Or
The music of American Horror Story: Freak Show.
Mobile link. Or you can buy
The Music of Star Wars or
The Music of Grand Theft Auto if you search for them.
There is no wrong answer. At that moment, you are expressing your (figurative) closeness to or distance from the thing by the choice of this or that. If you say this book it's as if you are holding it in your hands. If you say that book, it's as if you are pointing to the book on a library shelf. The former, this book, would convey the nuanced idea that the book continues to have meaning for you. You have it with you. The latter, that book, would convey the nuanced idea that the book has had meaning for you. Reading it marked a turning point for you.
Best Answer
Usual custom dictates that the author of a book is the one who owns it and the director of a movie is the one who owns and the choreographer of a dance is the one who *owns** it
in the above, different versions would be referred to by the owners name
are all different films with the same title.
are different versions of the same dance.
To say that something is by someone might lead to some ambiguity of what's being referred to since movies can be based on a story in a book
has no ambiguity.
In movies there is the added layer of a screenwriter who's name might be used if they happen to be famous.