i'm sure there are some things to be learned from other developers who have implemented this sort of thing in their apps.
PacoLabs, who has now made 3 apps for PD that feature this crank-controlled audio, would likely be willing to share some of their sorcery with you.
-> contact@pacolabs.com