开发者

Android - how to create music note sound?

开发者 https://www.devze.com 2023-04-08 01:58 出处:网络
Folks, In my android app, I need to display a musical instrument such that the user (mostly children) could press a key and I play the music note through the speaker.

Folks,

In my android app, I need to display a musical instrument such that the user (mostly children) could press a key and I play the music note through the speaker.

I am trying to understand what it takes to generate a music note under Android. The examples on sound that I saw mostly use MediaPlayer or SoundPlayer to pla开发者_C百科y media files. I am looking for sending a specific tone with duration to the speaker.

I would appreciate your help in pointing me in the right direction.

Thank you in advance for your help.

Regards,

Peter


Check out this question for 1 possible implementation of Tone Generating.

Playing an arbitrary tone with Android

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号