I search for a "simple code to play a sound note" in Android but can not find anything. In Java Eclipse, it is easy to use javax.sound.midi.*.
Synthesizer midiSynth = MidiSystem.getSynthesizer();
midiSynth.open();
Instrument[] instr = midiSynth.getDefaultSoundbank().getInstruments();
MidiChannel[] mChannels = midiSynth.getChannels();
midiSynth.loadInstrument(instr[8]); //load an instrument
mChannels[0].noteOn(60, 1000); //On channel 0, play note number 60 with velocity 1000

I need help for the simple code like this in Android Studio. to generate a tone, e.g. DO/ RE/ MI note in Android app