Music: Difference between revisions
No edit summary |
No edit summary |
||
| Line 68: | Line 68: | ||
| <font color="#DAA520">[Play</font> || Plays a note or series of notes and pauses. (Example: `[Play c4 5 d4 e4` will play note c4, then pause for one second, and then both d4 and e4 at the same time.) | | <font color="#DAA520">[Play</font> || Plays a note or series of notes and pauses. (Example: `[Play c4 5 d4 e4` will play note c4, then pause for one second, and then both d4 and e4 at the same time.) | ||
|- | |- | ||
| <font color="#DAA520">[SaveMelody</font> || Saves a sequence of notes and pauses as a melody. The name of the melody must preface the music arrangement to be saved properly (Example: '[SaveMelody happybirthday c4 5 c4 5 d4'] | | <font color="#DAA520">[SaveMelody</font> || Saves a sequence of notes and pauses as a melody. The name of the melody must preface the music arrangement to be saved properly (Example: '[SaveMelody happybirthday c4 5 c4 5 d4']) | ||
|- | |- | ||
| <font color="#DAA520">[GetMelody</font> || Lists all saved melodies for the player. | | <font color="#DAA520">[GetMelody</font> || Lists all saved melodies for the player. | ||
Revision as of 05:05, 11 August 2025
The Music System works with both instrument skills and the Music Theory skill to let you perform in two ways:
- Freeform Playing: Play notes or sequences directly using commands. Useful for testing, improvising, or programming songs in Razor.
- Music Composition:: Use an in-game interface to arrange full songs that can be saved and shared using Music Theory Skill.
Playing Music
To begin, you will need access to an instrument. There are several schools of instrument to choose from:
- Brass Instruments
- Percussion Instruments
- String Instruments: Bowing
- String Instruments: Plucking
- Woodwind Instruments
- Music Theory itself uses the piano, and can arrange compositions into sheet music form for others to read and play on their own.
Once you've chosen and instrument, it can be played directly by reading sheet music, playing individual notes manually, or arranged into saved melodies and full songs.
To see what notes are available on your selected instrument, you can use the [musichelp command, or check the individual instrument Skills on this wiki.
Playing Notes
Equip a portable instrument or stand next to a stationary one.
Use the [Play command followed by notes and pause values.
Pauses are measured in tenths of a second:
- 1 = 0.1 seconds (100 milliseconds)
- 10 = 1 second (1000 milliseconds)
- So for example: '[Play c4 10 d4 e4' Plays C4, pauses for 1 second, then plays D4 and E4 simultaneously
Saving Melodies
- Use the [SaveMelody command to save a sequence of notes as a named melody.
- Example: [SaveMelody happybirthday c4 0.5 d4 0.5 e4.
- The melody must be bracketed by % (percent symbol) when called.
Stopping Music
- Use [StopMusic to interrupt any ongoing playback.
Managing Playlists
- Your playlist (the queue of notes to be played) is cleared automatically when new melodies or songs are played.
- Manually clear the playlist using [StopMusic if needed.
Music Composition
The composition system provides a visual interface for arranging notes and melodies:
- Access it with the [Music command.
- Arrange your song in the interface, mixing new notes and saved melodies.
Sheet Music
At 100 Music Theory skill, you can write your completed composition onto a piece of paper, creating Sheet Music that can be traded or shared.
To do so, after composing a song, target a piece of paper to write it into a Sheet Music item that can be shared or traded.
| Command Name | Description |
|---|---|
| [MusicHelp | Provides a summary of all music-related commands and notes available for your instrument. |
| [Music | Open the Music Composition menu to arrange new notes and saved melodies in the interface and save into songs. |
| [Play | Plays a note or series of notes and pauses. (Example: `[Play c4 5 d4 e4` will play note c4, then pause for one second, and then both d4 and e4 at the same time.) |
| [SaveMelody | Saves a sequence of notes and pauses as a melody. The name of the melody must preface the music arrangement to be saved properly (Example: '[SaveMelody happybirthday c4 5 c4 5 d4']) |
| [GetMelody | Lists all saved melodies for the player. |
| [DeleteMelody | Deletes a saved melody by name. Enclose the melody name in percent symbols (Example: '[DeleteMelody %happybirthday%') |
| [StopMusic | Stops any currently playing melody or notes, as well as melodies and notes queued up |
| [ShowNotes | Toggles the visibility of notes being played. |