diff --git a/tgui/packages/tgui/interfaces/Instrument.js b/tgui/packages/tgui/interfaces/Instrument.js index 01f6d7c89ab..d9df2a457b2 100644 --- a/tgui/packages/tgui/interfaces/Instrument.js +++ b/tgui/packages/tgui/interfaces/Instrument.js @@ -1,4 +1,4 @@ -/* eslint-disable max-len */ +import { round } from 'common/math'; import { Fragment } from 'inferno'; import { useBackend } from "../backend"; import { Box, Button, Collapsible, Dropdown, LabeledList, Modal, Section, Slider } from "../components"; @@ -29,24 +29,54 @@ const InstrumentHelp = (properties, context) => {

- Lines are a series of chords, separated by commas (,), each with notes seperated by hyphens (-). + Lines are a series of chords, separated by commas  + (,), + each with notes seperated by hyphens  + (-).
- Every note in a chord will play together, with the chord timed by the tempo as defined above. + Every note in a chord will play together, + with the chord timed by the  + tempo as defined above.

- Notes are played by the names of the note, and optionally, the accidental, and/or the octave number. + Notes are played by the  + names of the note, + and optionally, the  + accidental, + and/or the octave number.
- By default, every note is natural and in octave 3. Defining a different state for either is remembered for each note. + By default, every note is  + natural and in  + octave 3. + Defining a different state for either is + remembered for each note.

- Chords can be played simply by seperating each note with a hyphon: A-C#,Cn-E,E-G#,Gn-B.
- A pause may be denoted by an empty chord: C,E,,C,G. + Chords + can be played simply by seperating each note + with a hyphen: A-C#,Cn-E,E-G#,Gn-B.
+ A pause +  may be denoted by an empty chord: C,E,,C,G.
- To make a chord be a different time, end it with /x, where the chord length will be length defined by tempo / x, eg: C,G/2,E/4. + To make a chord be a different time, end it + with /x, where the chord length will be length defined by  + tempo / x,  + eg: C,G/2,E/4.

Combined, an example line is: E-E4/4,F#/2,G#/8,B/8,E3-E4/4. @@ -143,7 +173,7 @@ const InstrumentStatus = (properties, context) => { new: tempo + tickLag, })} /> - {Math.round(600 / tempo)} BPM + {round(600 / tempo)} BPM