Section MusicalInstruments

Musical instruments constants, Map and static functions

See
MusicalInstrument
InstrumentsClassifications

Summary

Return typeFunction and summary
MusicalInstrument, SoundGetInstrumentBySoundID(SoundID)
Search the MusicalInstrument corresponding to Instrument.SoundID.

Function

GetInstrumentBySoundID(SoundID)

Search the MusicalInstrument corresponding to Instrument.SoundID.

if MusicalInstrument is known, use the very faster MusicalInstrument:getSound(...) to get the Sound object.

ParameterTypeDefaultDescription
SoundID  Sound or int ID
Returns
MusicalInstrument: nil if not found
Sound: nil if not found
See
MusicalInstrument:getSound