instruments
Vars | |
current_instrument_channels | Current number of channels allocated for instruments |
---|---|
instrument_data | List of all instrument data, associative id = datum |
max_instrument_channels | Maximum instrument channels total instruments are allowed to use. This is so you don't have instruments deadlocking all sound channels. |
musician_hearcheck_mindelay | Deciseconds between hearchecks. Too high and instruments seem to lag when people are moving around in terms of who can hear it. Too low and the server lags from this. |
musician_maxlinechars | Max characters per line in songs |
musician_maxlines | Max lines in songs |
songs | List of all song datums. |
synthesizer_instrument_ids | Single cached list for synthesizer instrument ids, so you don't have to have a new list with every synthesizer. |
Procs | |
get_instrument | Returns the instrument datum at the given ID or path |
initialize_instrument_data | Initializes all instrument datums |
on_song_del | Called when a datum/song is deleted |
on_song_new | Called when a datum/song is created |
reserve_instrument_channel | Reserves a sound channel for a given instrument datum |
Var Details
current_instrument_channels
Current number of channels allocated for instruments
instrument_data
List of all instrument data, associative id = datum
max_instrument_channels
Maximum instrument channels total instruments are allowed to use. This is so you don't have instruments deadlocking all sound channels.
musician_hearcheck_mindelay
Deciseconds between hearchecks. Too high and instruments seem to lag when people are moving around in terms of who can hear it. Too low and the server lags from this.
musician_maxlinechars
Max characters per line in songs
musician_maxlines
Max lines in songs
songs
List of all song datums.
synthesizer_instrument_ids
Single cached list for synthesizer instrument ids, so you don't have to have a new list with every synthesizer.
Proc Details
get_instrument
Returns the instrument datum at the given ID or path
Arguments:
- id_or_path - The ID or path of the instrument
initialize_instrument_data
Initializes all instrument datums
on_song_del
Called when a datum/song is deleted
Arguments:
- S - The deleted datum/song
on_song_new
Called when a datum/song is created
Arguments:
- S - The created datum/song
reserve_instrument_channel
Reserves a sound channel for a given instrument datum
Arguments:
- I - The instrument datum