 | InstrumentPlay Method (Tone, Double, Byte) |
Plays a tone with duration and velocity specified.
Namespace: MidiGremlinAssembly: MidiGremlin (in MidiGremlin.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void Play(
Tone tone,
double duration,
byte velocity = 64
)
Public Sub Play (
tone As Tone,
duration As Double,
Optional velocity As Byte = 64
)
public:
void Play(
Tone tone,
double duration,
unsigned char velocity = 64
)
member Play :
tone : Tone *
duration : float *
?velocity : byte
(* Defaults:
let _velocity = defaultArg velocity 64
*)
-> unit
Parameters
- tone
- Type: MidiGremlinTone
The tone to play. - duration
- Type: SystemDouble
How long the tone should last in beats. - velocity (Optional)
- Type: SystemByte
From 0 to 127. Default is 64.
See Also