Are you asking for complete code, sounds like you are? Best thing is the question you have to break it down and start coding each section logically. Say for argument sake soundbar work on this until you get this right and then next, next once you have all routine working the way you want, then start your main project. Construct 2 is capable of much more then you or anyone think. Take my word for it, I have been used C2 for a long time for teaching purpose.