Several things have happened in our house since 2005 when my younger brother passed away, although I know that these experiences have nothing to do with his spirit as the spirit in question feels harmful like it wants to scare us and hurt us. It started with small things like my brothers toys turning on by themselves, hearing footsteps upstairs when no one else was in.
My first big experience was in 2009 so I would have been around 17, I was in my bedroom (Our upstairs is an attic conversion done before we moved in so we all have an attic door in our bedrooms) mines is at the back of one of my wardrobes and my brothers toy box had been put in there to make some space downstairs (all the toys had an on/off switch or didn't make noise.)
I was drifting off to sleep when I heard the music from one of his toys start, shocked I sat up and stared at the wardrobe but I managed to convince myself that it was nothing and that maybe there was a mouse that disturbed them. The second night I was texting my boyfriend at the time and the music started again and I got really creeped out as it never happened during the day only at night, so I put my headphones in and went to sleep.
On the third night I managed to go to sleep without it happening to my relief although after I fell asleep I had a dream of my boyfriend saying to me 'I'm going to make that music play but this time it's not going to stop' at that point I woke out of my sleep and like he said the music started playing and repeated over and over! Needless to say I demanded it be taken out of my room. I have more experiences to share that have happened to me and my sister. I will share them as soon as I can. Advice from anyone that know what this might be would be great!
As far as the dream it simply could have been the music started playing and this influenced what you were dreaming about.
Hope this helps.