White Sands - Modules - TypesVar Details - Proc Details

/datum/instrument_key

Instrument key datums contain everything needed to know how to play a specific note of an instrument.*

Vars

deviationDeviation up/down from the pivot point that uses its sample. Used to calculate frequency.
frequencyThe frequency to play the sample to get our desired note.
keyThe numerical key of what this is, from 1 to 127 on a standard piano keyboard.
sampleThe actual sample file that will be loaded when playing.

Procs

calculateCalculates and stores our deviation.

Var Details

deviation

Deviation up/down from the pivot point that uses its sample. Used to calculate frequency.

frequency

The frequency to play the sample to get our desired note.

key

The numerical key of what this is, from 1 to 127 on a standard piano keyboard.

sample

The actual sample file that will be loaded when playing.

Proc Details

calculate

Calculates and stores our deviation.