in musical theatre diegetic music has the same meaning. it is music in the narrative of the story. this is not necessarily when characters sing and are unaware. however, it is when there is a song literarily in the plot. for instance, in the "sound of music" the song edelweiss is diegetic. captain von trapp is performing it in the story for others in the story.