Go to the Yamaha site(the UK one is the best for this) and download the Hubi's Loopback software(freeware). It will allow you to run XG Gold or XG Wizard or my favorite XGEdit along side of Cubase. You do all your midi editing in your xg editor and dump the info into cubase.