Android Question How to play single midi note?

Here is a simple example. Salient points are:

You need to initialize some modules first.
You can get the default receiver from MidiDevice_Static

You only need to worry about generating Midi Messages when dealing with sequences and adding them to tracks. For real-time use it is simpler to send the messages as byte arrays.

On my device, some of the pianos sound the same, and some programs appear not to have a sound associated with them (unless they were just quiet), this may be different on each device.

Hope this helps
 
Upvote 0
Here is a simple example. Salient points are:

You need to initialize some modules first.
You can get the default receiver from MidiDevice_Static

You only need to worry about generating Midi Messages when dealing with sequences and adding them to tracks. For real-time use it is simpler to send the messages as byte arrays.

On my device, some of the pianos sound the same, and some programs appear not to have a sound associated with them (unless they were just quiet), this may be different on each device.

Hope this helps

Many thanks, I open midi project, MidiSystem_Static shows "Unknown member: initialize",maybe I lost a library, but IDE don't tell me.
 
Upvote 0
Hmm, not sure what happened there. Please download the library again and try with this project. As I said, it's been a while.
 

Attachments

Upvote 0
Back
Top