I have done several hours of searching trying to discover if the s40 (specifically the 2330) supports midi, and how this can be determined programatically from within a midlet.
I already have code to fall back to tone generation if midi isn't available, but currently I get no errors from the device, and no midi sounds. This works in various j2me emulators and on other real devices.
I have pasted up a class I am using for testing at http://pastebin.com/e36A3GKq which produces no errors and no sound and would be grateful for any help.
The questions I have are:
1) Does s40 support midi in this way?
2) If so what's wrong with my code?
3) If not how do I detect this in the program?