An easy and alternative way to achieve this is with cycript and system() call, however please BEWARE of the dangers of using system() before using it as it is potentially insecure (which is, to my opinion, not that much important on a jailbroken iOS where everything is pretty much unsafe)
let's say you have a method like [[SomeClass sharedInstance] methodToBeCalledExternally]
that you want to call from some other process
you can save that call to a text file in /tmp/something.cy
then you inject that code externally by running:
cycript -p Music /tmp/something.cy
but if you need to do it programatically, and of course if the environment isn't sandboxed (I assume it isn't), then you can do:
system("cycript -p Music /tmp/something.cy")
this way you can execute arbitrary ObjC code in any process (in this case, the Music app), from your code.
finally, don't forget to remove the file /tmp/something.cy
as you will no longer need it