I'm rather new to Pure Data and I seem to have hit a brick wall. (I can't actually say if I understood it all, but I've even bought "Making Musical Apps" and don't seem to be making any headway).


1. I want to program an Android app that needs to send both Notes and Program Changes to the Android MIDI Controller
2. I seem to have a patch that works correctly on a Windows environment (meaning: I can change programs and so on). However, to be able to do so, I had to specify in PD which controller I wanted to use for output.
3. I can't find any documentation that tells me how to bind the libpd library in Android to the corresponding MIDI Controller
4. I have had success in playing sounds in Android by using the "Basic MIDI synth" described in the "Making Muscial Apps" book. However, this doesn't help me: I would have a single instrument available (or, maybe, if I changed some parameters I might have changes in sound for my notes. Still, I would be better off if I could use the MIDI capabilities of existing instruments instead of having to re-design them by myself).

In the book (and in libpd itself) I see methods like "sendProgramChange". Does anyone know where I could find an example where I could see how I should use these methods? Can anyone help me with my problem?