Space Station 13 - Modules - TypesVar Details - Proc Details

instruments

Vars

current_instrument_channelsCurrent number of channels allocated for instruments
instrument_dataList of all instrument data, associative id = datum
max_instrument_channelsMaximum instrument channels total instruments are allowed to use. This is so you don't have instruments deadlocking all sound channels.
musician_hearcheck_mindelayDeciseconds 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_maxlinecharsMax characters per line in songs
musician_maxlinesMax lines in songs
songsList of all song datums.
synthesizer_instrument_idsSingle cached list for synthesizer instrument ids, so you don't have to have a new list with every synthesizer.

Procs

get_instrumentReturns the instrument datum at the given ID or path
initialize_instrument_dataInitializes all instrument datums
on_song_delCalled when a datum/song is deleted
on_song_newCalled when a datum/song is created
reserve_instrument_channelReserves 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:

initialize_instrument_data

Initializes all instrument datums

on_song_del

Called when a datum/song is deleted

Arguments:

on_song_new

Called when a datum/song is created

Arguments:

reserve_instrument_channel

Reserves a sound channel for a given instrument datum

Arguments: