+ 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 ??

21st May 2018, 11:59 PM
Arushi Singhania
Arushi Singhania - avatar
6 Antworten
+ 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.
22nd May 2018, 1:04 AM
Mickel
Mickel - avatar
+ 3
I'll try it in my code
22nd May 2018, 12:15 AM
Dmitriy
Dmitriy - avatar
+ 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.
22nd May 2018, 1:40 AM
Apple Blossom
Apple Blossom - avatar
+ 2
This is a cool new MUSIC programming language that fun to code music with https://sonic-pi.net/tutorial.html
23rd May 2018, 3:15 PM
Kevin Williams
Kevin Williams - avatar
+ 2
you should follow below link, you will get awesome tutorial for electronic music https://m.youtube.com/playlist?list=PLlXhD54vHRhcPwugAKNbtTm6o287Ta4Rw
12th Jun 2018, 5:19 AM
Pramod Chougule
Pramod Chougule - avatar
+ 1
You can have it output corresponding musical notes, but you can’t really play it with audio in solo learn. Try something external
22nd May 2018, 3:15 PM
Blx
Blx - avatar