Added support for master track.
Note: If an envelope is set to not visible then the script doesn't do anything, so will seem like its not working. I'm not sure how I could easily skip/advance to next envelope to fix that, lucky for me its very rare I hide envelopes.