NotePlayer.Instrument

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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)