In The Truman Show you could see that live music was played during the recordings. In the silent era of film silent films were commonly accompanied by live musicians in an orchestra, a theatre organ,
and sometimes sound effects and even commentary spoken
by the showman or projectionist.
In the sound era of film an orchestra would play the
soundtracks live in a studio. Watch a live orchestra while
recording the soundtrack of the Disney movie Frozen.