instrument ![code/modules/instruments/instrument_data/_instrument_data.dm 23](git.png)
Vars | |
HIGHEST_KEY | Don't touch this |
---|---|
LOWEST_KEY | Don't touch this x2 |
abstract_type | Used for categorization subtypes |
admin_only | Oh no - For truly troll instruments. |
category | Category |
id | Uniquely identifies this instrument so runtime changes are possible as opposed to paths. If this is unset, things will use path instead. |
instrument_flags | See __DEFINES/flags/instruments.dm |
legacy_instrument_ext | For legacy instruments, our file extension |
legacy_instrument_path | For legacy instruments, the path to our notes |
name | Name of the instrument |
real_samples | Write here however many samples, follow this syntax: "%note num%"='%sample file%' eg. "27"='synthesizer/e2.ogg'. Key must never be lower than 0 and higher than 127 |
samples | assoc list key = /datum/instrument_key. do not fill this yourself! |
songs_using | What songs are using us |
volume_multiplier | Volume multiplier. Synthesized instruments are quite loud and I don't like to cut off potential detail via editing. (someone correct me if this isn't a thing) |
Var Details
HIGHEST_KEY ![code/modules/instruments/instrument_data/_instrument_data.dm 45](git.png)
Don't touch this
LOWEST_KEY ![code/modules/instruments/instrument_data/_instrument_data.dm 47](git.png)
Don't touch this x2
abstract_type ![code/modules/instruments/instrument_data/_instrument_data.dm 31](git.png)
Used for categorization subtypes
admin_only ![code/modules/instruments/instrument_data/_instrument_data.dm 49](git.png)
Oh no - For truly troll instruments.
category ![code/modules/instruments/instrument_data/_instrument_data.dm 29](git.png)
Category
id ![code/modules/instruments/instrument_data/_instrument_data.dm 27](git.png)
Uniquely identifies this instrument so runtime changes are possible as opposed to paths. If this is unset, things will use path instead.
instrument_flags ![code/modules/instruments/instrument_data/_instrument_data.dm 37](git.png)
See __DEFINES/flags/instruments.dm
legacy_instrument_ext ![code/modules/instruments/instrument_data/_instrument_data.dm 41](git.png)
For legacy instruments, our file extension
legacy_instrument_path ![code/modules/instruments/instrument_data/_instrument_data.dm 39](git.png)
For legacy instruments, the path to our notes
name ![code/modules/instruments/instrument_data/_instrument_data.dm 25](git.png)
Name of the instrument
real_samples ![code/modules/instruments/instrument_data/_instrument_data.dm 33](git.png)
Write here however many samples, follow this syntax: "%note num%"='%sample file%' eg. "27"='synthesizer/e2.ogg'. Key must never be lower than 0 and higher than 127
samples ![code/modules/instruments/instrument_data/_instrument_data.dm 35](git.png)
assoc list key = /datum/instrument_key. do not fill this yourself!
songs_using ![code/modules/instruments/instrument_data/_instrument_data.dm 43](git.png)
What songs are using us
volume_multiplier ![code/modules/instruments/instrument_data/_instrument_data.dm 51](git.png)
Volume multiplier. Synthesized instruments are quite loud and I don't like to cut off potential detail via editing. (someone correct me if this isn't a thing)