Music Player Script Play a Song Full Perm with Loop On/Off Option
Add your sound files, and this script to make a music player.
(Example object with sounds included.)
There are three variables to set at the top of this script: Time, Volume, and Loop On/Off
NEW!: I added a fourth variable that will let you continue playing at the beginning, or at the last clip you were playing when you stopped the music.
ALSO NEW! I included an additional script with link message examples!
If you cannot set a variable and save the script then do not buy this. (Example: Volume = x.x; You would set it to Volume = 1.0 for full volume) It is very easy,
While most users may prefer to just set the settings, I included plenty of notes all through the script, so if you want to use this as a tutorial, or mod it for your own needs, the notes will tell you what every line is doing.
Script is set to turn music on and off by touch. I also included a link message option that will allow you to turn the music and the looping on and off via link messages if you would like to control the player from another script. (See related items below for a link message tutorial script.)
Excellent built-in safety features. Will not get script errors if no sounds are included or sounds are added or removed.
Script is Full Perms. You may not sell the script alone, but you may include it in creations you sell.
This Full Perm items are the song player script and link message example scripts.
Included example object with 5 sound files is copy/mod.
- Easy to use song player script.
- Easy Clip Time, Loop On/Off, Volume, and Start From Beginning On/Off
- Lots of comments if you want to learn how it works.
- Sound files must be same length.(Except last one can be shorter.)
- Full Perms. Sell Your Creations!
This is so Awesome
Finally a script that will play the whole song perfect...Thank you so much your the best...
10-seconds limits
READ BELOW AT THE END ****
I got this script as a gift because the buyer SH Tutti got the assumption that this script has some magic. I said to the artist, "looks this coder overcame the 10-second limit as everyone gave 5 stars. There are plenty of free scripts for playing music on a prim, so this must be indeed magic." Tutti said, "yeah, even I have such a script where you add 10-second slices one after the next."
When the code arrived I was surprised, sadly not by the magic. It is nicely coded, but the 10-second split is still a need.
I recommend to to the creator to add this as I have to cut now the poem which shall be played on SecondHandTutti's grand opening of her SLEA DREAM sim into slices ... and that's a difficult thing as this script does not overcome the buffering problems you experience when sound files are put in a row.
*** The coder changed the description, added the 10-seconds and was helpful and refunded SHTutti, so all good :)
Perfect!!!
Works perfect as advertised. Had a request of creator and was contacted back immediately and request filled. Can't say enough good about this player and it creator. I put the script in various attachments worn at various times for various outfits, It works great!
Flawless multi-sound clip player
I tried creating a script before, when piecing together clips to make a whole song. Had choppy performance and sometimes it just didn't work well at all. This script is perfect. First time I just used Audacity and split clips, dropped them in, and it played perfectly, really nice. Thanks so much for this.
Awesome A+++++
Highly recommended script and the support is also amazing got what i needed up and running in no tome very helpful <3 A+++++++++++++++++++++++++++