DesktopNotePlayer.Instrument
From Xojo Documentation
Property (As Integer )
aDesktopNotePlayer.Instrument = newIntegerValue
or
IntegerValue = aDesktopNotePlayer.Instrument
New in 2021r3
Supported for all project types and targets.
or
IntegerValue = aDesktopNotePlayer.Instrument
New in 2021r3
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 DesktopNotePlayer.
Example
This example specifies the Church Organ as the instrument.
NotePlayer1.Instrument = 20
NotePlayer1.PlayNote(60, 60)
NotePlayer1.PlayNote(60, 60)