Basic Music Synthesis Demo issue #1 - refactoring code

authors: @RapidRage @mlindsay56
moderator: @CARammelKamp
~requested: 180