Replaced old-style casts with static_cast.
Derived ModEnvSegSeq class for specific envelope sequences.