Music: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mindraker
rev, that is pointed out in BOLD at the top
Adding information
 
(40 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{{CatUp|Tutorials}}
<!-- {{Outdated|reason=There should be an article about music, but these Roblox.com links won't work anymore. Maybe this article could be replaced with a new guide about how to make use of the Novetus shareddata folder for custom music (and other asset) files?}} -->
__TOC__
{{WIP}}


__TOC__
== Uploading your Music ==
On March 22nd 2022, all existing audio that were more than 6 seconds long — alongside any other audio uploaded past that date — were made private on ROBLOX. This, unfortunately, left players of old ROBLOX launchers and revivals with only bland songs and legacy sounds to use for their games. Fortunately, there are ways to bypass this and once again fill your games — both new and old — with wonderful music.


'''''Due to a recent update it seems that the browse feature no longer works with the sound ID.'''''
== External Services ==
You can use the direct links to audio files on some sites to load audio, but only if trust check has been killed.
== Common Music ==
A plain client alone can no longer play these by ID.
{| class="wikitable"
|+ List of common music
|-
! scope="col"| ID
! scope="col"| Title
|-
| 1034065
| Halo Theme Mjolnir Mix
|-
| 1077604
| MULE (Bitblaster Mix)
|-
| 1280414
| Final Destination
|-
| 1280473
| The People Fight (Piano Version)
|-
| 1372261
| Battle Theme from Pokemon Gold
|-
| 1372257
| Monastery in Disguise
|-
| 1372258
| ACCENDE LUMEN SENSIBUS
|-
| 1372259
| Fire Emblem
|-
| 1372262
| Venom
|-
| 2303479
| Caramelldansen (Speedycake Remix)
|}
== Local Assets ==
After many long hours of looking through old ROBLOX games in studio, it would not take long to discover a link which includes the term <code>rbxasset://</code>. This phrase, '''rbxasset''', is in reference to the '''content''' folder which is in every old ROBLOX client folder. An example of this link used in action is with the default face, which is called '''face.png''', in the '''textures''' folder. The result would be <code>rbxasset://textures/face.png</code>.


'''Note that any audio files, music sound effects or otherwise are not supported by the Roblox Content Distrobution System fully. If not uploaded correctly or using a file from your computer, people visiting the server may not be able to hear your sounds. Sound uploading is not supported by ROBLOX at this time.'''
You can add your own music in your own custom folder through the same method, but this method would only work locally on your own computer. If you publish a game with a local redirect, other players will not be able to hear nor see any custom assets you use in the game — you would have to give them the custom folder, and tell them to put it in the content folder for it to work.


If the custom folder which includes your music is not located in the client's content folder, you can use the term <code>..</code> as a way to go backwards. An example of this method is commonly used on [[Novetus]], as the launcher uses their own folder called '''shareddata''' to keep their selection of old ROBLOX games running throughout multiple clients. To find a file called '''music.mp3''' inside the shareddata folder, You would first escape the content folder to get into your specific client's folder. Then, you would escape into where the clients on Novetus are located, which is in the '''clients''' folder. Finally, you would then escape into the main Novetus folder, which is where the shareddata folder is located. The final result would be <code>rbxasset://../../../shareddata/music.mp3</code>


Music isn't a script, but it is a block that, most of the time, looks like a stereo.  Search music in Free Models in Roblox Studio to get music.  (Click Insert, then click on the pulldown bar, then click Free Models.  Type "music" and click the search button.  Click on the selection that you want.) Here is an [http://www.roblox.com/Item.aspx?ID=2538997 example.]
Please keep in mind that these custom redirect links may change depending on your computer's folder structure, and to double-check the logic of your redirect whenever things go south.


There are many kinds of music in ROBLOXMusic makes a place more exciting and entertains playersIn most cases, many players will not hear it, the admins are currently working on this problemChoose your music carefullyIf you choose the wrong music, many people will not like it and probably leave or turn their volume down.
== MIDI and RIDI ==
Some ROBLOX users have taken the initiative and created their own music playing scriptsCombined with custom programs that convert MIDI songs into ROBLOX MIDI songs that run with the script, songs can be playedOne of the best collections so far can be found in [http://www.roblox.com/my/sets.aspx?id=369454 this] set by Aaaboy97. These use Blobbyblob's MIDI.    There are 3 known scripts that will play custom musicAll of the MIDI scripts on ROBLOX use the pitch property of sounds to create the correct soundMany also contain a database of different sounds you can use, and the fact that some of the scripts load


The Sound object works like a speaker, whatever brick you put it in will start putting out sound at that brick's location. If the brick moves, so does the sound.
=== MIDI, by Blobbyblob.  ===
The [http://www.roblox.com/MIDI-Player-v2-0-item?id=46920747 MIDI] made by Blobbyblob has several advantages. These include.
* Having a [http://www.roblox.com/Music-Composer-Tool-item?id=47945918 composing tool]
* You do not need a reference table to use it, the keys are human readable.


If sound objects are placed in the Workspace, however, it acts like there is a giant speaker everywhere, no matter where you go in the level the sound will be very loud and very everywhere.
=== 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. 
* Has it's own [http://www.roblox.com/my/sets.aspx?id=264733 music collection]. 
* Has a music [http://www.roblox.com/RIDI-place?id=43973416 composer].
* Having a [http://www.roblox.com/RIDI-Instrument-Reference-Table-item?id=48572686 reference table]


Be sure to test your place before with your computer volume a little louder than normal. Make the sound's volume at a level that won't make you go deaf and you can be sure that other people won't complain about it.
=== Komposers Kit ===
The [http://www.roblox.com/Komposers-Kit-12-29-2010-item?id=43135911 Komposers Kit] made by Ozzypig is another nice MIDI alternative for ROBLOX.


More examples are here: [http://www.roblox.com/Catalog.aspx?m=TopFavorites&c=10&t=PastWeek&d=All&q=music Music]
<!-- == ROBLOX uploaded songs ==
These songs were uploaded by ROBLOX.  The quality is generally better then 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. 


You can easily take the music "out" of a Free Model jukebox and put it "into" a brick, once you have verified that a song that you like actually works in Roblox.
== Scripting and Music ==
To get started, go to Insert -> Objects and click on the sound object. 
Once that is inserted, look down at the properties box and name it anything you want, but make sure not to put a space in the name.
A little below the name in the properties box is a spot called <I>SoundId</I>. When you click the white box next to SoundId, a pulldown arrow appears. Click the pulldown arrow and press browse. Look in the location you have the song saved, click it and press <I>open</I> once it is selected. This will put a code of letters and numbers into the <I>SoundId</I> box. Do not delete any of this code or the song will not work.
Go back to Insert -> Object, and click on the script object. Verify that the script object appears in the same place as the sound file. (Example: they both appear in Workspace.) You can name the script anything you want. A suggestion for naming it would be something that is related to the name of the song.
The script below is a very basic script to use and edit.
==The Script==
<pre>
c = script.Parent.songnamehere:clone()
c.Parent = game.Workspace
c:play()
</pre>
Where it says <I>songnamehere</I>, put the name of the sound object you inserted earlier.
You should also be very careful about songs you insert. Non-native songs to ROBLOX wont always work right, and can crash your computer. So DON'T upload them unless they work properly on your computer.
If you want the song to loop, click on the sound object in the explorer, then look down in properties and click the checkbox next to <I>loop</I>, if you only want the song to play once when the person enters, leave the loop box unchecked.
Keep in mind that most people can not hear the music in online mode, but there is a solution.
<pre>
<pre>
1) Create a separate account (or use your current account)
Songs = {
 
["Gothic"] = {
2) Designate a place and allow people to enter it in solo, you could call
Artist = "Zero Project",
that place <I>username's music installer</I> for example.
ItemId = "http://www.roblox.com/asset/?id = 27697743",
 
DatabaseId = "http://c7bg.roblox.com/76d00f427b9ac4196f67a2b17891954a",
3) Have your music here, and when people hear it in solo, they should be able to here it in online play.
Length = 346.464
 
},
4) If you want to create a new account for this, you could call it something along the lines
["Hip Hop"] = {
of <I>usernamesinstaller</I>. That is just an example. Basically the place you put the song in
Artist = "Jeff Syndicate",
is a music installer so that others can hear it.
ItemId = "http://www.roblox.com/asset/?id = 27697735",
 
DatabaseId = "http://c3bg.roblox.com/630a7f54523b96b980ff1d8939a03482",
5) Try to add a link to your music installer from the game that has the music in it,  
Length = 228.672
this will help people so they don't have to search for it.
},
</pre>
["Flight of the Bumblebee"] = {
 
Artist = "Daniel Bautista",
== Website Linking ==
ItemId = "http://www.roblox.com/asset/?id = 27697719",
 
DatabaseId = "http://c7bg.roblox.com/72c546f1c54db95088a7c8812dacf7e2",
Website linking apparently doesn't work. I would assume that ROBLOX simply downloads it from the website then uses it on the local temporary files instead of streaming it from that server constantly.
Length = 108.016327
 
},
==Creating a button==
["Music for a Film"] = {
1) First create a button, which is a brick (for this instance).
Artist = "Daniel Bautista",
[[Image:wiki1.JPG|This is my button.]]
ItemId = "http://www.roblox.com/asset/?id = 27697713",
2) Now, select the button. Go to insert > Object > Sound.
DatabaseId = "http://c4bg.roblox.com/16f7c76798017c91441fb21b5a30a943",
 
Length = 226.008
[[Image:wiki2.JPG|Sound insertion]]
},
 
["Intro"] = {
3) Now select sound file from the explorer (it should be inside the button), go to properties and select SoundId, and then browse.  Select the sound file from your computer.  This action will actually upload the file to the ROBLOX server.
Artist = "Daniel Bautista",
 
ItemId = "http://www.roblox.com/asset/?id = 27697707",
[[Image:wiki3.JPG|Sound insertion]]
DatabaseId = "http://c6bg.roblox.com/d4c9789e1ad5f352360029bb1bfd14f7",
 
Length = 156.312
4) Now we have a sound. How can we make it play as soon as a ROBLOXIAN touches the button? First create a new script inside the button.  Insert the following code:
},
 
["Better Off Alone (remix)"] = {
<pre>debounce = false
Artist = "DJ Glejs",
function onTouched(hit) -- When the button is touched...
ItemId = "http://www.roblox.com/asset/?id = 27697392",
if debounce == false then
DatabaseId = "http://c1bg.roblox.com/285e6ae5d39e3e9ce0ae2cfd6655967f",
debounce = true
Length = 362.016
local s = Instance.new("Sound") -- Create a new sound file
},
s.Name = "Sound" -- Dont change this.
["Foggy Mountain Breakdown"] = {
s.SoundId = "yourSoundIdGoesHere" -- SoundId! Type here yours.
Artist = "Flatt & Scruggs",
s.Volume = 1 -- Volume. 1 is the strongest, you can change it to whatever you want.
ItemId = "http://www.roblox.com/asset/?id = 27697298",
s.Looped = false -- Change this to true if you want the sound to loop (not recommended)
DatabaseId = "http://c1bg.roblox.com/88189e83713ecb77929aa97d5ca10db9",
s.archivable = false -- Dont touch.
Length = 163.728
 
},
s.Parent = game.Workspace
["Awakening"] = {
 
Artist = "Positively Dark",
wait(0)
ItemId = "http://www.roblox.com/asset/?id = 27697277",
 
DatabaseId = "http://c0bg.roblox.com/a6808f735e7da071156c8b46fe3f62ad",
s:play() -- Play our new sound!
Length = 268.056
end
},
end
["Entertainer Rag"] = {
 
Artist = "Scott Joplin",
script.Parent.Touched:connect(onTouched)</pre>
ItemId = "http://www.roblox.com/asset/?id = 27697267",
 
DatabaseId = "http://c0bg.roblox.com/12abdbba12192560ca9dcf1554f61da3",
5) Now we have a sound button;  one problem, ROBLOX doesn't knows what sound to play.  Remember the sound we created before, where we selected a file? Exit the lua editor, select the sound from the explorer and at its properties copy the SoundId!  The soundId should be a long line of letters and numbers. Copy. Go back to the script, and search for "yourSoundIdGoesHere".  Delete that, and paste in that area the SoundId we just copied.
Length = 265.68
 
},
----
["Resist (remix)"] = {
 
Artist = "Mubarek",
You now have a sound button. Test your place.  Each time your player touches the button you hear the sound.
ItemId = "http://www.roblox.com/asset/?id = 27697234",
 
DatabaseId = "http://c6bg.roblox.com/95bed730f2c92540c86adf1bbdd0a0a8",
== Creating a sound trigger ==
Length = 446.184
This is more advanced. It's almost as before but you should know how to script and where to insert the correct line. Copy this:
}
 
}
<pre>local s = Instance.new("Sound")
</pre> -->
s.Name = "Sound" -- Dont change this.
s.SoundId = "yourSoundIdGoesHere" -- The sound file.
s.Volume = 1
s.Looped = false
s.archivable = false
 
s.Parent = game.Workspace
 
wait(0)
 
s:play()</pre>
 
Paste it into an event that you want to trigger the sound.
 
== See Also ==
 
[http://www.roblox.com/Catalog.aspx?m=RecentlyUpdated&c=3&t=PastWeek&d=All&q=&p=1 Roblox Recently Updated Music Catalog]
 
[[Category:Building Tutorials]]
[[Category:Scripting Tutorials]]

Latest revision as of 23:03, 4 July 2023

Work In Progress
This is currently being worked on! Check back later for more information... hopefully.


Uploading your Music

On March 22nd 2022, all existing audio that were more than 6 seconds long — alongside any other audio uploaded past that date — were made private on ROBLOX. This, unfortunately, left players of old ROBLOX launchers and revivals with only bland songs and legacy sounds to use for their games. Fortunately, there are ways to bypass this and once again fill your games — both new and old — with wonderful music.

External Services

You can use the direct links to audio files on some sites to load audio, but only if trust check has been killed.

Common Music

A plain client alone can no longer play these by ID.

List of common music
ID Title
1034065 Halo Theme Mjolnir Mix
1077604 MULE (Bitblaster Mix)
1280414 Final Destination
1280473 The People Fight (Piano Version)
1372261 Battle Theme from Pokemon Gold
1372257 Monastery in Disguise
1372258 ACCENDE LUMEN SENSIBUS
1372259 Fire Emblem
1372262 Venom
2303479 Caramelldansen (Speedycake Remix)

Local Assets

After many long hours of looking through old ROBLOX games in studio, it would not take long to discover a link which includes the term rbxasset://. This phrase, rbxasset, is in reference to the content folder which is in every old ROBLOX client folder. An example of this link used in action is with the default face, which is called face.png, in the textures folder. The result would be rbxasset://textures/face.png.

You can add your own music in your own custom folder through the same method, but this method would only work locally on your own computer. If you publish a game with a local redirect, other players will not be able to hear nor see any custom assets you use in the game — you would have to give them the custom folder, and tell them to put it in the content folder for it to work.

If the custom folder which includes your music is not located in the client's content folder, you can use the term .. as a way to go backwards. An example of this method is commonly used on Novetus, as the launcher uses their own folder called shareddata to keep their selection of old ROBLOX games running throughout multiple clients. To find a file called music.mp3 inside the shareddata folder, You would first escape the content folder to get into your specific client's folder. Then, you would escape into where the clients on Novetus are located, which is in the clients folder. Finally, you would then escape into the main Novetus folder, which is where the shareddata folder is located. The final result would be rbxasset://../../../shareddata/music.mp3

Please keep in mind that these custom redirect links may change depending on your computer's folder structure, and to double-check the logic of your redirect whenever things go south.

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

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.

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.

Komposers Kit

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