Added Compatibility check for envelope and melody. Hard coded a longer melody. Changed play method to scale for note duration and volume