A new app that’s got a very brief description but is free, so could be worth a try out.
Improvise, compose, and conduct! Make melodies, arrange them, even change their rhythms. Tilt your iPhone to change the tempo and key! Share your melodies, too, as MIDI files — that you import into GarageBand.