NotePlayer.Instrument

From Xojo Documentation

Property (As Integer )
aNotePlayer.Instrument = newIntegerValue
or
IntegerValue = aNotePlayer.Instrument

Supported for all project types and targets.

The number of the musical instrument to be used to play the note (see the chart in the Instruments section of the NotePlayer.

Example

This example specifies the Church Organ as the instrument.

NotePlayer1.Instrument = 20
NotePlayer1.PlayNote(60, 60)