From Xojo Documentation

Revision as of 14:49, 31 July 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

NotePlayer.PlayNote(Pitch as Integer, Velocity as Integer)

Supported for all project types and targets.

Plays the note specified by the pitch at the velocity specified.


The following example plays the Church Organ at the passed Pitch and Velocity.

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

The following line of code stops the note:

NotePlayer1.PlayNote(60, 0)