You may want to look at this Recording MIDI notes to pattern editor from VST arpeggiator - #6 by ArturRembe