+ 15
How we can play music notes in an online java code ???
I want to play some musical notes in a java code in SL. But I was unable to achieve that. Can anyone tell me how I can achieve this with any java musical API ??
6 Réponses
+ 9
For this you need to install a library (like JMusic), and in Sololearn that is not possible. Another method may be to use .MIDI files and upload them to your code, but that would affect the execution time of your code.
On the other hand, I doubt a bit that the content can be reproduced since the server with this type of codes only returns plain text. Sololearn with non-web codes has many limitations.
+ 3
I'll try it in my code
+ 3
You will need to import the media class. You can use AudioClip or Media Object if music is longer and compressed. The media class is standard java library.
+ 2
This is a cool new MUSIC programming language that fun to code music with https://sonic-pi.net/tutorial.html
+ 2
you should follow below link,
you will get awesome tutorial for electronic music
https://m.youtube.com/playlist?list=PLlXhD54vHRhcPwugAKNbtTm6o287Ta4Rw
+ 1
You can have it output corresponding musical notes, but you can’t really play it with audio in solo learn. Try something external