added envelope-editor and started on pattern editor