It wouldn't even need real pieces, just real transition probabilities.
Getting solid curated input data would also be tricky, unless there's some big and well-annotated library of midi recordings sitting around somewhere.
For building a good app today, your best bet is almost certainly to use existing sheet music, pieces and etudes in the given style.