If you want to make music with your computer without having to use the keyboard and mouse, you will need to use a MIDI device. But MIDI instruments are very expensive, and their price tag can be a roadblock for your hobby. Luckily, it is possible to use your Android device as a MIDI instrument.
While this is a built-in Android feature, Xiaomi doesn’t show this option by default. Don’t worry though, the functionality still exists in your phone. All you need to do to switch to USB MIDI mode is to go to the Developer Settings menu on your phone and find USB Mode.
The option is called “Select USB configuration”. It is under the Networking section of the developer options.
Here’s how to enable developer mode / developer settings on Xiaomi phones.
After enabling this, you will have a Developer options button under Settings > Additional Settings.