Audio

Contents

Audio.jpg

A full description on how to use sounds in your game can be found here.

[edit] How Music Helps a Game

Music in your game can help with several things...

  • Gives professional appearance (or rather, sound)
  • Makes the game more fun
  • Creates a mood

For these reasons, or more, you may want to use sounds.

[edit] Uploading your Music

Every user can upload a Sound file for R$100. These files are moderated and can be up to 120 seconds in length and 8192 KB in size. Some songs were uploaded by the developers and you can find these in official models, tools and gear.

[edit] Finding Music

In the Catalog, there is a tab that lists all audio which can be found here. This includes all of the user and administrator uploaded music!

[edit] Audio Page

This is an audio file page. From here you can preview the audio, put it in your inventory and comment on it.

AudioPageButtonActivated.png

[edit] Configure Page

The Configure page can be accessed from the audio page of any audio file you have uploaded. You can get to it by pressing the cog and choosing "Configure" from the drop-down menu. It has many options to help you customize your audio file.

The Configure page has the following options:

  • Name: Allows you to configure the audio file's name.
  • Description: A summary of the audio file.
  • Turn comments on/off: Choose whether or not this item is open for comments.
  • Genre: Classify your audio to help people find it.
  • Make Free: Choose whether or not this item is freely available.
  • Version History: Allows you to revert to a previous version of the audio file.

To preview an audio file, press the small play button (AudioPlay.png).

[edit] Implementing Audio

Audio files can be used in Places, and can make them atmospheric, add feeling and create a mood.

To add audio to your Place, while there are a number of creative ways our builders can use sound, to simply insert an audio file, do the following:

  1. Find a sound (or upload one) on the website and get the asset ID, which is the number at the end of the URL.
  2. Open ROBLOX Studio and open a place in Edit Mode.
  3. Open your Basic Objects panel and double-click "Sound". Make sure it's in Workspace.
  4. Once there, click the Sound icon to open up properties.
  5. Next to “SoundId”, enter "http://www.roblox.com/asset/?id=" plus the asset ID (Example: http://www.roblox.com/asset/?id=130764021).
  6. Now click on StarterGui, and double-click "LocalScript".
  7. Remove "print 'Hello world!" and enter the following script: game.Workspace.Sound:Play()
  8. Publish to ROBLOX and save your game.

[edit] MIDI and RIDI

Some ROBLOX users have taken the initiative and created their own music playing scripts. Combined with custom programs that convert MIDI songs into ROBLOX MIDI songs that run with the script, songs can be played. One of the best collections so far can be found in this set by Aaaboy97. These use Blobbyblob's MIDI. There are 3 known scripts that will play custom music. All of the MIDI scripts on ROBLOX use the pitch property of sounds to create the correct sound. Many also contain a database of different sounds you can use, and the fact that some of the scripts load

[edit] MIDI, by Blobbyblob.

The MIDI made by Blobbyblob has several advantages. These include.

  • Having a composing tool
  • You do not need a reference table to use it, the keys are human readable.

[edit] RIDI, by Brandonhare

The RIDI made by Brandonhare also is nice. The code itself used to play the music is shorter, so once you memorize the reference keys, it's quite simple to write music.

[edit] Komposers Kit

The Komposers Kit made by Ozzypig is another nice MIDI alternative for ROBLOX.

[edit] Using Preload

Sometimes in your game you won't be able to listen to music because the sound ID didn't load yet. The solution to this problem is the Preload method

With this method, the end user will be able to listen to the sound in your game bringing a joyful and happy mood to their face!

[edit] ROBLOX uploaded songs

These songs were uploaded by ROBLOX. The quality is generally better than the ones you would find that were made by a MIDI. However, it doesn't have a graphical music composer, and it doesn't have a music collection.

Songs = { ["Gothic"] = { Artist = "Zero Project", ItemId = "http://www.roblox.com/asset/?id = 27697743", DatabaseId = "http://c7bg.roblox.com/76d00f427b9ac4196f67a2b17891954a", Length = 346.464 }, ["Hip Hop"] = { Artist = "Jeff Syndicate", ItemId = "http://www.roblox.com/asset/?id = 27697735", DatabaseId = "http://c3bg.roblox.com/630a7f54523b96b980ff1d8939a03482", Length = 228.672 }, ["Flight of the Bumblebee"] = { Artist = "Daniel Bautista", ItemId = "http://www.roblox.com/asset/?id = 27697719", DatabaseId = "http://c7bg.roblox.com/72c546f1c54db95088a7c8812dacf7e2", Length = 108.016327 }, ["Music for a Film"] = { Artist = "Daniel Bautista", ItemId = "http://www.roblox.com/asset/?id = 27697713", DatabaseId = "http://c4bg.roblox.com/16f7c76798017c91441fb21b5a30a943", Length = 226.008 }, ["Intro"] = { Artist = "Daniel Bautista", ItemId = "http://www.roblox.com/asset/?id = 27697707", DatabaseId = "http://c6bg.roblox.com/d4c9789e1ad5f352360029bb1bfd14f7", Length = 156.312 }, ["Better Off Alone (remix)"] = { Artist = "DJ Glejs", ItemId = "http://www.roblox.com/asset/?id = 27697392", DatabaseId = "http://c1bg.roblox.com/285e6ae5d39e3e9ce0ae2cfd6655967f", Length = 362.016 }, ["Foggy Mountain Breakdown"] = { Artist = "Flatt & Scruggs", ItemId = "http://www.roblox.com/asset/?id = 27697298", DatabaseId = "http://c1bg.roblox.com/88189e83713ecb77929aa97d5ca10db9", Length = 163.728 }, ["Awakening"] = { Artist = "Positively Dark", ItemId = "http://www.roblox.com/asset/?id = 27697277", DatabaseId = "http://c0bg.roblox.com/a6808f735e7da071156c8b46fe3f62ad", Length = 268.056 }, ["Entertainer Rag"] = { Artist = "Scott Joplin", ItemId = "http://www.roblox.com/asset/?id = 27697267", DatabaseId = "http://c0bg.roblox.com/12abdbba12192560ca9dcf1554f61da3", Length = 265.68 }, ["Resist (remix)"] = { Artist = "Mubarek", ItemId = "http://www.roblox.com/asset/?id = 27697234", DatabaseId = "http://c6bg.roblox.com/95bed730f2c92540c86adf1bbdd0a0a8", Length = 446.184 } }

[edit] See Also

  • Sounds - Full description on how to add sounds to your game.