Musix.lua

Deprecated one: Use audiomaster.lua instead.

Download Latest Version

Musix is a small library which allows the easy creation of music codes!

Installation
Drop the musix.lua file in the LuaScriptsLib folder.

How to use
First, load in the API. Then, you can set the music codes for every section individually. If you want, you can also customise the position of the music code for each section, and how long it will display (though this is global, it can be made to change for each section).

Once this is done, type "music" in-game to see the music code appear.

Examples
This will display the text "The music code for the first section!" when the code "music" is typed. This will do the same as above, but the text will appear in the top left corner rather than the bottom left. By default, the position of any music code is (20, 580).

This bit of code works as before, but with some interesting changes. Firstly, this has a music code for two different sections. The code for the first section will display in the top left of the screen, while fthe second section's music code will display at the default bottom right. However, this also changes the time the music code is displayed for. By default, music codes are displayed for 400 frames (about 6.7 seconds), but this makes the music code for the second section last for just 100 frames (about 1.7 seconds).

Values
These are variables you can access

Internal Use Functions
These are functions that the library uses to function, but are not necessary for the user